diff options
Diffstat (limited to 'lskat/lskatproc/KEMessage.h')
-rw-r--r-- | lskat/lskatproc/KEMessage.h | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/lskat/lskatproc/KEMessage.h b/lskat/lskatproc/KEMessage.h index 0a1913cc..9e4d6912 100644 --- a/lskat/lskatproc/KEMessage.h +++ b/lskat/lskatproc/KEMessage.h @@ -18,44 +18,44 @@ #define _KEMESSAGE_H_ #include <string.h> -#include <qstring.h> -#include <qstrlist.h> -#include <qdict.h> +#include <tqstring.h> +#include <tqstrlist.h> +#include <tqdict.h> #include "KMessageEntry.h" -#define KEMESSAGE_HEAD QString(QCString("BEGIN_V1000")) -#define KEMESSAGE_TAIL QString(QCString("END_V1000")) -#define KEMESSAGE_CR QString(QCString("\n")) -#define KEMESSAGE_SEP QString(QCString(":::")) +#define KEMESSAGE_HEAD TQString(TQCString("BEGIN_V1000")) +#define KEMESSAGE_TAIL TQString(TQCString("END_V1000")) +#define KEMESSAGE_CR TQString(TQCString("\n")) +#define KEMESSAGE_SEP TQString(TQCString(":::")) class KEMessage { private: - QStrList keys; - QDict<KMessageEntry> dict; + TQStrList keys; + TQDict<KMessageEntry> dict; protected: - void AddEntry(QString key,KMessageEntry *entry); + void AddEntry(TQString key,KMessageEntry *entry); public: - QStrList *QueryKeys(); + TQStrList *QueryKeys(); uint QueryNumberOfKeys(); - void AddDataType(QString key,int size,const char *data,KGM_TYPE type); - void AddData(QString key,short data); - void AddData(QString key,long data); - void AddData(QString key,float data); - void AddData(QString key,const char *data,int size=-1); - bool GetData(QString key,short &s); - bool GetData(QString key,long &l); - bool GetData(QString key,float &f); - bool GetData(QString key,char * &c,int &size); - bool HasKey(QString key); - void Remove(QString key); - KGM_TYPE QueryType(QString key); - QString ToString(); - QString EntryToString(char *key,KMessageEntry *entry); - QString StringToEntry(QString str,KMessageEntry *entry); - bool AddString(QString s); - bool AddStringMsg(QString str); + void AddDataType(TQString key,int size,const char *data,KGM_TYPE type); + void AddData(TQString key,short data); + void AddData(TQString key,long data); + void AddData(TQString key,float data); + void AddData(TQString key,const char *data,int size=-1); + bool GetData(TQString key,short &s); + bool GetData(TQString key,long &l); + bool GetData(TQString key,float &f); + bool GetData(TQString key,char * &c,int &size); + bool HasKey(TQString key); + void Remove(TQString key); + KGM_TYPE QueryType(TQString key); + TQString ToString(); + TQString EntryToString(char *key,KMessageEntry *entry); + TQString StringToEntry(TQString str,KMessageEntry *entry); + bool AddString(TQString s); + bool AddStringMsg(TQString str); void RemoveAll(); ~KEMessage(); KEMessage(); |