21 #ifndef KTUPNPROUTER_H
22 #define KTUPNPROUTER_H
25 #include <QStringList>
27 #include <net/portlist.h>
28 #include <ktorrent_export.h>
78 QString modelDescription;
106 UPnPRouter(
const QString & server,
const QUrl &location,
bool verbose =
false);
146 void isPortForwarded(
const net::Port & port);
191 void downloadFinished(KJob* j);
207 class UPnPRouterPrivate;
208 UPnPRouterPrivate* d;
void setProperty(const QString &name, const QString &value)
QUrl getLocation() const
Get the location of it's xml description.
void addService(const UPnPService &s)
const UPnPDeviceDescription & getDescription() const
Get the device description (const version)
QString getExternalIP() const
Get the router's external IP.
QString getError() const
Get the current error (null string if there is none)
void undoForward(const net::Port &port, bt::WaitJob *waitjob=0)
QString getServer() const
Get the name of the server.
UPnPDeviceDescription & getDescription()
Get the device description.
void visit(Visitor *visitor) const
void setVerbose(bool v)
Disable or enable verbose logging.
virtual void forwarding(const net::Port &port, bool pending, const UPnPService *service)=0
void xmlFileDownloaded(UPnPRouter *r, bool success)
void forward(const net::Port &port)
void setProperty(const QString &name, const QString &value)
UPnPRouter(const QString &server, const QUrl &location, bool verbose=false)