summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp
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/kircengine_numericreplies.cpp
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/kircengine_numericreplies.cpp')
-rw-r--r--kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp132
1 files changed, 66 insertions, 66 deletions
diff --git a/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp b/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp
index c47b8b05..67d3a842 100644
--- a/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp
+++ b/kopete/protocols/irc/libkirc/kircengine_numericreplies.cpp
@@ -20,7 +20,7 @@
#include "kircengine.h"
-#include <qtimer.h>
+#include <tqtimer.h>
using namespace KIRC;
@@ -31,69 +31,69 @@ using namespace KIRC;
void Engine::bindNumericReplies()
{
- bind(1, this, SLOT(numericReply_001(KIRC::Message &)), 1, 1);
- bind(2, this, SLOT(numericReply_002(KIRC::Message &)), 1, 1);
- bind(3, this, SLOT(numericReply_003(KIRC::Message &)), 1, 1);
- bind(4, this, SLOT(numericReply_004(KIRC::Message &)), 5, 5);
- bind(5, this, SLOT(numericReply_004(KIRC::Message &)), 1, 1);
-
- bind(250, this, SLOT(numericReply_250(KIRC::Message &)));
- bind(251, this, SLOT(numericReply_251(KIRC::Message &)));
- bind(252, this, SLOT(numericReply_252(KIRC::Message &)), 2, 2);
- bind(253, this, SLOT(numericReply_253(KIRC::Message &)), 2, 2);
- bind(254, this, SLOT(numericReply_254(KIRC::Message &)), 2, 2);
- bind(255, this, SLOT(numericReply_255(KIRC::Message &)), 1, 1); // incomingConnectString
-
- bind(263, this, SLOT(numericReply_263(KIRC::Message &))); // incomingServerLoadTooHigh
- bind(265, this, SLOT(numericReply_265(KIRC::Message &)));
- bind(266, this, SLOT(numericReply_266(KIRC::Message &)));
-
- bind(301, this, SLOT(numericReply_301(KIRC::Message &)), 2, 2);
- bind(303, this, SLOT(numericReply_303(KIRC::Message &)), 1, 1);
- bind(305, this, SLOT(ignoreMessage(KIRC::Message &)), 0, 0 ); // You are no longer marked as away
- bind(306, this, SLOT(ignoreMessage(KIRC::Message &)), 0, 0 ); // You are marked as away
- bind(307, this, SLOT(numericReply_307(KIRC::Message &)), 1, 1);
- bind(311, this, SLOT(numericReply_311(KIRC::Message &)), 5, 5);
- bind(312, this, SLOT(numericReply_312(KIRC::Message &)), 3, 3);
- bind(313, this, SLOT(numericReply_313(KIRC::Message &)), 2, 2);
- bind(314, this, SLOT(numericReply_314(KIRC::Message &)), 5, 5);
- bind(315, this, SLOT(numericReply_315(KIRC::Message &)), 2, 2);
- bind(317, this, SLOT(numericReply_317(KIRC::Message &)), 3, 4);
- bind(318, this, SLOT(numericReply_318(KIRC::Message &)), 2, 2);
- bind(319, this, SLOT(numericReply_319(KIRC::Message &)), 2, 2);
- bind(320, this, SLOT(numericReply_320(KIRC::Message &)), 2, 2);
- bind(321, this, SLOT(ignoreMessage(KIRC::Message &)), 0, 0 );
- bind(322, this, SLOT(numericReply_322(KIRC::Message &)), 3, 3);
- bind(323, this, SLOT(numericReply_323(KIRC::Message &)), 1, 1);
- bind(324, this, SLOT(numericReply_324(KIRC::Message &)), 2, 4);
- bind(328, this, SLOT(numericReply_328(KIRC::Message &)), 2, 2);
- bind(329, this, SLOT(numericReply_329(KIRC::Message &)), 3, 3);
- bind(330, this, SLOT(ignoreMessage(KIRC::Message &)), 0, 0); // ???
- bind(331, this, SLOT(numericReply_331(KIRC::Message &)), 2, 2);
- bind(332, this, SLOT(numericReply_332(KIRC::Message &)), 2, 2);
- bind(333, this, SLOT(numericReply_333(KIRC::Message &)), 4, 4);
- bind(352, this, SLOT(numericReply_352(KIRC::Message &)), 5, 10);
- bind(353, this, SLOT(numericReply_353(KIRC::Message &)), 3, 3);
- bind(366, this, SLOT(numericReply_366(KIRC::Message &)), 2, 2);
- bind(369, this, SLOT(numericReply_369(KIRC::Message &)), 2, 2);
- bind(372, this, SLOT(numericReply_372(KIRC::Message &)), 1, 1);
- bind(375, this, SLOT(ignoreMessage(KIRC::Message&)), 0, 0 );
- bind(376, this, SLOT(ignoreMessage(KIRC::Message&)), 0, 0 );
-
- bind(401, this, SLOT(numericReply_401(KIRC::Message &)), 2, 2); // incomingNoNickChan
-// bind(404, this, SLOT(numericReply_404(KIRC::Message &)), 2, 2); // incomingCannotSendToChannel
- bind(406, this, SLOT(numericReply_406(KIRC::Message &)), 2, 2); // incomingWasNoNick
- bind(422, this, SLOT(numericReply_422(KIRC::Message &)), 1, 1);
- bind(433, this, SLOT(numericReply_433(KIRC::Message &)), 2, 2);
-// bind(442, this, SLOT(numericReply_442(KIRC::Message &)), 2, 2); // incomingCannotSendToChannel
- bind(464, this, SLOT(numericReply_464(KIRC::Message &)), 1, 1);
- bind(471, this, SLOT(numericReply_471(KIRC::Message &)), 2, 2);
- bind(473, this, SLOT(numericReply_473(KIRC::Message &)), 2, 2);
- bind(474, this, SLOT(numericReply_474(KIRC::Message &)), 2, 2);
- bind(475, this, SLOT(numericReply_475(KIRC::Message &)), 2, 2);
+ bind(1, this, TQT_SLOT(numericReply_001(KIRC::Message &)), 1, 1);
+ bind(2, this, TQT_SLOT(numericReply_002(KIRC::Message &)), 1, 1);
+ bind(3, this, TQT_SLOT(numericReply_003(KIRC::Message &)), 1, 1);
+ bind(4, this, TQT_SLOT(numericReply_004(KIRC::Message &)), 5, 5);
+ bind(5, this, TQT_SLOT(numericReply_004(KIRC::Message &)), 1, 1);
+
+ bind(250, this, TQT_SLOT(numericReply_250(KIRC::Message &)));
+ bind(251, this, TQT_SLOT(numericReply_251(KIRC::Message &)));
+ bind(252, this, TQT_SLOT(numericReply_252(KIRC::Message &)), 2, 2);
+ bind(253, this, TQT_SLOT(numericReply_253(KIRC::Message &)), 2, 2);
+ bind(254, this, TQT_SLOT(numericReply_254(KIRC::Message &)), 2, 2);
+ bind(255, this, TQT_SLOT(numericReply_255(KIRC::Message &)), 1, 1); // incomingConnectString
+
+ bind(263, this, TQT_SLOT(numericReply_263(KIRC::Message &))); // incomingServerLoadTooHigh
+ bind(265, this, TQT_SLOT(numericReply_265(KIRC::Message &)));
+ bind(266, this, TQT_SLOT(numericReply_266(KIRC::Message &)));
+
+ bind(301, this, TQT_SLOT(numericReply_301(KIRC::Message &)), 2, 2);
+ bind(303, this, TQT_SLOT(numericReply_303(KIRC::Message &)), 1, 1);
+ bind(305, this, TQT_SLOT(ignoreMessage(KIRC::Message &)), 0, 0 ); // You are no longer marked as away
+ bind(306, this, TQT_SLOT(ignoreMessage(KIRC::Message &)), 0, 0 ); // You are marked as away
+ bind(307, this, TQT_SLOT(numericReply_307(KIRC::Message &)), 1, 1);
+ bind(311, this, TQT_SLOT(numericReply_311(KIRC::Message &)), 5, 5);
+ bind(312, this, TQT_SLOT(numericReply_312(KIRC::Message &)), 3, 3);
+ bind(313, this, TQT_SLOT(numericReply_313(KIRC::Message &)), 2, 2);
+ bind(314, this, TQT_SLOT(numericReply_314(KIRC::Message &)), 5, 5);
+ bind(315, this, TQT_SLOT(numericReply_315(KIRC::Message &)), 2, 2);
+ bind(317, this, TQT_SLOT(numericReply_317(KIRC::Message &)), 3, 4);
+ bind(318, this, TQT_SLOT(numericReply_318(KIRC::Message &)), 2, 2);
+ bind(319, this, TQT_SLOT(numericReply_319(KIRC::Message &)), 2, 2);
+ bind(320, this, TQT_SLOT(numericReply_320(KIRC::Message &)), 2, 2);
+ bind(321, this, TQT_SLOT(ignoreMessage(KIRC::Message &)), 0, 0 );
+ bind(322, this, TQT_SLOT(numericReply_322(KIRC::Message &)), 3, 3);
+ bind(323, this, TQT_SLOT(numericReply_323(KIRC::Message &)), 1, 1);
+ bind(324, this, TQT_SLOT(numericReply_324(KIRC::Message &)), 2, 4);
+ bind(328, this, TQT_SLOT(numericReply_328(KIRC::Message &)), 2, 2);
+ bind(329, this, TQT_SLOT(numericReply_329(KIRC::Message &)), 3, 3);
+ bind(330, this, TQT_SLOT(ignoreMessage(KIRC::Message &)), 0, 0); // ???
+ bind(331, this, TQT_SLOT(numericReply_331(KIRC::Message &)), 2, 2);
+ bind(332, this, TQT_SLOT(numericReply_332(KIRC::Message &)), 2, 2);
+ bind(333, this, TQT_SLOT(numericReply_333(KIRC::Message &)), 4, 4);
+ bind(352, this, TQT_SLOT(numericReply_352(KIRC::Message &)), 5, 10);
+ bind(353, this, TQT_SLOT(numericReply_353(KIRC::Message &)), 3, 3);
+ bind(366, this, TQT_SLOT(numericReply_366(KIRC::Message &)), 2, 2);
+ bind(369, this, TQT_SLOT(numericReply_369(KIRC::Message &)), 2, 2);
+ bind(372, this, TQT_SLOT(numericReply_372(KIRC::Message &)), 1, 1);
+ bind(375, this, TQT_SLOT(ignoreMessage(KIRC::Message&)), 0, 0 );
+ bind(376, this, TQT_SLOT(ignoreMessage(KIRC::Message&)), 0, 0 );
+
+ bind(401, this, TQT_SLOT(numericReply_401(KIRC::Message &)), 2, 2); // incomingNoNickChan
+// bind(404, this, TQT_SLOT(numericReply_404(KIRC::Message &)), 2, 2); // incomingCannotSendToChannel
+ bind(406, this, TQT_SLOT(numericReply_406(KIRC::Message &)), 2, 2); // incomingWasNoNick
+ bind(422, this, TQT_SLOT(numericReply_422(KIRC::Message &)), 1, 1);
+ bind(433, this, TQT_SLOT(numericReply_433(KIRC::Message &)), 2, 2);
+// bind(442, this, TQT_SLOT(numericReply_442(KIRC::Message &)), 2, 2); // incomingCannotSendToChannel
+ bind(464, this, TQT_SLOT(numericReply_464(KIRC::Message &)), 1, 1);
+ bind(471, this, TQT_SLOT(numericReply_471(KIRC::Message &)), 2, 2);
+ bind(473, this, TQT_SLOT(numericReply_473(KIRC::Message &)), 2, 2);
+ bind(474, this, TQT_SLOT(numericReply_474(KIRC::Message &)), 2, 2);
+ bind(475, this, TQT_SLOT(numericReply_475(KIRC::Message &)), 2, 2);
//Freenode seems to use this for a non-RFC compliant purpose, as does Unreal
- bind(477, this, SLOT(emitSuffix(KIRC::Message&)),0,0);
+ bind(477, this, TQT_SLOT(emitSuffix(KIRC::Message&)),0,0);
}
/* 001: "Welcome to the Internet Relay Network <nick>!<user>@<host>"
@@ -237,8 +237,8 @@ void Engine::numericReply_301(Message &msg)
*/
void Engine::numericReply_303(Message &msg)
{
- QStringList nicks = QStringList::split(QRegExp(QChar(' ')), msg.suffix());
- for(QStringList::Iterator it = nicks.begin(); it != nicks.end(); ++it)
+ TQStringList nicks = TQStringList::split(TQRegExp(TQChar(' ')), msg.suffix());
+ for(TQStringList::Iterator it = nicks.begin(); it != nicks.end(); ++it)
{
if (!(*it).stripWhiteSpace().isEmpty())
emit incomingUserOnline(Kopete::Message::unescape(*it));
@@ -405,7 +405,7 @@ void Engine::numericReply_332(Message &msg)
void Engine::numericReply_333( Message &msg )
{
kdDebug(14120) << k_funcinfo << endl;
- QDateTime d;
+ TQDateTime d;
d.setTime_t( msg.arg(3).toLong() );
emit incomingTopicUser( Kopete::Message::unescape(msg.arg(1)), Kopete::Message::unescape(msg.arg(2)), d );
}
@@ -439,7 +439,7 @@ void Engine::numericReply_352(Message &msg)
*/
void Engine::numericReply_353(Message &msg)
{
- emit incomingNamesList(Kopete::Message::unescape(msg.arg(2)), QStringList::split(' ', msg.suffix()));
+ emit incomingNamesList(Kopete::Message::unescape(msg.arg(2)), TQStringList::split(' ', msg.suffix()));
}
/* 366: "<channel> :End of NAMES list"