diff options
Diffstat (limited to 'kopete/protocols/winpopup/wpcontact.cpp')
-rw-r--r-- | kopete/protocols/winpopup/wpcontact.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/kopete/protocols/winpopup/wpcontact.cpp b/kopete/protocols/winpopup/wpcontact.cpp index 801b9865..3e70b349 100644 --- a/kopete/protocols/winpopup/wpcontact.cpp +++ b/kopete/protocols/winpopup/wpcontact.cpp @@ -15,7 +15,7 @@ * * ***************************************************************************/ -// Qt Includes +// TQt Includes #include <tqregexp.h> // KDE Includes @@ -30,7 +30,7 @@ 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(<account>, " << newHostName << ", " << nickName << ", <tqparent>)" << endl; kdDebug(14170) << "WPContact::WPContact: " << this << endl; TQString theNickName = nickName; @@ -38,7 +38,7 @@ WPContact::WPContact(Kopete::Account *account, const TQString &newHostName, cons if (theNickName.isEmpty()) { // Construct nickname from hostname with first letter to upper. GF theNickName = newHostName.lower(); - theNickName = theNickName.replace(0, 1, theNickName[0].upper()); + theNickName = theNickName.tqreplace(0, 1, theNickName[0].upper()); } setNickName(theNickName); @@ -51,13 +51,13 @@ WPContact::WPContact(Kopete::Account *account, const TQString &newHostName, cons // Initialise and start the periodical checking for contact's status setOnlineStatus(static_cast<WPProtocol *>(protocol())->WPOffline); - connect(&checkStatus, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotCheckStatus())); - checkStatus.start(1000, false); + connect(&checktqStatus, TQT_SIGNAL(timeout()), this, TQT_SLOT(slotChecktqStatus())); + checktqStatus.start(1000, false); } TQPtrList<KAction> * WPContact::customContextMenuActions() { - //myActionCollection = new KActionCollection(parent); + //myActionCollection = new KActionCollection(tqparent); return 0; } @@ -89,14 +89,14 @@ Kopete::ChatSession* WPContact::manager( Kopete::Contact::CanCreateFlags /*canCr bool WPContact::isOnline() const { kdDebug(14170) << "[WPContact::isOnline()]" << endl; - return onlineStatus().status() != Kopete::OnlineStatus::Offline && onlineStatus().status() != Kopete::OnlineStatus::Unknown; + return onlinetqStatus().status() != Kopete::OnlineStatus::Offline && onlinetqStatus().status() != Kopete::OnlineStatus::Unknown; } */ bool WPContact::isReachable() { // kdDebug(14170) << "[WPContact::isReachable()]" << endl; - return onlineStatus().status() != Kopete::OnlineStatus::Offline && onlineStatus().status() != Kopete::OnlineStatus::Unknown; + return onlinetqStatus().status() != Kopete::OnlineStatus::Offline && onlinetqStatus().status() != Kopete::OnlineStatus::Unknown; } void WPContact::slotChatSessionDestroyed() @@ -131,7 +131,7 @@ void deleteContact() } */ -void WPContact::slotCheckStatus() +void WPContact::slotChecktqStatus() { bool oldWasConnected = myWasConnected; bool newIsOnline = false; @@ -141,11 +141,11 @@ void WPContact::slotCheckStatus() if (acct) newIsOnline = acct->checkHost(contactId()); if(newIsOnline != isOnline() || myWasConnected != oldWasConnected) { - Kopete::OnlineStatus tmpStatus = WPProtocol::protocol()->WPOffline; + Kopete::OnlineStatus tmptqStatus = WPProtocol::protocol()->WPOffline; if (myWasConnected && newIsOnline) { - tmpStatus = WPProtocol::protocol()->WPOnline; + tmptqStatus = WPProtocol::protocol()->WPOnline; } - setOnlineStatus(tmpStatus); + setOnlineStatus(tmptqStatus); } } @@ -186,4 +186,4 @@ void WPContact::slotSendMessage( Kopete::Message& message ) #include "wpcontact.moc" // vim: set noet ts=4 sts=4 sw=4: -// kate: tab-width 4; indent-width 4; replace-trailing-space-save on; +// kate: tab-width 4; indent-width 4; tqreplace-trailing-space-save on; |