summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/irc/ircaccount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/irc/ircaccount.cpp')
-rw-r--r--kopete/protocols/irc/ircaccount.cpp224
1 files changed, 112 insertions, 112 deletions
diff --git a/kopete/protocols/irc/ircaccount.cpp b/kopete/protocols/irc/ircaccount.cpp
index 1a1bf75f..09d0db3c 100644
--- a/kopete/protocols/irc/ircaccount.cpp
+++ b/kopete/protocols/irc/ircaccount.cpp
@@ -54,16 +54,16 @@
#include <knotifyclient.h>
#include <kpopupmenu.h>
-#include <qlayout.h>
-#include <qtimer.h>
+#include <tqlayout.h>
+#include <tqtimer.h>
-const QString IRCAccount::CONFIG_CODECMIB = QString::fromLatin1("Codec");
-const QString IRCAccount::CONFIG_NETWORKNAME = QString::fromLatin1("NetworkName");
-const QString IRCAccount::CONFIG_NICKNAME = QString::fromLatin1("NickName");
-const QString IRCAccount::CONFIG_USERNAME = QString::fromLatin1("UserName");
-const QString IRCAccount::CONFIG_REALNAME = QString::fromLatin1("RealName");
+const TQString IRCAccount::CONFIG_CODECMIB = TQString::fromLatin1("Codec");
+const TQString IRCAccount::CONFIG_NETWORKNAME = TQString::fromLatin1("NetworkName");
+const TQString IRCAccount::CONFIG_NICKNAME = TQString::fromLatin1("NickName");
+const TQString IRCAccount::CONFIG_USERNAME = TQString::fromLatin1("UserName");
+const TQString IRCAccount::CONFIG_REALNAME = TQString::fromLatin1("RealName");
-IRCAccount::IRCAccount(IRCProtocol *protocol, const QString &accountId, const QString &autoChan, const QString& netName, const QString &nickName)
+IRCAccount::IRCAccount(IRCProtocol *protocol, const TQString &accountId, const TQString &autoChan, const TQString& netName, const TQString &nickName)
: Kopete::PasswordedAccount(protocol, accountId, 0, true), autoConnect( autoChan ), commandSource(0)
{
m_manager = 0L;
@@ -75,49 +75,49 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const QString &accountId, const QS
m_contactManager = 0;
m_engine = new KIRC::Engine(this);
- QMap< QString, QString> replies = customCtcpReplies();
- for( QMap< QString, QString >::ConstIterator it = replies.begin(); it != replies.end(); ++it )
+ TQMap< TQString, TQString> replies = customCtcpReplies();
+ for( TQMap< TQString, TQString >::ConstIterator it = replies.begin(); it != replies.end(); ++it )
m_engine->addCustomCtcp( it.key(), it.data() );
- QString version=i18n("Kopete IRC Plugin %1 [http://kopete.kde.org]").arg(kapp->aboutData()->version());
+ TQString version=i18n("Kopete IRC Plugin %1 [http://kopete.kde.org]").arg(kapp->aboutData()->version());
m_engine->setVersionString( version );
- QObject::connect(m_engine, SIGNAL(successfullyChangedNick(const QString &, const QString &)),
- this, SLOT(successfullyChangedNick(const QString &, const QString &)));
+ TQObject::connect(m_engine, TQT_SIGNAL(successfullyChangedNick(const TQString &, const TQString &)),
+ this, TQT_SLOT(successfullyChangedNick(const TQString &, const TQString &)));
- QObject::connect(m_engine, SIGNAL(incomingFailedServerPassword()),
- this, SLOT(slotFailedServerPassword()));
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingFailedServerPassword()),
+ this, TQT_SLOT(slotFailedServerPassword()));
- QObject::connect(m_engine, SIGNAL(incomingNickInUse(const QString &)),
- this, SLOT(slotNickInUseAlert( const QString &)) );
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingNickInUse(const TQString &)),
+ this, TQT_SLOT(slotNickInUseAlert( const TQString &)) );
- QObject::connect(m_engine, SIGNAL(incomingFailedNickOnLogin(const QString &)),
- this, SLOT(slotNickInUse( const QString &)) );
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingFailedNickOnLogin(const TQString &)),
+ this, TQT_SLOT(slotNickInUse( const TQString &)) );
- QObject::connect(m_engine, SIGNAL(incomingJoinedChannel(const QString &, const QString &)),
- this, SLOT(slotJoinedUnknownChannel(const QString &, const QString &)));
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingJoinedChannel(const TQString &, const TQString &)),
+ this, TQT_SLOT(slotJoinedUnknownChannel(const TQString &, const TQString &)));
- QObject::connect(m_engine, SIGNAL(incomingCtcpReply(const QString &, const QString &, const QString &)),
- this, SLOT( slotNewCtcpReply(const QString&, const QString &, const QString &)));
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingCtcpReply(const TQString &, const TQString &, const TQString &)),
+ this, TQT_SLOT( slotNewCtcpReply(const TQString&, const TQString &, const TQString &)));
- QObject::connect(m_engine, SIGNAL(statusChanged(KIRC::Engine::Status)),
- this, SLOT(engineStatusChanged(KIRC::Engine::Status)));
+ TQObject::connect(m_engine, TQT_SIGNAL(statusChanged(KIRC::Engine::Status)),
+ this, TQT_SLOT(engineStatusChanged(KIRC::Engine::Status)));
- QObject::connect(m_engine, SIGNAL(incomingServerLoadTooHigh()),
- this, SLOT(slotServerBusy()));
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingServerLoadTooHigh()),
+ this, TQT_SLOT(slotServerBusy()));
- QObject::connect(m_engine, SIGNAL(incomingNoSuchNickname(const QString &)),
- this, SLOT(slotNoSuchNickname(const QString &)));
+ TQObject::connect(m_engine, TQT_SIGNAL(incomingNoSuchNickname(const TQString &)),
+ this, TQT_SLOT(slotNoSuchNickname(const TQString &)));
mAwayAction = new Kopete::AwayAction ( i18n("Set Away"),
m_protocol->m_UserStatusAway.iconFor( this ), 0, this,
- SLOT(slotGoAway( const QString & )), this );
+ TQT_SLOT(slotGoAway( const TQString & )), this );
currentHost = 0;
KConfigGroup *config = configGroup();
- QString networkName = netName;
+ TQString networkName = netName;
if (networkName.isNull())
networkName = config->readEntry(CONFIG_NETWORKNAME);
@@ -126,7 +126,7 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const QString &accountId, const QS
else
mNickName = config->readEntry(CONFIG_NICKNAME);
- QString codecMib = config->readEntry(CONFIG_CODECMIB);
+ TQString codecMib = config->readEntry(CONFIG_CODECMIB);
// int codecMib = config->readNumEntry(CONFIG_CODECMIB, UTF-8);
m_serverNotices = (MessageDestination)config->readNumEntry( "ServerNotices", ServerWindow );
@@ -137,25 +137,25 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const QString &accountId, const QS
if( !codecMib.isEmpty() )
{
- mCodec = QTextCodec::codecForMib( codecMib.toInt() );
+ mCodec = TQTextCodec::codecForMib( codecMib.toInt() );
m_engine->setDefaultCodec( mCodec );
}
else
mCodec = 0;
- QString m_accountId = this->accountId();
- if( networkName.isEmpty() && QRegExp( "[^#+&\\s]+@[\\w-\\.]+:\\d+" ).exactMatch( m_accountId ) )
+ TQString m_accountId = this->accountId();
+ if( networkName.isEmpty() && TQRegExp( "[^#+&\\s]+@[\\w-\\.]+:\\d+" ).exactMatch( m_accountId ) )
{
kdDebug(14120) << "Creating account from " << m_accountId << endl;
mNickName = m_accountId.section('@',0,0);
- QString serverInfo = m_accountId.section('@',1);
- QString hostName = serverInfo.section(':',0,0);
+ TQString serverInfo = m_accountId.section('@',1);
+ TQString hostName = serverInfo.section(':',0,0);
- for( QDictIterator<IRCNetwork> it( m_protocol->networks() ); it.current(); ++it )
+ for( TQDictIterator<IRCNetwork> it( m_protocol->networks() ); it.current(); ++it )
{
IRCNetwork *net = it.current();
- for( QValueList<IRCHost*>::iterator it2 = net->hosts.begin(); it2 != net->hosts.end(); ++it2 )
+ for( TQValueList<IRCHost*>::iterator it2 = net->hosts.begin(); it2 != net->hosts.end(); ++it2 )
{
if( (*it2)->host == hostName )
{
@@ -204,13 +204,13 @@ IRCAccount::IRCAccount(IRCProtocol *protocol, const QString &accountId, const QS
m_contactManager = new IRCContactManager(mNickName, this);
setMyself( m_contactManager->mySelf() );
- setAccountLabel( QString::fromLatin1("%1@%2").arg(mNickName,networkName) );
+ setAccountLabel( TQString::fromLatin1("%1@%2").arg(mNickName,networkName) );
m_myServer = m_contactManager->myServer();
- m_joinChannelAction = new KAction ( i18n("Join Channel..."), QString::null, 0, this,
- SLOT(slotJoinChannel()), this);
- m_searchChannelAction = new KAction ( i18n("Search Channels..."), QString::null, 0, this,
- SLOT(slotSearchChannels()), this);
+ m_joinChannelAction = new KAction ( i18n("Join Channel..."), TQString::null, 0, this,
+ TQT_SLOT(slotJoinChannel()), this);
+ m_searchChannelAction = new KAction ( i18n("Search Channels..."), TQString::null, 0, this,
+ TQT_SLOT(slotSearchChannels()), this);
}
IRCAccount::~IRCAccount()
@@ -219,12 +219,12 @@ IRCAccount::~IRCAccount()
m_engine->quit(i18n("Plugin Unloaded"), true);
}
-void IRCAccount::slotNickInUse( const QString &nick )
+void IRCAccount::slotNickInUse( const TQString &nick )
{
- QString altNickName = altNick();
+ TQString altNickName = altNick();
if( triedAltNick || altNickName.isEmpty() )
{
- QString newNick = KInputDialog::getText(
+ TQString newNick = KInputDialog::getText(
i18n("IRC Plugin"),
i18n("The nickname %1 is already in use. Please enter an alternate nickname:").arg(nick),
nick);
@@ -241,28 +241,28 @@ void IRCAccount::slotNickInUse( const QString &nick )
}
}
-void IRCAccount::slotNickInUseAlert( const QString &nick )
+void IRCAccount::slotNickInUseAlert( const TQString &nick )
{
KMessageBox::error(Kopete::UI::Global::mainWidget(), i18n("The nickname %1 is already in use").arg(nick), i18n("IRC Plugin"));
}
-void IRCAccount::setAltNick( const QString &altNick )
+void IRCAccount::setAltNick( const TQString &altNick )
{
- configGroup()->writeEntry(QString::fromLatin1( "altNick" ), altNick);
+ configGroup()->writeEntry(TQString::fromLatin1( "altNick" ), altNick);
}
-const QString IRCAccount::altNick() const
+const TQString IRCAccount::altNick() const
{
- return configGroup()->readEntry(QString::fromLatin1("altNick"));
+ return configGroup()->readEntry(TQString::fromLatin1("altNick"));
}
void IRCAccount::setAutoShowServerWindow( bool show )
{
autoShowServerWindow = show;
- configGroup()->writeEntry(QString::fromLatin1( "AutoShowServerWindow" ), autoShowServerWindow);
+ configGroup()->writeEntry(TQString::fromLatin1( "AutoShowServerWindow" ), autoShowServerWindow);
}
-const QString IRCAccount::networkName() const
+const TQString IRCAccount::networkName() const
{
if( m_network )
return m_network->name;
@@ -270,29 +270,29 @@ const QString IRCAccount::networkName() const
return i18n("Unknown");
}
-void IRCAccount::setUserName( const QString &userName )
+void IRCAccount::setUserName( const TQString &userName )
{
m_engine->setUserName(userName);
configGroup()->writeEntry(CONFIG_USERNAME, userName);
}
-const QString IRCAccount::userName() const
+const TQString IRCAccount::userName() const
{
return configGroup()->readEntry(CONFIG_USERNAME);
}
-void IRCAccount::setRealName( const QString &userName )
+void IRCAccount::setRealName( const TQString &userName )
{
m_engine->setRealName(userName);
configGroup()->writeEntry(CONFIG_REALNAME, userName);
}
-const QString IRCAccount::realName() const
+const TQString IRCAccount::realName() const
{
return configGroup()->readEntry(CONFIG_REALNAME);
}
-void IRCAccount::setNetwork( const QString &network )
+void IRCAccount::setNetwork( const TQString &network )
{
IRCNetwork *net = m_protocol->networks()[ network ];
if( net )
@@ -311,7 +311,7 @@ void IRCAccount::setNetwork( const QString &network )
}
}
-void IRCAccount::setNickName( const QString &nick )
+void IRCAccount::setNickName( const TQString &nick )
{
mNickName = nick;
configGroup()->writeEntry(CONFIG_NICKNAME, mNickName);
@@ -321,7 +321,7 @@ void IRCAccount::setNickName( const QString &nick )
}
// FIXME: Possible null pointer usage here
-void IRCAccount::setCodec( QTextCodec *codec )
+void IRCAccount::setCodec( TQTextCodec *codec )
{
mCodec = codec;
configGroup()->writeEntry(CONFIG_CODECMIB, codec->mibEnum());
@@ -330,71 +330,71 @@ void IRCAccount::setCodec( QTextCodec *codec )
m_engine->setDefaultCodec( mCodec );
}
-QTextCodec *IRCAccount::codec() const
+TQTextCodec *IRCAccount::codec() const
{
return mCodec;
}
// FIXME: Move this to a dictionnary
-void IRCAccount::setDefaultPart( const QString &defaultPart )
+void IRCAccount::setDefaultPart( const TQString &defaultPart )
{
- configGroup()->writeEntry( QString::fromLatin1( "defaultPart" ), defaultPart );
+ configGroup()->writeEntry( TQString::fromLatin1( "defaultPart" ), defaultPart );
}
// FIXME: Move this to a dictionnary
-void IRCAccount::setDefaultQuit( const QString &defaultQuit )
+void IRCAccount::setDefaultQuit( const TQString &defaultQuit )
{
- configGroup()->writeEntry( QString::fromLatin1( "defaultQuit" ), defaultQuit );
+ configGroup()->writeEntry( TQString::fromLatin1( "defaultQuit" ), defaultQuit );
}
// FIXME: Move this to a dictionnary
-const QString IRCAccount::defaultPart() const
+const TQString IRCAccount::defaultPart() const
{
- QString partMsg = configGroup()->readEntry(QString::fromLatin1("defaultPart"));
+ TQString partMsg = configGroup()->readEntry(TQString::fromLatin1("defaultPart"));
if( partMsg.isEmpty() )
- return QString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg( kapp->aboutData()->version() );
+ return TQString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg( kapp->aboutData()->version() );
return partMsg;
}
-const QString IRCAccount::defaultQuit() const
+const TQString IRCAccount::defaultQuit() const
{
- QString quitMsg = configGroup()->readEntry(QString::fromLatin1("defaultQuit"));
+ TQString quitMsg = configGroup()->readEntry(TQString::fromLatin1("defaultQuit"));
if( quitMsg.isEmpty() )
- return QString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg(kapp->aboutData()->version());
+ return TQString::fromLatin1("Kopete %1 : http://kopete.kde.org").arg(kapp->aboutData()->version());
return quitMsg;
}
-void IRCAccount::setCustomCtcpReplies( const QMap< QString, QString > &replies ) const
+void IRCAccount::setCustomCtcpReplies( const TQMap< TQString, TQString > &replies ) const
{
- QStringList val;
- for( QMap< QString, QString >::ConstIterator it = replies.begin(); it != replies.end(); ++it )
+ TQStringList val;
+ for( TQMap< TQString, TQString >::ConstIterator it = replies.begin(); it != replies.end(); ++it )
{
m_engine->addCustomCtcp( it.key(), it.data() );
- val.append( QString::fromLatin1("%1=%2").arg( it.key() ).arg( it.data() ) );
+ val.append( TQString::fromLatin1("%1=%2").arg( it.key() ).arg( it.data() ) );
}
configGroup()->writeEntry( "CustomCtcp", val );
}
-const QMap< QString, QString > IRCAccount::customCtcpReplies() const
+const TQMap< TQString, TQString > IRCAccount::customCtcpReplies() const
{
- QMap< QString, QString > replies;
- QStringList replyList;
+ TQMap< TQString, TQString > replies;
+ TQStringList replyList;
replyList = configGroup()->readListEntry( "CustomCtcp" );
- for( QStringList::Iterator it = replyList.begin(); it != replyList.end(); ++it )
+ for( TQStringList::Iterator it = replyList.begin(); it != replyList.end(); ++it )
replies[ (*it).section('=', 0, 0 ) ] = (*it).section('=', 1 );
return replies;
}
-void IRCAccount::setConnectCommands( const QStringList &commands ) const
+void IRCAccount::setConnectCommands( const TQStringList &commands ) const
{
configGroup()->writeEntry( "ConnectCommands", commands );
}
-const QStringList IRCAccount::connectCommands() const
+const TQStringList IRCAccount::connectCommands() const
{
return configGroup()->readListEntry( "ConnectCommands" );
}
@@ -416,7 +416,7 @@ void IRCAccount::setMessageDestinations( int serverNotices, int serverMessages,
KActionMenu *IRCAccount::actionMenu()
{
- QString menuTitle = QString::fromLatin1( " %1 <%2> " ).arg( accountId() ).arg( myself()->onlineStatus().description() );
+ TQString menuTitle = TQString::fromLatin1( " %1 <%2> " ).arg( accountId() ).arg( myself()->onlineStatus().description() );
KActionMenu *mActionMenu = Kopete::Account::actionMenu();
@@ -426,18 +426,18 @@ KActionMenu *IRCAccount::actionMenu()
mActionMenu->popupMenu()->insertSeparator();
mActionMenu->insert(m_joinChannelAction);
mActionMenu->insert(m_searchChannelAction);
- mActionMenu->insert( new KAction ( i18n("Show Server Window"), QString::null, 0, this, SLOT(slotShowServerWindow()), mActionMenu ) );
+ mActionMenu->insert( new KAction ( i18n("Show Server Window"), TQString::null, 0, this, TQT_SLOT(slotShowServerWindow()), mActionMenu ) );
if( m_engine->isConnected() && m_engine->useSSL() )
{
mActionMenu->insert( new KAction ( i18n("Show Security Information"), "", 0, m_engine,
- SLOT(showInfoDialog()), mActionMenu ) );
+ TQT_SLOT(showInfoDialog()), mActionMenu ) );
}
return mActionMenu;
}
-void IRCAccount::connectWithPassword(const QString &password)
+void IRCAccount::connectWithPassword(const TQString &password)
{
//TODO: honor the initial status
@@ -450,7 +450,7 @@ void IRCAccount::connectWithPassword(const QString &password)
{
if( m_network )
{
- QValueList<IRCHost*> &hosts = m_network->hosts;
+ TQValueList<IRCHost*> &hosts = m_network->hosts;
if( hosts.count() == 0 )
{
KMessageBox::queuedMessageBox(
@@ -472,7 +472,7 @@ void IRCAccount::connectWithPassword(const QString &password)
// if prefer SSL is set, sort by SSL first
if (configGroup()->readBoolEntry("PreferSSL"))
{
- typedef QValueList<IRCHost*> IRCHostList;
+ typedef TQValueList<IRCHost*> IRCHostList;
IRCHostList sslFirst;
IRCHostList::iterator it;
for ( it = hosts.begin(); it != hosts.end(); ++it )
@@ -534,7 +534,7 @@ void IRCAccount::engineStatusChanged(KIRC::Engine::Status newStatus)
// after the 001 is sent, you need to wait until all the init junk is done.
// Unfortunatly, there is no way for us to know when it is done (it could be
// spewing out any number of replies), so just try delaying it
- QTimer::singleShot( 250, this, SLOT( slotPerformOnConnectCommands() ) );
+ TQTimer::singleShot( 250, this, TQT_SLOT( slotPerformOnConnectCommands() ) );
}
break;
case KIRC::Engine::Closing:
@@ -563,14 +563,14 @@ void IRCAccount::slotPerformOnConnectCommands()
return;
if (!autoConnect.isEmpty())
- Kopete::CommandHandler::commandHandler()->processMessage( QString::fromLatin1("/join %1").arg(autoConnect), manager);
+ Kopete::CommandHandler::commandHandler()->processMessage( TQString::fromLatin1("/join %1").arg(autoConnect), manager);
- QStringList commands(connectCommands());
- for (QStringList::Iterator it=commands.begin(); it != commands.end(); ++it)
+ TQStringList commands(connectCommands());
+ for (TQStringList::Iterator it=commands.begin(); it != commands.end(); ++it)
Kopete::CommandHandler::commandHandler()->processMessage(*it, manager);
}
-void IRCAccount::slotJoinedUnknownChannel(const QString &channel, const QString &nick)
+void IRCAccount::slotJoinedUnknownChannel(const TQString &channel, const TQString &nick)
{
if ( nick.lower() == m_contactManager->mySelf()->nickName().lower() )
{
@@ -598,7 +598,7 @@ void IRCAccount::slotSearchChannels()
{
m_channelList = new ChannelListDialog( m_engine,
i18n("Channel List for %1").arg( m_engine->currentHost() ), this,
- SLOT( slotJoinNamedChannel( const QString & ) ) );
+ TQT_SLOT( slotJoinNamedChannel( const TQString & ) ) );
}
else
m_channelList->clear();
@@ -612,7 +612,7 @@ void IRCAccount::listChannels()
m_channelList->search();
}
-void IRCAccount::quit( const QString &quitMessage )
+void IRCAccount::quit( const TQString &quitMessage )
{
kdDebug(14120) << "Quitting IRC: " << quitMessage << endl;
@@ -622,7 +622,7 @@ void IRCAccount::quit( const QString &quitMessage )
m_engine->quit( quitMessage );
}
-void IRCAccount::setAway(bool isAway, const QString &awayMessage)
+void IRCAccount::setAway(bool isAway, const TQString &awayMessage)
{
kdDebug(14120) << k_funcinfo << isAway << " " << awayMessage << endl;
if(m_engine->isConnected())
@@ -641,7 +641,7 @@ void IRCAccount::slotFailedServerPassword()
password().setWrong();
connect();
}
-void IRCAccount::slotGoAway( const QString &reason )
+void IRCAccount::slotGoAway( const TQString &reason )
{
setAway( true, reason );
}
@@ -657,7 +657,7 @@ bool IRCAccount::isConnected()
return m_engine->isConnected();
}
-void IRCAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const QString &reason )
+void IRCAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const TQString &reason )
{
if ( status.status() == Kopete::OnlineStatus::Online &&
myself()->onlineStatus().status() == Kopete::OnlineStatus::Offline )
@@ -672,7 +672,7 @@ void IRCAccount::setOnlineStatus( const Kopete::OnlineStatus& status , const QSt
}
-void IRCAccount::successfullyChangedNick(const QString &oldnick, const QString &newnick)
+void IRCAccount::successfullyChangedNick(const TQString &oldnick, const TQString &newnick)
{
kdDebug(14120) << k_funcinfo << "Changing nick to " << newnick << endl;
mNickName = newnick;
@@ -681,7 +681,7 @@ void IRCAccount::successfullyChangedNick(const QString &oldnick, const QString &
m_contactManager->addToNotifyList( newnick );
}
-bool IRCAccount::createContact( const QString &contactId, Kopete::MetaContact *m )
+bool IRCAccount::createContact( const TQString &contactId, Kopete::MetaContact *m )
{
kdDebug(14120) << k_funcinfo << contactManager() << endl;
IRCContact *c;
@@ -700,7 +700,7 @@ bool IRCAccount::createContact( const QString &contactId, Kopete::MetaContact *m
return false;
}
- else if (contactId.startsWith(QString::fromLatin1("#")))
+ else if (contactId.startsWith(TQString::fromLatin1("#")))
{
c = static_cast<IRCContact*>(contactManager()->findChannel(contactId, m));
}
@@ -724,7 +724,7 @@ bool IRCAccount::createContact( const QString &contactId, Kopete::MetaContact *m
return true;
}
-void IRCAccount::slotJoinNamedChannel(const QString &chan)
+void IRCAccount::slotJoinNamedChannel(const TQString &chan)
{
contactManager()->findChannel(chan)->startChat();
}
@@ -744,12 +744,12 @@ void IRCAccount::slotJoinChannel()
if (!isConnected())
return;
- QStringList chans = configGroup()->readListEntry( "Recent Channel list" );
+ TQStringList chans = configGroup()->readListEntry( "Recent Channel list" );
//kdDebug(14120) << "Recent channel list from config: " << chans << endl;
KLineEditDlg dlg(
i18n("Please enter name of the channel you want to join:"),
- QString::null,
+ TQString::null,
Kopete::UI::Global::mainWidget()
);
@@ -761,10 +761,10 @@ void IRCAccount::slotJoinChannel()
while( true )
{
- if( dlg.exec() != QDialog::Accepted )
+ if( dlg.exec() != TQDialog::Accepted )
break;
- QString chan = dlg.text();
+ TQString chan = dlg.text();
if( chan.isNull() )
break;
@@ -787,12 +787,12 @@ void IRCAccount::slotJoinChannel()
}
}
-void IRCAccount::slotNewCtcpReply(const QString &type, const QString &/*target*/, const QString &messageReceived)
+void IRCAccount::slotNewCtcpReply(const TQString &type, const TQString &/*target*/, const TQString &messageReceived)
{
appendMessage( i18n("CTCP %1 REPLY: %2").arg(type).arg(messageReceived), InfoReply );
}
-void IRCAccount::slotNoSuchNickname( const QString &nick )
+void IRCAccount::slotNoSuchNickname( const TQString &nick )
{
if( KIRC::Entity::isChannel(nick) )
appendMessage( i18n("The channel \"%1\" does not exist").arg(nick), UnknownReply );
@@ -800,7 +800,7 @@ void IRCAccount::slotNoSuchNickname( const QString &nick )
appendMessage( i18n("The nickname \"%1\" does not exist").arg(nick), UnknownReply );
}
-void IRCAccount::appendMessage( const QString &message, MessageType type )
+void IRCAccount::appendMessage( const TQString &message, MessageType type )
{
// TODO: Impliment a UI where people can pick multiple destinations
// for a message type, and make codethis handle it
@@ -852,7 +852,7 @@ void IRCAccount::appendMessage( const QString &message, MessageType type )
if( destination == KNotify )
{
KNotifyClient::event(
- Kopete::UI::Global::mainWidget()->winId(), QString::fromLatin1("irc_event"), message
+ Kopete::UI::Global::mainWidget()->winId(), TQString::fromLatin1("irc_event"), message
);
}
}
@@ -867,7 +867,7 @@ IRCServerContact *IRCAccount::myServer() const
return m_myServer;
}
-IRCContact *IRCAccount::getContact(const QString &name, Kopete::MetaContact *metac)
+IRCContact *IRCAccount::getContact(const TQString &name, Kopete::MetaContact *metac)
{
return getContact(m_engine->getEntity(name), metac);
}
@@ -889,7 +889,7 @@ IRCContact *IRCAccount::getContact(KIRC::EntityPtr entity, Kopete::MetaContact *
m_contacts.append(contact);
}
- QObject::connect(contact, SIGNAL(destroyed(IRCContact *)), SLOT(destroyed(IRCContact *)));
+ TQObject::connect(contact, TQT_SIGNAL(destroyed(IRCContact *)), TQT_SLOT(destroyed(IRCContact *)));
return contact;
}