summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/winpopup/wpcontact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/protocols/winpopup/wpcontact.cpp')
-rw-r--r--kopete/protocols/winpopup/wpcontact.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kopete/protocols/winpopup/wpcontact.cpp b/kopete/protocols/winpopup/wpcontact.cpp
index 7cf2529c..801b9865 100644
--- a/kopete/protocols/winpopup/wpcontact.cpp
+++ b/kopete/protocols/winpopup/wpcontact.cpp
@@ -16,7 +16,7 @@
***************************************************************************/
// Qt Includes
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE Includes
#include <kdebug.h>
@@ -27,13 +27,13 @@
#include "wpcontact.h"
#include "wpaccount.h"
-WPContact::WPContact(Kopete::Account *account, const QString &newHostName, const QString &nickName, Kopete::MetaContact *metaContact)
+WPContact::WPContact(Kopete::Account *account, const TQString &newHostName, const TQString &nickName, Kopete::MetaContact *metaContact)
: Kopete::Contact(account, newHostName, metaContact)
{
// kdDebug(14170) << "WPContact::WPContact(<account>, " << newHostName << ", " << nickName << ", <parent>)" << endl;
kdDebug(14170) << "WPContact::WPContact: " << this << endl;
- QString theNickName = nickName;
+ TQString theNickName = nickName;
if (theNickName.isEmpty()) {
// Construct nickname from hostname with first letter to upper. GF
@@ -51,17 +51,17 @@ WPContact::WPContact(Kopete::Account *account, const QString &newHostName, const
// Initialise and start the periodical checking for contact's status
setOnlineStatus(static_cast<WPProtocol *>(protocol())->WPOffline);
- connect(&checkStatus, SIGNAL(timeout()), this, SLOT(slotCheckStatus()));
+ connect(&checkStatus, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCheckStatus()));
checkStatus.start(1000, false);
}
-QPtrList<KAction> * WPContact::customContextMenuActions()
+TQPtrList<KAction> * WPContact::customContextMenuActions()
{
//myActionCollection = new KActionCollection(parent);
return 0;
}
-void WPContact::serialize(QMap<QString, QString> &serializedData, QMap<QString, QString> &addressBookData)
+void WPContact::serialize(TQMap<TQString, TQString> &serializedData, TQMap<TQString, TQString> &addressBookData)
{
// kdDebug(14170) << "WP::serialize(...)" << endl;
@@ -72,14 +72,14 @@ Kopete::ChatSession* WPContact::manager( Kopete::Contact::CanCreateFlags /*canCr
{
if (m_manager == 0) {
// Set up the message managers
- QPtrList<Kopete::Contact> singleContact;
+ TQPtrList<Kopete::Contact> singleContact;
singleContact.append(this);
m_manager = Kopete::ChatSessionManager::self()->create( account()->myself(), singleContact, protocol() );
- connect(m_manager, SIGNAL(messageSent(Kopete::Message &, Kopete::ChatSession *)), this, SLOT(slotSendMessage(Kopete::Message &)));
- connect(m_manager, SIGNAL(messageSent(Kopete::Message &, Kopete::ChatSession *)), m_manager, SLOT(appendMessage(Kopete::Message &)));
- connect(m_manager, SIGNAL(destroyed()), this, SLOT(slotChatSessionDestroyed()));
+ connect(m_manager, TQT_SIGNAL(messageSent(Kopete::Message &, Kopete::ChatSession *)), this, TQT_SLOT(slotSendMessage(Kopete::Message &)));
+ connect(m_manager, TQT_SIGNAL(messageSent(Kopete::Message &, Kopete::ChatSession *)), m_manager, TQT_SLOT(appendMessage(Kopete::Message &)));
+ connect(m_manager, TQT_SIGNAL(destroyed()), this, TQT_SLOT(slotChatSessionDestroyed()));
}
return m_manager;
@@ -111,7 +111,7 @@ void WPContact::slotUserInfo()
if (!m_infoDialog) {
m_infoDialog = new WPUserInfo( this, static_cast<WPAccount*>( account() ) );
if (!m_infoDialog) return;
- connect( m_infoDialog, SIGNAL( closing() ), this, SLOT( slotCloseUserInfoDialog() ) );
+ connect( m_infoDialog, TQT_SIGNAL( closing() ), this, TQT_SLOT( slotCloseUserInfoDialog() ) );
m_infoDialog->show();
} else {
m_infoDialog->raise();
@@ -149,14 +149,14 @@ void WPContact::slotCheckStatus()
}
}
-void WPContact::slotNewMessage(const QString &Body, const QDateTime &Arrival)
+void WPContact::slotNewMessage(const TQString &Body, const TQDateTime &Arrival)
{
kdDebug(14170) << "WPContact::slotNewMessage(" << Body << ", " << Arrival.toString() << ")" << endl;
- QPtrList<Kopete::Contact> contactList;
+ TQPtrList<Kopete::Contact> contactList;
contactList.append(account()->myself());
- QRegExp subj("^Subject: ([^\n]*)\n(.*)$");
+ TQRegExp subj("^Subject: ([^\n]*)\n(.*)$");
Kopete::Message msg;
if(subj.search(Body) == -1) {
@@ -174,7 +174,7 @@ void WPContact::slotSendMessage( Kopete::Message& message )
// Warning: this could crash
kdDebug(14170) << message.to().first() << " is " << dynamic_cast<WPContact *>( message.to().first() )->contactId() << endl;
- QString Message = (!message.subject().isEmpty() ? "Subject: " + message.subject() + "\n" : QString("")) + message.plainBody();
+ TQString Message = (!message.subject().isEmpty() ? "Subject: " + message.subject() + "\n" : TQString("")) + message.plainBody();
WPAccount *acct = dynamic_cast<WPAccount *>(account());
WPContact *contact = dynamic_cast<WPContact *>( message.to().first() );
if (acct && contact) {