summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smscontact.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/smscontact.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/smscontact.cpp')
-rw-r--r--kopete/protocols/sms/smscontact.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/kopete/protocols/sms/smscontact.cpp b/kopete/protocols/sms/smscontact.cpp
index d220b380..f47a0b46 100644
--- a/kopete/protocols/sms/smscontact.cpp
+++ b/kopete/protocols/sms/smscontact.cpp
@@ -31,8 +31,8 @@
#include "smsaccount.h"
#include "smsuserpreferences.h"
-SMSContact::SMSContact( Kopete::Account* _account, const QString &phoneNumber,
- const QString &displayName, Kopete::MetaContact *parent )
+SMSContact::SMSContact( Kopete::Account* _account, const TQString &phoneNumber,
+ const TQString &displayName, Kopete::MetaContact *parent )
: Kopete::Contact( _account, phoneNumber, parent ), m_phoneNumber( phoneNumber )
{
// kdWarning( 14160 ) << k_funcinfo << " this = " << this << ", phone = " << phoneNumber << endl;
@@ -51,7 +51,7 @@ void SMSContact::slotSendingSuccess(const Kopete::Message &msg)
manager(Kopete::Contact::CanCreate)->appendMessage((Kopete::Message &)msg);
}
-void SMSContact::slotSendingFailure(const Kopete::Message &/*msg*/, const QString &error)
+void SMSContact::slotSendingFailure(const Kopete::Message &/*msg*/, const TQString &error)
{
KMessageBox::detailedError(Kopete::UI::Global::mainWidget(), i18n("Something went wrong when sending message."), error,
i18n("Could Not Send Message"));
@@ -60,8 +60,8 @@ void SMSContact::slotSendingFailure(const Kopete::Message &/*msg*/, const QStrin
manager(Kopete::Contact::CanCreate)->messageSucceeded();
}
-void SMSContact::serialize( QMap<QString, QString> &serializedData,
- QMap<QString, QString> & /* addressBookData */ )
+void SMSContact::serialize( TQMap<TQString, TQString> &serializedData,
+ TQMap<TQString, TQString> & /* addressBookData */ )
{
// Contact id and display name are already set for us
if (m_phoneNumber != contactId())
@@ -76,12 +76,12 @@ Kopete::ChatSession* SMSContact::manager( Kopete::Contact::CanCreateFlags canCre
}
else
{
- QPtrList<Kopete::Contact> contacts;
+ TQPtrList<Kopete::Contact> contacts;
contacts.append(this);
m_msgManager = Kopete::ChatSessionManager::self()->create(account()->myself(), contacts, protocol());
- connect(m_msgManager, SIGNAL(messageSent(Kopete::Message&, Kopete::ChatSession*)),
- account(), SLOT(slotSendMessage(Kopete::Message&)));
- connect(m_msgManager, SIGNAL(destroyed()), this, SLOT(slotChatSessionDestroyed()));
+ connect(m_msgManager, TQT_SIGNAL(messageSent(Kopete::Message&, Kopete::ChatSession*)),
+ account(), TQT_SLOT(slotSendMessage(Kopete::Message&)));
+ connect(m_msgManager, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotChatSessionDestroyed()));
return m_msgManager;
}
}
@@ -101,29 +101,29 @@ void SMSContact::deleteContact()
deleteLater();
}
-const QString SMSContact::qualifiedNumber()
+const TQString SMSContact::qualifiedNumber()
{
- QString number = m_phoneNumber;
+ TQString number = m_phoneNumber;
dynamic_cast<SMSAccount *>(account())->translateNumber(number);
return number;
}
-const QString &SMSContact::phoneNumber()
+const TQString &SMSContact::phoneNumber()
{
return m_phoneNumber;
}
-void SMSContact::setPhoneNumber( const QString phoneNumber )
+void SMSContact::setPhoneNumber( const TQString phoneNumber )
{
deleteLater();
new SMSContact(account(), phoneNumber, nickName(), metaContact());
}
-QPtrList<KAction>* SMSContact::customContextMenuActions()
+TQPtrList<KAction>* SMSContact::customContextMenuActions()
{
- QPtrList<KAction> *m_actionCollection = new QPtrList<KAction>();
+ TQPtrList<KAction> *m_actionCollection = new TQPtrList<KAction>();
if( !m_actionPrefs )
- m_actionPrefs = new KAction(i18n("&Contact Settings"), 0, this, SLOT(userPrefs()), this, "userPrefs");
+ m_actionPrefs = new KAction(i18n("&Contact Settings"), 0, this, TQT_SLOT(userPrefs()), this, "userPrefs");
m_actionCollection->append( m_actionPrefs );