summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/oblique/kdbt.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:22:56 +0000
commit7346aee26bf190a7e70333c40fab4caca847cd27 (patch)
tree4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /noatun-plugins/oblique/kdbt.h
parent23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff)
downloadtdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz
tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun-plugins/oblique/kdbt.h')
-rw-r--r--noatun-plugins/oblique/kdbt.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/noatun-plugins/oblique/kdbt.h b/noatun-plugins/oblique/kdbt.h
index acaae57..4ecc71a 100644
--- a/noatun-plugins/oblique/kdbt.h
+++ b/noatun-plugins/oblique/kdbt.h
@@ -7,8 +7,8 @@
#define KDbt_Interface
#include <db_cxx.h>
-#include <qdatastream.h>
-#include <qbuffer.h>
+#include <tqdatastream.h>
+#include <tqbuffer.h>
#include "kbuffer.h"
/**A generic wrapper for "database thang" class that abstracts binary streaming operations.
@@ -19,8 +19,8 @@ template <typename T>
class KDbt : public Dbt {
public:
/* assume streaming operators on QDataStream
- QDataStream & operator>> ( QDataStream& >>, T &);
- QDataStream & operator<< ( QDataStream& >>, T &);
+ TQDataStream & operator>> ( TQDataStream& >>, T &);
+ TQDataStream & operator<< ( TQDataStream& >>, T &);
*/
KDbt() {
}
@@ -34,7 +34,7 @@ public:
/** set "thang" to the contents of obj */
void set(const T& obj) {
// KBuffer buffer(thang);
- QDataStream ds(&thang);
+ TQDataStream ds(&thang);
ds << obj;
// std::cerr << "thang size " << thang.size() << endl;
// buffer.close();
@@ -44,15 +44,15 @@ public:
set_size(thang.size());
}
void get(T& obj) {
- QByteArray buffer;
+ TQByteArray buffer;
buffer.setRawData((char*)get_data(),get_size());
- QDataStream ds(buffer,IO_ReadWrite);
+ TQDataStream ds(buffer,IO_ReadWrite);
ds >> obj;
buffer.resetRawData((char*)get_data(),get_size());
}
private:
/** Internal data */
-// QByteArray thang;
+// TQByteArray thang;
KBuffer thang;
};