diff options
Diffstat (limited to 'src/upnpmanager.cpp')
-rw-r--r-- | src/upnpmanager.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/upnpmanager.cpp b/src/upnpmanager.cpp index 573fa16..d249c68 100644 --- a/src/upnpmanager.cpp +++ b/src/upnpmanager.cpp @@ -39,8 +39,8 @@ UPnPManager* UPnPManager::manager = 0; return manager; } - UPnPManager::UPnPManager(QWidget* parent, const char* name) - : QWidget(parent, name) + UPnPManager::UPnPManager(TQWidget* parent, const char* name) + : TQWidget(parent, name) { sock = new UPnPMCastSocket(); connect(sock,SIGNAL(discovered( kt::UPnPRouter* )), @@ -80,18 +80,18 @@ UPnPManager* UPnPManager::manager = 0; bool force, bool silent) { m_silent = silent; - QValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); + TQValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); while (r != discoveredRouters.end()) { - disconnect((*r),SIGNAL(replyError(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool )), - this,SLOT(onReplyError(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool ))); - disconnect((*r),SIGNAL(replyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool )), - this,SLOT(onReplyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool ))); + disconnect((*r),SIGNAL(replyError(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool )), + this,SLOT(onReplyError(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool ))); + disconnect((*r),SIGNAL(replyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool )), + this,SLOT(onReplyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool ))); - connect((*r),SIGNAL(replyError(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool )), - this,SLOT(onReplyError(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool ))); - connect((*r),SIGNAL(replyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool )), - this,SLOT(onReplyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const QString&, bool ))); + connect((*r),SIGNAL(replyError(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool )), + this,SLOT(onReplyError(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool ))); + connect((*r),SIGNAL(replyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool )), + this,SLOT(onReplyOK(kt::UPnPRouter*,bt::HTTPRequest* ,const TQString&, bool ))); for (net::ForwardPortList::ConstIterator i = forwardPorts.begin(); i != forwardPorts.end();i++) @@ -109,13 +109,13 @@ UPnPManager* UPnPManager::manager = 0; kdDebug() << "Done" << endl; } - void UPnPManager::onReplyError(kt::UPnPRouter* router,bt::HTTPRequest* req,const QString&, bool fwd ) + void UPnPManager::onReplyError(kt::UPnPRouter* router,bt::HTTPRequest* req,const TQString&, bool fwd ) { emit forwardingError(router,req->showPayload(),fwd); } - void UPnPManager::onReplyOK(kt::UPnPRouter* router,bt::HTTPRequest* req,const QString&, bool fwd ) + void UPnPManager::onReplyOK(kt::UPnPRouter* router,bt::HTTPRequest* req,const TQString&, bool fwd ) { kdDebug() << "forwarding OK" << endl; @@ -126,7 +126,7 @@ UPnPManager* UPnPManager::manager = 0; bool silent) { m_silent = silent; - QValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); + TQValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); while (r != discoveredRouters.end()) { for (net::ForwardPortList::ConstIterator i = forwardPorts.begin();i != forwardPorts.end();i++) @@ -141,10 +141,10 @@ UPnPManager* UPnPManager::manager = 0; kdDebug() << "Done" << endl; } - QStringList UPnPManager::discoveredRoutersNameList() + TQStringList UPnPManager::discoveredRoutersNameList() { - QStringList routers; - QValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); + TQStringList routers; + TQValueList<kt::UPnPRouter*>::iterator r = discoveredRouters.begin(); while (r != discoveredRouters.end()) { routers.append((*r)->getDescription().friendlyName); @@ -162,7 +162,7 @@ UPnPManager* UPnPManager::manager = 0; void UPnPManager::unload() { -/* QString routers_file = KGlobal::dirs()->saveLocation("data","tork") + "routers"; +/* TQString routers_file = KGlobal::dirs()->saveLocation("data","tork") + "routers"; sock->saveRouters(routers_file);*/ sock->close(); delete sock; |