From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/protocols/meanwhile/meanwhileaccount.cpp | 36 ++++++++++++------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'kopete/protocols/meanwhile/meanwhileaccount.cpp') diff --git a/kopete/protocols/meanwhile/meanwhileaccount.cpp b/kopete/protocols/meanwhile/meanwhileaccount.cpp index c130475b..9dba56f2 100644 --- a/kopete/protocols/meanwhile/meanwhileaccount.cpp +++ b/kopete/protocols/meanwhile/meanwhileaccount.cpp @@ -32,11 +32,11 @@ #include "kopeteaway.h" #include #include -#include +#include MeanwhileAccount::MeanwhileAccount( MeanwhileProtocol *parent, - const QString &accountID, + const TQString &accountID, const char *name) : Kopete::PasswordedAccount(parent, accountID, 0, name) { @@ -62,7 +62,7 @@ void MeanwhileAccount::setPlugin(MeanwhilePlugin *plugin) } bool MeanwhileAccount::createContact( - const QString & contactId , + const TQString & contactId , Kopete::MetaContact * parentContact) { MeanwhileContact* newContact = new MeanwhileContact(contactId, @@ -78,7 +78,7 @@ bool MeanwhileAccount::createContact( return newContact != 0L; } -void MeanwhileAccount::connectWithPassword(const QString &password) +void MeanwhileAccount::connectWithPassword(const TQString &password) { if (password.isEmpty()) { disconnect(Kopete::Account::Manual); @@ -92,12 +92,12 @@ void MeanwhileAccount::connectWithPassword(const QString &password) return; } - QObject::connect(m_session, - SIGNAL(sessionStateChange(Kopete::OnlineStatus)), - this, SLOT(slotSessionStateChange(Kopete::OnlineStatus))); - QObject::connect(m_session, - SIGNAL(serverNotification(const QString &)), - this, SLOT(slotServerNotification(const QString&))); + TQObject::connect(m_session, + TQT_SIGNAL(sessionStateChange(Kopete::OnlineStatus)), + this, TQT_SLOT(slotSessionStateChange(Kopete::OnlineStatus))); + TQObject::connect(m_session, + TQT_SIGNAL(serverNotification(const TQString &)), + this, TQT_SLOT(slotServerNotification(const TQString&))); } @@ -138,15 +138,15 @@ KActionMenu * MeanwhileAccount::actionMenu() menu->popupMenu()->insertSeparator(); #if 0 - menu->insert(new KAction(i18n("&Change Status Message"), QString::null, 0, - this, SLOT(meanwhileChangeStatus()), this, + menu->insert(new KAction(i18n("&Change Status Message"), TQString::null, 0, + this, TQT_SLOT(meanwhileChangeStatus()), this, "meanwhileChangeStatus")); //infoPlugin->addCustomMenus(theMenu); #endif return menu; } -QString MeanwhileAccount::getServerName() +TQString MeanwhileAccount::getServerName() { return configGroup()->readEntry("Server"); } @@ -156,7 +156,7 @@ int MeanwhileAccount::getServerPort() return configGroup()->readNumEntry("Port"); } -void MeanwhileAccount::setServerName(const QString &server) +void MeanwhileAccount::setServerName(const TQString &server) { configGroup()->writeEntry("Server", server); } @@ -198,25 +198,25 @@ bool MeanwhileAccount::getClientIDParams(int *clientID, return custom_id; } -void MeanwhileAccount::slotServerNotification(const QString &mesg) +void MeanwhileAccount::slotServerNotification(const TQString &mesg) { KMessageBox::queuedMessageBox(0, KMessageBox::Error , mesg, i18n("Meanwhile Plugin: Message from server"), KMessageBox::Notify); } -QString MeanwhileAccount::meanwhileId() const +TQString MeanwhileAccount::meanwhileId() const { return m_meanwhileId; } -void MeanwhileAccount::setAway(bool away, const QString &reason) +void MeanwhileAccount::setAway(bool away, const TQString &reason) { MeanwhileProtocol *p = static_cast(protocol()); setOnlineStatus(away ? p->statusIdle : p->statusOnline, reason); } void MeanwhileAccount::setOnlineStatus(const Kopete::OnlineStatus &status, - const QString &reason) + const TQString &reason) { HERE; Kopete::OnlineStatus oldstatus = myself()->onlineStatus(); -- cgit v1.2.1