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/torrent/multifilecache.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/torrent/multifilecache.h')
-rw-r--r-- | libktorrent/torrent/multifilecache.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/libktorrent/torrent/multifilecache.h b/libktorrent/torrent/multifilecache.h index 9c1280e..ed09525 100644 --- a/libktorrent/torrent/multifilecache.h +++ b/libktorrent/torrent/multifilecache.h @@ -39,34 +39,34 @@ namespace bt */ class MultiFileCache : public Cache { - QString cache_dir,output_dir; + TQString cache_dir,output_dir; PtrMap<Uint32,CacheFile> files; PtrMap<Uint32,DNDFile> dnd_files; public: - MultiFileCache(Torrent& tor,const QString & tmpdir,const QString & datadir,bool custom_output_name); + MultiFileCache(Torrent& tor,const TQString & tmpdir,const TQString & datadir,bool custom_output_name); virtual ~MultiFileCache(); - virtual void changeTmpDir(const QString& ndir); + virtual void changeTmpDir(const TQString& ndir); virtual void create(); virtual void load(Chunk* c); virtual void save(Chunk* c); virtual bool prep(Chunk* c); virtual void close(); virtual void open(); - virtual QString getOutputPath() const; - virtual void changeOutputPath(const QString & outputpath); - virtual KIO::Job* moveDataFiles(const QString & ndir); + virtual TQString getOutputPath() const; + virtual void changeOutputPath(const TQString & outputpath); + virtual KIO::Job* moveDataFiles(const TQString & ndir); virtual void moveDataFilesCompleted(KIO::Job* job); virtual void preallocateDiskSpace(PreallocationThread* prealloc); - virtual bool hasMissingFiles(QStringList & sl); + virtual bool hasMissingFiles(TQStringList & sl); virtual void deleteDataFiles(); virtual Uint64 diskUsage(); private: void touch(TorrentFile & tf); virtual void downloadStatusChanged(TorrentFile*, bool); - QString guessDataDir(); - void saveFirstAndLastChunk(TorrentFile* tf,const QString & src_file,const QString & dst_file); - void recreateFile(TorrentFile* tf,const QString & dnd_file,const QString & output_file); + TQString guessDataDir(); + void saveFirstAndLastChunk(TorrentFile* tf,const TQString & src_file,const TQString & dst_file); + void recreateFile(TorrentFile* tf,const TQString & dnd_file,const TQString & output_file); }; } |