summaryrefslogtreecommitdiffstats
path: root/src/modules/torrent/tc_interface.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 18:31:12 +0000
commit0a80cfd57d271dd44221467efb426675fa470356 (patch)
tree6f503a31aa078eaf8fa015cf1749808529d49fc9 /src/modules/torrent/tc_interface.h
parent3329e5a804e28ef3f5eb51d1e7affdd5a508e8f2 (diff)
downloadkvirc-0a80cfd57d271dd44221467efb426675fa470356.tar.gz
kvirc-0a80cfd57d271dd44221467efb426675fa470356.zip
TQt4 port kvirc
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1238719 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/modules/torrent/tc_interface.h')
-rw-r--r--src/modules/torrent/tc_interface.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/src/modules/torrent/tc_interface.h b/src/modules/torrent/tc_interface.h
index 797ea428..c7de40b1 100644
--- a/src/modules/torrent/tc_interface.h
+++ b/src/modules/torrent/tc_interface.h
@@ -30,9 +30,9 @@
#include "kvi_settings.h"
#include "kvi_qstring.h"
-#include <qobject.h>
+#include <tqobject.h>
-class KviTorrentInterface : public QObject
+class KviTorrentInterface : public TQObject
{
public:
@@ -47,19 +47,19 @@ public:
/*
// path of torrent file
- virtual QCString getTorrentFile(int i)=0;
+ virtual TQCString getTorrentFile(int i)=0;
// directory where data is downloaded to
- virtual QCString getTorrentDataDir(int i)=0;
+ virtual TQCString getTorrentDataDir(int i)=0;
*/
// number of files in torrent
virtual int fileCount(int i)=0;
// name of file in torrent
- virtual QString fileName(int i, int file)=0;
+ virtual TQString fileName(int i, int file)=0;
// returns file priority (low, normal, high)
- virtual QString filePriority(int i, int file)=0;
+ virtual TQString filePriority(int i, int file)=0;
// sets file priority
- virtual bool setFilePriority(int i, int file, const QString &prio)=0;
+ virtual bool setFilePriority(int i, int file, const TQString &prio)=0;
virtual bool start(int i)=0;
virtual bool stop(int i)=0;
@@ -72,16 +72,16 @@ public:
// remove torrent from client
virtual bool removeTorrent(int i)=0;
- virtual bool addTorrent(const QCString &mrl);
+ virtual bool addTorrent(const TQCString &mrl);
*/
// returns state of torrent number i (Stopped, Stalled, Seeding, Downloading)
// this uses getTorrentInfo() to obtain the state and then
// returns it as string
- virtual QString state(int i)=0;
+ virtual TQString state(int i)=0;
// name of torrent as displayed in client
// uses getTorrentInfo()
- virtual QString name(int i)=0;
+ virtual TQString name(int i)=0;
virtual float speedUp()=0;
virtual float speedDown()=0;
@@ -95,14 +95,14 @@ public:
virtual bool setMaxUploadSpeed(int kbytes_per_sec)=0;
virtual bool setMaxDownloadSpeed(int kbytes_per_sec)=0;
- QString lastError() { return m_lastError; }
+ TQString lastError() { return m_lastError; }
static void select(KviTorrentInterface *i) { m_selected = i; }
static KviTorrentInterface *selected() { return m_selected; }
protected:
- QString m_lastError;
+ TQString m_lastError;
static KviTorrentInterface *m_selected;
};
@@ -113,8 +113,8 @@ public:
KviTorrentInterfaceDescriptor() {};
virtual ~KviTorrentInterfaceDescriptor() {};
public:
- virtual const QString & name() = 0;
- virtual const QString & description() = 0;
+ virtual const TQString & name() = 0;
+ virtual const TQString & description() = 0;
virtual KviTorrentInterface * instance() = 0;
};
@@ -126,11 +126,11 @@ public:
virtual ~_interfaceclass ## Descriptor(); \
protected: \
_interfaceclass * m_pInstance; \
- QString m_szName; \
- QString m_szDescription; \
+ TQString m_szName; \
+ TQString m_szDescription; \
public: \
- virtual const QString & name(); \
- virtual const QString & description(); \
+ virtual const TQString & name(); \
+ virtual const TQString & description(); \
virtual KviTorrentInterface * instance(); \
};
@@ -146,11 +146,11 @@ public:
{ \
delete m_pInstance; \
} \
- const QString & _interfaceclass ## Descriptor::name() \
+ const TQString & _interfaceclass ## Descriptor::name() \
{ \
return m_szName; \
} \
- const QString & _interfaceclass ## Descriptor::description() \
+ const TQString & _interfaceclass ## Descriptor::description() \
{ \
return m_szDescription; \
} \