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/torrent.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/torrent.h')
-rw-r--r-- | libktorrent/torrent/torrent.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/libktorrent/torrent/torrent.h b/libktorrent/torrent/torrent.h index 04c45cd..05c28cc 100644 --- a/libktorrent/torrent/torrent.h +++ b/libktorrent/torrent/torrent.h @@ -22,7 +22,7 @@ #define BTTORRENT_H #include <kurl.h> -#include <qvaluevector.h> +#include <tqvaluevector.h> #include <util/sha1hash.h> #include <util/constants.h> #include <interfaces/torrentinterface.h> @@ -74,7 +74,7 @@ namespace bt * @param verbose Wether to print information to the log * @throw Error if something goes wrong */ - void load(const QString & file,bool verbose); + void load(const TQString & file,bool verbose); /** * Load a .torrent file. @@ -82,7 +82,7 @@ namespace bt * @param verbose Wether to print information to the log * @throw Error if something goes wrong */ - void load(const QByteArray & data,bool verbose); + void load(const TQByteArray & data,bool verbose); void debugPrintInfo(); @@ -102,7 +102,7 @@ namespace bt Uint64 getFileLength() const {return file_length;} /// Get the suggested name. - QString getNameSuggestion() const {return name_suggestion;} + TQString getNameSuggestion() const {return name_suggestion;} /** * Verify wether a hash matches the hash @@ -155,7 +155,7 @@ namespace bt * @param chunk The index of the chunk * @param file_list This list will be filled with all the indices */ - void calcChunkPos(Uint32 chunk,QValueList<Uint32> & file_list) const; + void calcChunkPos(Uint32 chunk,TQValueList<Uint32> & file_list) const; /** * Checks if torrent file is audio or video. @@ -197,19 +197,19 @@ namespace bt void loadFiles(BListNode* node); void loadNodes(BListNode* node); void loadAnnounceList(BNode* node); - bool checkPathForDirectoryTraversal(const QString & p); + bool checkPathForDirectoryTraversal(const TQString & p); private: TrackerTier* trackers; - QString name_suggestion; + TQString name_suggestion; Uint64 piece_length; Uint64 file_length; SHA1Hash info_hash; PeerID peer_id; - QValueVector<SHA1Hash> hash_pieces; - QValueVector<TorrentFile> files; - QValueVector<kt::DHTNode> nodes; - QString encoding; + TQValueVector<SHA1Hash> hash_pieces; + TQValueVector<TorrentFile> files; + TQValueVector<kt::DHTNode> nodes; + TQString encoding; bool priv_torrent; }; |