diff options
Diffstat (limited to 'noatun-plugins/oblique/kdbt.h')
-rw-r--r-- | noatun-plugins/oblique/kdbt.h | 16 |
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; }; |