diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/interfaces/peersource.h | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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 'libktorrent/interfaces/peersource.h')
-rw-r--r-- | libktorrent/interfaces/peersource.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libktorrent/interfaces/peersource.h b/libktorrent/interfaces/peersource.h index 9c2b589..c7aa73d 100644 --- a/libktorrent/interfaces/peersource.h +++ b/libktorrent/interfaces/peersource.h @@ -20,8 +20,8 @@ #ifndef KTPEERSOURCE_H #define KTPEERSOURCE_H -#include <qobject.h> -#include <qvaluelist.h> +#include <tqobject.h> +#include <tqvaluelist.h> #include <util/constants.h> namespace bt @@ -33,7 +33,7 @@ namespace kt { struct PotentialPeer { - QString ip; + TQString ip; bt::Uint16 port; bool local; @@ -47,9 +47,10 @@ namespace kt * for torrents. PeerSources should work independently and should emit a signal when they * have peers ready. */ - class PeerSource : public QObject + class PeerSource : public TQObject { Q_OBJECT + TQ_OBJECT public: PeerSource(); virtual ~PeerSource(); @@ -70,7 +71,7 @@ namespace kt * @param port The port * @param local Wether or not the peer is on the local network */ - void addPeer(const QString & ip,bt::Uint16 port,bool local = false); + void addPeer(const TQString & ip,bt::Uint16 port,bool local = false); public slots: /** @@ -110,7 +111,7 @@ namespace kt private: /// List to keep the potential peers in. - QValueList<PotentialPeer> peers; + TQValueList<PotentialPeer> peers; }; } |