diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:48:06 +0000 |
commit | 47c8a359c5276062c4bc17f0e82410f29081b502 (patch) | |
tree | 2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/meanwhile/meanwhileaccount.cpp | |
parent | 6f82532777a35e0e60bbd2b290b2e93e646f349b (diff) | |
download | tdenetwork-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/meanwhile/meanwhileaccount.cpp')
-rw-r--r-- | kopete/protocols/meanwhile/meanwhileaccount.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
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 <kinputdialog.h> #include <kmessagebox.h> -#include <qdict.h> +#include <tqdict.h> 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<MeanwhileProtocol *>(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(); |