From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksirc/chanparser.h | 68 +++++++++++++++++++++++++++--------------------------- 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'ksirc/chanparser.h') diff --git a/ksirc/chanparser.h b/ksirc/chanparser.h index ef130680..a79e7372 100644 --- a/ksirc/chanparser.h +++ b/ksirc/chanparser.h @@ -1,8 +1,8 @@ #ifndef CHAN_PARSER_H #define CHAN_PARSER_H -#include -#include +#include +#include /* * This file defines the parser, and all exceptions generated @@ -27,11 +27,11 @@ public: class parseSucc : public parseResult { public: - QString string; // String to display - QColor colour; - QString pm; + TQString string; // String to display + TQColor colour; + TQString pm; - parseSucc(const QString &_s, const QColor &_c = QColor(), const QString &_pm = QString::null){ + parseSucc(const TQString &_s, const TQColor &_c = TQColor(), const TQString &_pm = TQString::null){ string = _s; colour = _c; pm = _pm; @@ -46,10 +46,10 @@ public: class parseError : public parseResult { public: - QString str; - QString err; + TQString str; + TQString err; - parseError(const QString &_s, const QString &_e) + parseError(const TQString &_s, const TQString &_e) { str = _s; err = _e; @@ -59,7 +59,7 @@ public: class parseWrongChannel : public parseSucc { public: - parseWrongChannel(const QString &_s, const QColor &_c = QColor(), const QString &_pm = QString::null) + parseWrongChannel(const TQString &_s, const TQColor &_c = TQColor(), const TQString &_pm = TQString::null) : parseSucc(_s, _c, _pm) { } @@ -69,7 +69,7 @@ public: class parseJoinPart : public parseSucc { public: - parseJoinPart(const QString &_s, const QColor &_c = QColor(), const QString &_pm = QString::null) + parseJoinPart(const TQString &_s, const TQColor &_c = TQColor(), const TQString &_pm = TQString::null) : parseSucc(_s, _c, _pm) { } @@ -88,10 +88,10 @@ public: class badModeChangeError // Mode change barfed up, exit out { public: - QString str; + TQString str; char *msg; - badModeChangeError(QString _str, char *_msg) + badModeChangeError(TQString _str, char *_msg) { str = _str; msg = _msg; @@ -122,8 +122,8 @@ public: class parseFunc { public: - parseResult *(ChannelParser::*parser)(QString); - parseFunc(parseResult *(ChannelParser::*_parser)(QString)){ + parseResult *(ChannelParser::*parser)(TQString); + parseFunc(parseResult *(ChannelParser::*_parser)(TQString)){ parser = _parser; } @@ -149,7 +149,7 @@ public: * parse() thanks the string to be parsed and parses it. * It returns a class of type 'parseResult' or 0. */ - parseResult *parse(QString string); + parseResult *parse(TQString string); private: KSircTopLevel *top; @@ -175,7 +175,7 @@ private: * - On failure generate: parseFailed, etc */ - static QDict parserTable; + static TQDict parserTable; /* * Note regarding ssfe control messages: @@ -195,38 +195,38 @@ private: /** * SSFE clear 'l' function, clears main window */ - parseResult * parseSSFEClear(QString string); + parseResult * parseSSFEClear(TQString string); /** * SSFE Status is used to update caption, and op status * */ - parseResult * parseSSFEStatus(QString string); + parseResult * parseSSFEStatus(TQString string); /** * SSFE Init is called by ssfe when it's time to init and setup */ - parseResult * parseSSFEInit(QString string); + parseResult * parseSSFEInit(TQString string); /** * SSFE msg is called for each /msg sent to a diffrent user */ - parseResult * parseSSFEMsg(QString string); + parseResult * parseSSFEMsg(TQString string); /** * SSFE Out, not used */ - parseResult * parseSSFEOut(QString string); + parseResult * parseSSFEOut(TQString string); /** * SSFE Prompt, same function used for p and P, gives a password prompt */ - parseResult * parseSSFEPrompt(QString string); + parseResult * parseSSFEPrompt(TQString string); /** * SSFE Reconnect called when (re)connected to a server */ - parseResult * parseSSFEReconnect(QString string); + parseResult * parseSSFEReconnect(TQString string); /** * That's all the SSFE control messages, the rest are info *\S* message @@ -235,55 +235,55 @@ private: /** * *** is a generic infomation messge */ - parseResult * parseINFOInfo(QString string); + parseResult * parseINFOInfo(TQString string); /** * *E* is a error message */ - parseResult * parseINFOError(QString string); + parseResult * parseINFOError(TQString string); /** * *#* is a list of nicks, used to update the nick list if it's for * the current channel. */ - parseResult * parseINFONicks(QString in_string); + parseResult * parseINFONicks(TQString in_string); /** * *>* is a join message. If it's for the current channel */ - parseResult * parseINFOJoin(QString string); + parseResult * parseINFOJoin(TQString string); /** * *<* is a part message, if it's for the current channel remove it. * There's multiple part types, so parsing it more complicated. */ - parseResult * parseINFOPart(QString string); + parseResult * parseINFOPart(TQString string); /** * *N* Is a nick change, update the nick list if needed * Nick changes go outto all windows, so the nick may not be on * out current channel. */ - parseResult * parseINFOChangeNick(QString string); + parseResult * parseINFOChangeNick(TQString string); /* * *M* is a mode change. Parsing is mode changes is probably the most * complicated of all the parsings */ - parseResult * parseINFOMode(QString string); + parseResult * parseINFOMode(TQString string); /* * * is a ctcp actiion. Simply print a pretty * for the user */ - parseResult * parseCTCPAction(QString string); + parseResult * parseCTCPAction(TQString string); /* * *T* is a topic message, catch it and update the status is required */ - parseResult * parseINFOTopic(QString string); + parseResult * parseINFOTopic(TQString string); private: - void highlightNick(QString &string, QString &nick); + void highlightNick(TQString &string, TQString &nick); }; #endif -- cgit v1.2.1