diff options
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h')
-rw-r--r-- | kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h b/kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h index 0a40878c..c4410ade 100644 --- a/kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h +++ b/kbabel/kbabeldict/modules/dbsearchengine2/dbentries.h @@ -2,19 +2,19 @@ #define DBENTRIES_H #include <db4/db_cxx.h> -#include <qstring.h> -#include <qbuffer.h> -#include <qmap.h> -#include <qstringlist.h> -#include <qdatetime.h> +#include <tqstring.h> +#include <tqbuffer.h> +#include <tqmap.h> +#include <tqstringlist.h> +#include <tqdatetime.h> class CatalogInfo { - QString author; - QDateTime datetime; - QString filename; - QString filepath; + TQString author; + TQDateTime datetime; + TQString filename; + TQString filepath; }; @@ -23,13 +23,13 @@ class ResultInfo { public: //Common info - QString original; //placeholder + TQString original; //placeholder // //Multi reference info - QValueList<CatalogInfo> catalogs; + TQValueList<CatalogInfo> catalogs; - QString info; + TQString info; }; @@ -54,9 +54,9 @@ public: protected: - virtual void read(QDataStream *s) = 0; - virtual void write(QDataStream *s) = 0; - QByteArray mydata; + virtual void read(TQDataStream *s) = 0; + virtual void write(TQDataStream *s) = 0; + TQByteArray mydata; bool empty; }; @@ -65,17 +65,17 @@ class DBItemMainKey : public DBItem { public: DBItemMainKey(); - DBItemMainKey(QString searchstring); + DBItemMainKey(TQString searchstring); - QString getString(){ return sstr;} + TQString getString(){ return sstr;} private: - virtual void read(QDataStream *s); - virtual void write(QDataStream *s); + virtual void read(TQDataStream *s); + virtual void write(TQDataStream *s); - QString sstr; + TQString sstr; }; @@ -84,21 +84,21 @@ class DBItemMainData : public DBItem { public: - typedef QMapIterator<QString,QValueList<unsigned int> > TranslationIterator; - typedef QMap<QString,QValueList<unsigned int> > TranslationMap; + typedef TQMapIterator<TQString,TQValueList<unsigned int> > TranslationIterator; + typedef TQMap<TQString,TQValueList<unsigned int> > TranslationMap; DBItemMainData(); - QStringList getTranslations(); - QValueList<unsigned int> getReferences(QString str); + TQStringList getTranslations(); + TQValueList<unsigned int> getReferences(TQString str); void clear(); //Add a translation with reference ref, if translation exists append // ref to the list of references - void addTranslation(QString str,unsigned int ref); - void removeTranslation(QString str,unsigned int ref); + void addTranslation(TQString str,unsigned int ref); + void removeTranslation(TQString str,unsigned int ref); //remove any reference to ref, if ref is the only reference of a translation // the translation is removed @@ -109,8 +109,8 @@ class DBItemMainData : public DBItem private: - virtual void read(QDataStream *s); - virtual void write(QDataStream *s); + virtual void read(TQDataStream *s); + virtual void write(TQDataStream *s); unsigned int indexnumber; TranslationMap translations; @@ -121,7 +121,7 @@ private: class DBItemMultiIndex : public DBItem { public: - typedef QValueList<unsigned int> IndexList; + typedef TQValueList<unsigned int> IndexList; DBItemMultiIndex(); // DBItemMultiIndex(IndexList l); @@ -134,8 +134,8 @@ class DBItemMultiIndex : public DBItem private: - virtual void read(QDataStream *s); - virtual void write(QDataStream *s); + virtual void read(TQDataStream *s); + virtual void write(TQDataStream *s); IndexList list; |