summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ircservercontact.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/protocols/irc/ircservercontact.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/irc/ircservercontact.cpp')
-rw-r--r--kopete/protocols/irc/ircservercontact.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kopete/protocols/irc/ircservercontact.cpp b/kopete/protocols/irc/ircservercontact.cpp
index 5be40dff..3200d72d 100644
--- a/kopete/protocols/irc/ircservercontact.cpp
+++ b/kopete/protocols/irc/ircservercontact.cpp
@@ -63,12 +63,12 @@ IRCServerContact::IRCServerContact(IRCContactManager *contactManager, const TQSt
TQObject::connect(Kopete::ChatSessionManager::self(), TQT_SIGNAL(viewCreated(KopeteView*)),
this, TQT_SLOT(slotViewCreated(KopeteView*)) );
- updateStatus();
+ updatetqStatus();
}
-void IRCServerContact::updateStatus()
+void IRCServerContact::updatetqStatus()
{
- KIRC::Engine::Status status = kircEngine()->status();
+ KIRC::Engine::tqStatus status = kircEngine()->status();
switch( status )
{
case KIRC::Engine::Idle:
@@ -92,7 +92,7 @@ void IRCServerContact::updateStatus()
const TQString IRCServerContact::caption() const
{
- return i18n("%1 @ %2").arg(ircAccount()->mySelf()->nickName() ).arg(
+ return i18n("%1 @ %2").tqarg(ircAccount()->mySelf()->nickName() ).tqarg(
kircEngine()->currentHost().isEmpty() ? ircAccount()->networkName() : kircEngine()->currentHost()
);
}
@@ -147,21 +147,21 @@ void IRCServerContact::slotIncomingNotice( const TQString &orig, const TQString
// Prefix missing.
// NOTICE AUTH :*** Checking Ident
- ircAccount()->appendMessage(i18n("NOTICE from %1: %2").arg(kircEngine()->currentHost(), notice),
+ ircAccount()->appendMessage(i18n("NOTICE from %1: %2").tqarg(kircEngine()->currentHost(), notice),
IRCAccount::NoticeReply);
} else {
// :Global!service@rizon.net NOTICE foobar :[Logon News - Oct 12 2005] Due to growing problems ...
// :somenick!~fooobar@somehostname.fi NOTICE foobar :hello
- if (orig.contains('!')) {
- ircAccount()->appendMessage(i18n("NOTICE from %1 (%2): %3").arg(
+ if (orig.tqcontains('!')) {
+ ircAccount()->appendMessage(i18n("NOTICE from %1 (%2): %3").tqarg(
orig.section('!', 0, 0),
orig.section('!', 1, 1),
notice),
IRCAccount::NoticeReply);
} else {
- ircAccount()->appendMessage(i18n("NOTICE from %1: %2").arg(
+ ircAccount()->appendMessage(i18n("NOTICE from %1: %2").tqarg(
orig, notice), IRCAccount::NoticeReply);
}
}
@@ -184,7 +184,7 @@ void IRCServerContact::slotIncomingMotd(const TQString &message)
void IRCServerContact::slotCannotSendToChannel(const TQString &channel, const TQString &message)
{
- ircAccount()->appendMessage(TQString::fromLatin1("%1: %2").arg(channel).arg(message), IRCAccount::ErrorReply);
+ ircAccount()->appendMessage(TQString::tqfromLatin1("%1: %2").tqarg(channel).tqarg(message), IRCAccount::ErrorReply);
}
void IRCServerContact::appendMessage(Kopete::Message &msg)