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 /apps/ktorrent/ktorrentdcop.cpp | |
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 'apps/ktorrent/ktorrentdcop.cpp')
-rw-r--r-- | apps/ktorrent/ktorrentdcop.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/ktorrent/ktorrentdcop.cpp b/apps/ktorrent/ktorrentdcop.cpp index 592f74d..10e09cb 100644 --- a/apps/ktorrent/ktorrentdcop.cpp +++ b/apps/ktorrent/ktorrentdcop.cpp @@ -33,19 +33,19 @@ KTorrentDCOP::~KTorrentDCOP() {} -bool KTorrentDCOP::changeDataDir(const QString& new_dir) +bool KTorrentDCOP::changeDataDir(const TQString& new_dir) { Settings::setTempDir(new_dir); Settings::writeConfig(); return app->getCore().changeDataDir(new_dir); } -void KTorrentDCOP::openTorrent(const QString& file) +void KTorrentDCOP::openTorrent(const TQString& file) { app->load(KURL::fromPathOrURL(file)); } -void KTorrentDCOP::openTorrentSilently(const QString & file) +void KTorrentDCOP::openTorrentSilently(const TQString & file) { app->loadSilently(KURL::fromPathOrURL(file)); } @@ -123,7 +123,7 @@ void KTorrentDCOP::stop(int tornumber, bool user) app->getCore().stop(tc, user); } -QValueList<int> KTorrentDCOP::getTorrentNumbers(int type) +TQValueList<int> KTorrentDCOP::getTorrentNumbers(int type) { return app->getCore().getTorrentNumbers(type); } @@ -141,7 +141,7 @@ QCStringList KTorrentDCOP::getTorrentInfo(int tornumber) QCStringList KTorrentDCOP::getInfo() { QCStringList info; - QString thisinfo = app->getStatusInfo(); + TQString thisinfo = app->getStatusInfo(); info.append(thisinfo.ascii()); thisinfo = app->getStatusTransfer(); info.append(thisinfo.ascii()); @@ -162,7 +162,7 @@ QCStringList KTorrentDCOP::getFileNames(int tornumber) return app->getCore().getFileNames(tornumber); } -QValueList<int> KTorrentDCOP::getFilePriorities(int tornumber) +TQValueList<int> KTorrentDCOP::getFilePriorities(int tornumber) { return app->getCore().getFilePriorities(tornumber); } @@ -187,9 +187,9 @@ void KTorrentDCOP::announce(int tornumber) app->getCore().announceByTorNum(tornumber); } -QCString KTorrentDCOP::dataDir() +TQCString KTorrentDCOP::dataDir() { - QCString dir = Settings::tempDir().ascii(); + TQCString dir = Settings::tempDir().ascii(); return dir; } @@ -228,9 +228,9 @@ bool KTorrentDCOP::showSystemTrayIcon() return Settings::showSystemTrayIcon(); } -QValueList<int> KTorrentDCOP::intSettings() +TQValueList<int> KTorrentDCOP::intSettings() { - QValueList<int> intsettings; + TQValueList<int> intsettings; intsettings.append(Settings::maxDownloads()); intsettings.append(Settings::maxSeeds()); intsettings.append(Settings::maxConnections()); @@ -241,12 +241,12 @@ QValueList<int> KTorrentDCOP::intSettings() return intsettings; } -bool KTorrentDCOP::isBlockedIP(QString ip) +bool KTorrentDCOP::isBlockedIP(TQString ip) { return bt::IPBlocklist::instance().isBlocked(ip); } -void KTorrentDCOP::openTorrentSilentlyDir(const QString & file, const QString & savedir) +void KTorrentDCOP::openTorrentSilentlyDir(const TQString & file, const TQString & savedir) { app->loadSilentlyDir(KURL::fromPathOrURL(file), KURL::fromPathOrURL(savedir)); } |