summaryrefslogtreecommitdiffstats
path: root/plugins/upnp/upnpmcastsocket.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/upnp/upnpmcastsocket.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/upnp/upnpmcastsocket.h')
-rw-r--r--plugins/upnp/upnpmcastsocket.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/upnp/upnpmcastsocket.h b/plugins/upnp/upnpmcastsocket.h
index 493c5b9..86688a2 100644
--- a/plugins/upnp/upnpmcastsocket.h
+++ b/plugins/upnp/upnpmcastsocket.h
@@ -40,6 +40,7 @@ namespace kt
class UPnPMCastSocket : public KNetwork::KDatagramSocket
{
Q_OBJECT
+ TQ_OBJECT
public:
UPnPMCastSocket(bool verbose = false);
virtual ~UPnPMCastSocket();
@@ -48,13 +49,13 @@ namespace kt
Uint32 getNumDevicesDiscovered() const {return routers.count();}
/// Find a router using it's server name
- UPnPRouter* findDevice(const QString & name) {return routers.find(name);}
+ UPnPRouter* findDevice(const TQString & name) {return routers.tqfind(name);}
/// Save all routers to a file (for convenience at startup)
- void saveRouters(const QString & file);
+ void saveRouters(const TQString & file);
/// Load all routers from a file
- void loadRouters(const QString & file);
+ void loadRouters(const TQString & file);
public slots:
/**
@@ -76,14 +77,14 @@ namespace kt
void discovered(UPnPRouter* router);
public:
- UPnPRouter* parseResponse(const QByteArray & arr);
+ UPnPRouter* parseResponse(const TQByteArray & arr);
private:
void joinUPnPMCastGroup();
void leaveUPnPMCastGroup();
private:
- bt::PtrMap<QString,UPnPRouter> routers;
+ bt::PtrMap<TQString,UPnPRouter> routers;
bool verbose;
};
}