summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ircservercontact.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/ircservercontact.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/ircservercontact.cpp')
-rw-r--r--kopete/protocols/irc/ircservercontact.cpp64
1 files changed, 32 insertions, 32 deletions
diff --git a/kopete/protocols/irc/ircservercontact.cpp b/kopete/protocols/irc/ircservercontact.cpp
index 3ca21643..5be40dff 100644
--- a/kopete/protocols/irc/ircservercontact.cpp
+++ b/kopete/protocols/irc/ircservercontact.cpp
@@ -28,40 +28,40 @@
#include <kdebug.h>
#include <klocale.h>
-#include <qtimer.h>
+#include <tqtimer.h>
-IRCServerContact::IRCServerContact(IRCContactManager *contactManager, const QString &servername, Kopete::MetaContact *m)
+IRCServerContact::IRCServerContact(IRCContactManager *contactManager, const TQString &servername, Kopete::MetaContact *m)
: IRCContact(contactManager, servername, m, "irc_server")
{
KIRC::Engine *engine = kircEngine();
- QObject::connect(engine, SIGNAL(internalError(KIRC::Engine::Error, KIRC::Message &)),
- this, SLOT(engineInternalError(KIRC::Engine::Error, KIRC::Message &)));
+ TQObject::connect(engine, TQT_SIGNAL(internalError(KIRC::Engine::Error, KIRC::Message &)),
+ this, TQT_SLOT(engineInternalError(KIRC::Engine::Error, KIRC::Message &)));
/*
//FIXME: Have some kind of a debug option for raw input/ouput display??
- QObject::connect(engine, SIGNAL(sentMessage(KIRC::Message &)),
- this, SLOT(engineSentMessage(KIRC::Message &)));
- QObject::connect(engine, SIGNAL(receivedMessage(KIRC::Message &)),
- this, SLOT(engineReceivedMessage(KIRC::Message &)));
+ TQObject::connect(engine, TQT_SIGNAL(sentMessage(KIRC::Message &)),
+ this, TQT_SLOT(engineSentMessage(KIRC::Message &)));
+ TQObject::connect(engine, TQT_SIGNAL(receivedMessage(KIRC::Message &)),
+ this, TQT_SLOT(engineReceivedMessage(KIRC::Message &)));
*/
- QObject::connect(engine, SIGNAL(incomingNotice(const QString &, const QString &)),
- this, SLOT(slotIncomingNotice(const QString &, const QString &)));
+ TQObject::connect(engine, TQT_SIGNAL(incomingNotice(const TQString &, const TQString &)),
+ this, TQT_SLOT(slotIncomingNotice(const TQString &, const TQString &)));
- QObject::connect(engine, SIGNAL(incomingCannotSendToChannel(const QString &, const QString &)),
- this, SLOT(slotCannotSendToChannel(const QString &, const QString &)));
+ TQObject::connect(engine, TQT_SIGNAL(incomingCannotSendToChannel(const TQString &, const TQString &)),
+ this, TQT_SLOT(slotCannotSendToChannel(const TQString &, const TQString &)));
- QObject::connect(engine, SIGNAL(incomingUnknown(const QString &)),
- this, SLOT(slotIncomingUnknown(const QString &)));
+ TQObject::connect(engine, TQT_SIGNAL(incomingUnknown(const TQString &)),
+ this, TQT_SLOT(slotIncomingUnknown(const TQString &)));
- QObject::connect(engine, SIGNAL(incomingConnectString(const QString &)),
- this, SLOT(slotIncomingConnect(const QString &)));
+ TQObject::connect(engine, TQT_SIGNAL(incomingConnectString(const TQString &)),
+ this, TQT_SLOT(slotIncomingConnect(const TQString &)));
- QObject::connect(engine, SIGNAL(incomingMotd(const QString &)),
- this, SLOT(slotIncomingMotd(const QString &)));
+ TQObject::connect(engine, TQT_SIGNAL(incomingMotd(const TQString &)),
+ this, TQT_SLOT(slotIncomingMotd(const TQString &)));
- QObject::connect(Kopete::ChatSessionManager::self(), SIGNAL(viewCreated(KopeteView*)),
- this, SLOT(slotViewCreated(KopeteView*)) );
+ TQObject::connect(Kopete::ChatSessionManager::self(), TQT_SIGNAL(viewCreated(KopeteView*)),
+ this, TQT_SLOT(slotViewCreated(KopeteView*)) );
updateStatus();
}
@@ -90,7 +90,7 @@ void IRCServerContact::updateStatus()
}
}
-const QString IRCServerContact::caption() const
+const TQString IRCServerContact::caption() const
{
return i18n("%1 @ %2").arg(ircAccount()->mySelf()->nickName() ).arg(
kircEngine()->currentHost().isEmpty() ? ircAccount()->networkName() : kircEngine()->currentHost()
@@ -99,7 +99,7 @@ const QString IRCServerContact::caption() const
void IRCServerContact::engineInternalError(KIRC::Engine::Error engineError, KIRC::Message &ircmsg)
{
- QString error;
+ TQString error;
switch (engineError)
{
case KIRC::Engine::ParsingFailed:
@@ -121,7 +121,7 @@ void IRCServerContact::engineInternalError(KIRC::Engine::Error engineError, KIRC
error = i18n("KIRC Error - Unknown error: ");
}
- ircAccount()->appendMessage(error + QString(ircmsg.raw()), IRCAccount::ErrorReply);
+ ircAccount()->appendMessage(error + TQString(ircmsg.raw()), IRCAccount::ErrorReply);
}
void IRCServerContact::slotSendMsg(Kopete::Message &, Kopete::ChatSession *manager)
@@ -132,7 +132,7 @@ void IRCServerContact::slotSendMsg(Kopete::Message &, Kopete::ChatSession *manag
manager->appendMessage(msg);
}
-void IRCServerContact::appendMessage( const QString &message )
+void IRCServerContact::appendMessage( const TQString &message )
{
Kopete::ContactPtrList members;
members.append( this );
@@ -141,7 +141,7 @@ void IRCServerContact::appendMessage( const QString &message )
appendMessage(msg);
}
-void IRCServerContact::slotIncomingNotice( const QString &orig, const QString &notice )
+void IRCServerContact::slotIncomingNotice( const TQString &orig, const TQString &notice )
{
if (orig.isEmpty()) {
// Prefix missing.
@@ -167,24 +167,24 @@ void IRCServerContact::slotIncomingNotice( const QString &orig, const QString &n
}
}
-void IRCServerContact::slotIncomingUnknown(const QString &message)
+void IRCServerContact::slotIncomingUnknown(const TQString &message)
{
ircAccount()->appendMessage(message, IRCAccount::UnknownReply);
}
-void IRCServerContact::slotIncomingConnect(const QString &message)
+void IRCServerContact::slotIncomingConnect(const TQString &message)
{
ircAccount()->appendMessage(message, IRCAccount::ConnectReply);
}
-void IRCServerContact::slotIncomingMotd(const QString &message)
+void IRCServerContact::slotIncomingMotd(const TQString &message)
{
ircAccount()->appendMessage(message, IRCAccount::InfoReply);
}
-void IRCServerContact::slotCannotSendToChannel(const QString &channel, const QString &message)
+void IRCServerContact::slotCannotSendToChannel(const TQString &channel, const TQString &message)
{
- ircAccount()->appendMessage(QString::fromLatin1("%1: %2").arg(channel).arg(message), IRCAccount::ErrorReply);
+ ircAccount()->appendMessage(TQString::fromLatin1("%1: %2").arg(channel).arg(message), IRCAccount::ErrorReply);
}
void IRCServerContact::appendMessage(Kopete::Message &msg)
@@ -206,7 +206,7 @@ void IRCServerContact::slotDumpMessages()
{
manager()->appendMessage( mMsgBuffer.front() );
mMsgBuffer.pop_front();
- QTimer::singleShot( 0, this, SLOT( slotDumpMessages() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( slotDumpMessages() ) );
}
}
@@ -214,7 +214,7 @@ void IRCServerContact::slotViewCreated( KopeteView *v )
{
kdDebug(14121) << k_funcinfo << "Created: " << v << ", mgr: " << v->msgManager() << ", Mine: " << m_chatSession << endl;
if (m_chatSession && v->msgManager() == m_chatSession)
- QTimer::singleShot(500, this, SLOT(slotDumpMessages()));
+ TQTimer::singleShot(500, this, TQT_SLOT(slotDumpMessages()));
}
#include "ircservercontact.moc"