summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/peersourcemanager.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 /libktorrent/torrent/peersourcemanager.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 'libktorrent/torrent/peersourcemanager.h')
-rw-r--r--libktorrent/torrent/peersourcemanager.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/libktorrent/torrent/peersourcemanager.h b/libktorrent/torrent/peersourcemanager.h
index cdace4e..c46bbb8 100644
--- a/libktorrent/torrent/peersourcemanager.h
+++ b/libktorrent/torrent/peersourcemanager.h
@@ -20,9 +20,9 @@
#ifndef BTPEERSOURCEMANAGER_H
#define BTPEERSOURCEMANAGER_H
-#include <qtimer.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
+#include <tqtimer.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
#include <util/ptrmap.h>
#include <interfaces/trackerslist.h>
@@ -48,21 +48,22 @@ namespace bt
*
* This class manages all PeerSources.
*/
- class PeerSourceManager : public QObject, public kt::TrackersList
+ class PeerSourceManager : public TQObject, public kt::TrackersList
{
Q_OBJECT
+ TQ_OBJECT
TorrentControl* tor;
PeerManager* pman;
PtrMap<KURL,Tracker> trackers;
- QPtrList<kt::PeerSource> additional;
+ TQPtrList<kt::PeerSource> additional;
Tracker* curr;
dht::DHTTrackerBackend* m_dht;
bool started;
bool pending;
KURL::List custom_trackers;
- QDateTime request_time;
- QTimer timer;
+ TQDateTime request_time;
+ TQTimer timer;
Uint32 failures;
bool no_save_custom_trackers;
public:
@@ -144,7 +145,7 @@ namespace bt
* The an error happened contacting the tracker.
* @param err The error
*/
- void onTrackerError(const QString & err);
+ void onTrackerError(const TQString & err);
/**
* Tracker update was OK.
@@ -164,10 +165,10 @@ namespace bt
signals:
/**
- * Status has changed of the tracker.
+ * tqStatus has changed of the tracker.
* @param ns The new status
*/
- void statusChanged(const QString & ns);
+ void statusChanged(const TQString & ns);
private:
void saveCustomURLs();