summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/smscontact.cpp
diff options
context:
space:
mode:
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 );