From 7346aee26bf190a7e70333c40fab4caca847cd27 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:22:56 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- noatun-plugins/oblique/kdbt.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'noatun-plugins/oblique/kdbt.h') 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 -#include -#include +#include +#include #include "kbuffer.h" /**A generic wrapper for "database thang" class that abstracts binary streaming operations. @@ -19,8 +19,8 @@ template 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; }; -- cgit v1.2.1