From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- libktorrent/torrent/downloader.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libktorrent/torrent/downloader.h') diff --git a/libktorrent/torrent/downloader.h b/libktorrent/torrent/downloader.h index 5b39eeb..fece8a6 100644 --- a/libktorrent/torrent/downloader.h +++ b/libktorrent/torrent/downloader.h @@ -20,7 +20,7 @@ #ifndef BTDOWNLOADER_H #define BTDOWNLOADER_H -#include +#include #include #include "globals.h" @@ -64,9 +64,10 @@ namespace bt * This class manages the downloading of the file. It should * regurarly be updated. */ - class Downloader : public QObject + class Downloader : public TQObject { Q_OBJECT + TQ_OBJECT public: /** @@ -109,20 +110,20 @@ namespace bt * Save the current downloads. * @param file The file to save to */ - void saveDownloads(const QString & file); + void saveDownloads(const TQString & file); /** * Load the current downloads. * @param file The file to load from */ - void loadDownloads(const QString & file); + void loadDownloads(const TQString & file); /** * Get the number of bytes already downloaded in the current_chunks file. * @param file The path of the current_chunks file * @return The bytes already downloading */ - Uint32 getDownloadedBytesOfCurrentChunksFile(const QString & file); + Uint32 getDownloadedBytesOfCurrentChunksFile(const TQString & file); /** * A corrupted chunk has been detected, make sure we redownload it. @@ -189,7 +190,7 @@ namespace bt * An error occurred while we we're writing or reading from disk. * @param msg Message */ - void ioError(const QString & msg); + void ioError(const TQString & msg); private: void downloadFrom(PeerDownloader* pd); -- cgit v1.2.1