summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/statsfile.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/torrent/statsfile.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-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/statsfile.h')
-rw-r--r--libktorrent/torrent/statsfile.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/libktorrent/torrent/statsfile.h b/libktorrent/torrent/statsfile.h
index 9f7a145..c37018f 100644
--- a/libktorrent/torrent/statsfile.h
+++ b/libktorrent/torrent/statsfile.h
@@ -20,9 +20,9 @@
#ifndef BTSTATSFILE_H
#define BTSTATSFILE_H
-#include <qstring.h>
-#include <qfile.h>
-#include <qmap.h>
+#include <tqstring.h>
+#include <tqfile.h>
+#include <tqmap.h>
#include <util/constants.h>
@@ -40,32 +40,32 @@ namespace bt
* @brief A constructor.
* Constructs StatsFile object and calls readSync().
*/
- StatsFile(QString filename);
+ StatsFile(TQString filename);
~StatsFile();
- ///Closes QFile
+ ///Closes TQFile
void close();
/**
* @brief Main read function.
- * @return QString value that correspodents to key.
- * @param key - QString stats key.
+ * @return TQString value that correspodents to key.
+ * @param key - TQString stats key.
*/
- QString readString(QString key);
+ TQString readString(TQString key);
- Uint64 readUint64(QString key);
- bool readBoolean(QString key);
- int readInt(QString key);
- unsigned long readULong(QString key);
- float readFloat(QString key);
+ Uint64 readUint64(TQString key);
+ bool readBoolean(TQString key);
+ int readInt(TQString key);
+ unsigned long readULong(TQString key);
+ float readFloat(TQString key);
/**
* @brief Writes key and value.
* It only inserts pair of key/value to the m_values. To make changes to file call writeSync().
- * @param key - QString key
- * @param value - QString value.
+ * @param key - TQString key
+ * @param value - TQString value.
*/
- void write(QString key, QString value);
+ void write(TQString key, TQString value);
///Reads data from stats file to m_values.
void readSync();
@@ -78,13 +78,13 @@ namespace bt
* @param key The key
* @return true if key is in the stats file
*/
- bool hasKey(const QString & key) const {return m_values.contains(key);}
+ bool hasKey(const TQString & key) const {return m_values.tqcontains(key);}
private:
- QString m_filename;
- QFile m_file;
+ TQString m_filename;
+ TQFile m_file;
- QMap<QString, QString> m_values;
+ TQMap<TQString, TQString> m_values;
};
}