summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/libkirc/kircmessage.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/irc/libkirc/kircmessage.h
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/irc/libkirc/kircmessage.h')
-rw-r--r--kopete/protocols/irc/libkirc/kircmessage.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/kopete/protocols/irc/libkirc/kircmessage.h b/kopete/protocols/irc/libkirc/kircmessage.h
index e37f3fb2..02631bbf 100644
--- a/kopete/protocols/irc/libkirc/kircmessage.h
+++ b/kopete/protocols/irc/libkirc/kircmessage.h
@@ -22,11 +22,11 @@
#include <kbufferedio.h>
-#include <qdict.h>
-#include <qstring.h>
-#include <qstringlist.h>
-#include <qtextcodec.h>
-#include <qregexp.h>
+#include <tqdict.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
+#include <tqtextcodec.h>
+#include <tqregexp.h>
#include <kopetemessage.h>
@@ -44,20 +44,20 @@ class Message
public:
/** \brief Sends the message as-is to the server.
*/
- static void writeRawMessage(KIRC::Engine *engine, const QTextCodec *codec, const QString &str);
+ static void writeRawMessage(KIRC::Engine *engine, const TQTextCodec *codec, const TQString &str);
- static void writeMessage(KIRC::Engine *engine, const QTextCodec *codec, const QString &str);
+ static void writeMessage(KIRC::Engine *engine, const TQTextCodec *codec, const TQString &str);
- static void writeMessage(KIRC::Engine *engine, const QTextCodec *codec,
- const QString &command, const QStringList &args, const QString &suffix);
+ static void writeMessage(KIRC::Engine *engine, const TQTextCodec *codec,
+ const TQString &command, const TQStringList &args, const TQString &suffix);
- static void writeCtcpMessage(KIRC::Engine *engine, const QTextCodec *codec,
- const QString &command, const QString &to,
- const QString &ctcpMessage);
+ static void writeCtcpMessage(KIRC::Engine *engine, const TQTextCodec *codec,
+ const TQString &command, const TQString &to,
+ const TQString &ctcpMessage);
- static void writeCtcpMessage(KIRC::Engine *engine, const QTextCodec *codec,
- const QString &command, const QString &to, const QString &suffix,
- const QString &ctcpCommand, const QStringList &ctcpArgs = QStringList(), const QString &ctcpSuffix = QString::null );
+ static void writeCtcpMessage(KIRC::Engine *engine, const TQTextCodec *codec,
+ const TQString &command, const TQString &to, const TQString &suffix,
+ const TQString &ctcpCommand, const TQStringList &ctcpArgs = TQStringList(), const TQString &ctcpSuffix = TQString::null );
Message();
Message(const KIRC::Message &obj);
@@ -65,10 +65,10 @@ public:
~Message();
- inline const QString nickFromPrefix() const
+ inline const TQString nickFromPrefix() const
{ return Kopete::Message::unescape(KIRC::Entity::userNick(m_prefix)); }
- QString toString() const;
+ TQString toString() const;
/** \brief Returns true if the message command is numeric.
*/
@@ -84,11 +84,11 @@ public:
/** \brief Re-decodes the message with given codec.
*/
- void decodeAgain( const QTextCodec *codec );
+ void decodeAgain( const TQTextCodec *codec );
/** \brief The whole message as received.
*/
- inline const QCString &raw() const
+ inline const TQCString &raw() const
{ return m_raw; }
/** \brief Prefix of this message.
@@ -100,7 +100,7 @@ public:
* message = [ ":" prefix SPACE ] command [ params ] crlf
* prefix = servername / ( nickname [ [ "!" user ] "@" host ] )
*/
- inline const QString &prefix() const
+ inline const TQString &prefix() const
{ return m_prefix; }
/** \brief The command part of this message.
@@ -109,7 +109,7 @@ public:
*
* Examples: "MODE", "PRIVMSG", 303, 001, ...
*/
- inline const QString &command() const
+ inline const TQString &command() const
{ return m_command; }
/** \brief The number of command arguments this message contains.
@@ -119,19 +119,19 @@ public:
/** \brief i:th command argument.
*/
- inline const QString &arg(size_t i) const
+ inline const TQString &arg(size_t i) const
{ return m_args[i]; }
/** \brief All command arguments.
*/
- inline const QStringList &args() const
+ inline const TQStringList &args() const
{ return m_args; }
/** \brief Message suffix.
*/
- inline const QString &suffix() const
+ inline const TQString &suffix() const
{ return m_suffix; }
- inline const QString &ctcpRaw() const
+ inline const TQString &ctcpRaw() const
{ return m_ctcpRaw; }
inline bool hasCtcpMessage() const
@@ -139,58 +139,58 @@ public:
inline class KIRC::Message &ctcpMessage() const
{ return *m_ctcpMessage; }
- static KIRC::Message parse(KIRC::Engine *engine, const QTextCodec *codec, bool *parseSuccess=0);
+ static KIRC::Message parse(KIRC::Engine *engine, const TQTextCodec *codec, bool *parseSuccess=0);
private:
/**
* Contains the low level dequoted message.
*/
- QCString m_raw;
+ TQCString m_raw;
/**
* Contains the completely dequoted prefix.
*/
- QString m_prefix;
+ TQString m_prefix;
/**
* Contains the completely dequoted command.
*/
- QString m_command;
+ TQString m_command;
/**
* Contains the completely dequoted args.
*/
- QStringList m_args;
+ TQStringList m_args;
/**
* Contains the completely dequoted suffix.
*/
- QString m_suffix;
+ TQString m_suffix;
/**
* If it is a message contains the completely dequoted rawCtcpLine.
* If it is a ctcp message contains the completely dequoted rawCtcpArgsLine.
*/
- QString m_ctcpRaw;
+ TQString m_ctcpRaw;
// low level quoting, message quoting
- static QString quote(const QString &str);
- static QString unquote(const QString &str);
+ static TQString quote(const TQString &str);
+ static TQString unquote(const TQString &str);
// ctcp level quoting
- static QString ctcpQuote(const QString &str);
- static QString ctcpUnquote(const QString &str);
+ static TQString ctcpQuote(const TQString &str);
+ static TQString ctcpUnquote(const TQString &str);
- static bool extractCtcpCommand(QCString &str, QCString &ctcpline);
+ static bool extractCtcpCommand(TQCString &str, TQCString &ctcpline);
- static bool matchForIRCRegExp(const QCString &line, const QTextCodec *codec, KIRC::Message &message);
- static bool matchForIRCRegExp(QRegExp &regexp, const QTextCodec *codec, const QCString &line, KIRC::Message &message);
+ static bool matchForIRCRegExp(const TQCString &line, const TQTextCodec *codec, KIRC::Message &message);
+ static bool matchForIRCRegExp(TQRegExp &regexp, const TQTextCodec *codec, const TQCString &line, KIRC::Message &message);
class KIRC::Message *m_ctcpMessage;
- static QRegExp m_IRCCommandType1;
+ static TQRegExp m_IRCCommandType1;
#ifdef _IRC_STRICTNESS_
- static QRegExp m_IRCCommandType2;
+ static TQRegExp m_IRCCommandType2;
#endif // _IRC_STRICTNESS_
- static QRegExp m_IRCNumericCommand;
+ static TQRegExp m_IRCNumericCommand;
};
}