summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smsprotocol.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/sms/smsprotocol.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/sms/smsprotocol.cpp')
-rw-r--r--kopete/protocols/sms/smsprotocol.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/sms/smsprotocol.cpp b/kopete/protocols/sms/smsprotocol.cpp
index 6b6cd838..361eba57 100644
--- a/kopete/protocols/sms/smsprotocol.cpp
+++ b/kopete/protocols/sms/smsprotocol.cpp
@@ -32,11 +32,11 @@ K_EXPORT_COMPONENT_FACTORY( kopete_sms, SMSProtocolFactory( "kopete_sms" ) )
SMSProtocol* SMSProtocol::s_protocol = 0L;
-SMSProtocol::SMSProtocol(QObject *parent, const char *name, const QStringList &/*args*/)
+SMSProtocol::SMSProtocol(TQObject *parent, const char *name, const TQStringList &/*args*/)
: Kopete::Protocol( SMSProtocolFactory::instance(), parent, name ),
- SMSOnline( Kopete::OnlineStatus::Online, 25, this, 0, QString::null, i18n( "Online" ), i18n( "Online" ), Kopete::OnlineStatusManager::Online ),
- SMSConnecting( Kopete::OnlineStatus::Connecting,2, this, 3, QString::null, i18n( "Connecting" ) ),
- SMSOffline( Kopete::OnlineStatus::Offline, 0, this, 2, QString::null, i18n( "Offline" ), i18n( "Offline" ), Kopete::OnlineStatusManager::Offline )
+ SMSOnline( Kopete::OnlineStatus::Online, 25, this, 0, TQString::null, i18n( "Online" ), i18n( "Online" ), Kopete::OnlineStatusManager::Online ),
+ SMSConnecting( Kopete::OnlineStatus::Connecting,2, this, 3, TQString::null, i18n( "Connecting" ) ),
+ SMSOffline( Kopete::OnlineStatus::Offline, 0, this, 2, TQString::null, i18n( "Offline" ), i18n( "Offline" ), Kopete::OnlineStatusManager::Offline )
{
if (s_protocol)
kdWarning( 14160 ) << k_funcinfo << "s_protocol already defined!" << endl;
@@ -51,12 +51,12 @@ SMSProtocol::~SMSProtocol()
s_protocol = 0L;
}
-AddContactPage *SMSProtocol::createAddContactWidget(QWidget *parent, Kopete::Account */*i*/)
+AddContactPage *SMSProtocol::createAddContactWidget(TQWidget *parent, Kopete::Account */*i*/)
{
return new SMSAddContactPage(parent);
}
-KopeteEditAccountWidget* SMSProtocol::createEditAccountWidget(Kopete::Account *account, QWidget *parent)
+KopeteEditAccountWidget* SMSProtocol::createEditAccountWidget(Kopete::Account *account, TQWidget *parent)
{
return new SMSEditAccountWidget(this, account, parent);
}
@@ -67,14 +67,14 @@ SMSProtocol* SMSProtocol::protocol()
}
Kopete::Contact *SMSProtocol::deserializeContact(Kopete::MetaContact *metaContact,
- const QMap<QString, QString> &serializedData,
- const QMap<QString, QString> &/* addressBookData */)
+ const TQMap<TQString, TQString> &serializedData,
+ const TQMap<TQString, TQString> &/* addressBookData */)
{
- QString contactId = serializedData["contactId"];
- QString accountId = serializedData["accountId"];
- QString displayName = serializedData["displayName"];
+ TQString contactId = serializedData["contactId"];
+ TQString accountId = serializedData["accountId"];
+ TQString displayName = serializedData["displayName"];
- QDict<Kopete::Account> accounts=Kopete::AccountManager::self()->accounts(this);
+ TQDict<Kopete::Account> accounts=Kopete::AccountManager::self()->accounts(this);
Kopete::Account *account = accounts[accountId];
if (!account)
@@ -86,7 +86,7 @@ Kopete::Contact *SMSProtocol::deserializeContact(Kopete::MetaContact *metaContac
return new SMSContact(account, contactId, displayName, metaContact);
}
-Kopete::Account* SMSProtocol::createNewAccount(const QString &accountId)
+Kopete::Account* SMSProtocol::createNewAccount(const TQString &accountId)
{
return new SMSAccount(this, accountId);
}