summaryrefslogtreecommitdiffstats
path: root/src/upnpmanager.cpp
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2013-07-27 16:57:53 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-07-27 18:48:46 +0200
commit7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931 (patch)
tree4655c7263ca5c64d23d10167cb459dd9cb253815 /src/upnpmanager.cpp
parent88ea2b6cd4382627fb6efca9cc54825aee881d1e (diff)
downloadtork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.tar.gz
tork-7c2bc4b5ce4fc1a72868aa949e9ec49fbe2e7931.zip
Initial TQt conversion
Diffstat (limited to 'src/upnpmanager.cpp')
-rw-r--r--src/upnpmanager.cpp36
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;