From 83677e35509b4dafac63b76995652bdf3b49f209 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 16 Dec 2011 09:59:34 -0600 Subject: Revert "Rename a number of old tq methods that are no longer tq specific" This reverts commit 808e453c56036211f57482ed847d54aca01bba68. --- kopete/protocols/oscar/aim/aimcontact.cpp | 92 +++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) (limited to 'kopete/protocols/oscar/aim/aimcontact.cpp') diff --git a/kopete/protocols/oscar/aim/aimcontact.cpp b/kopete/protocols/oscar/aim/aimcontact.cpp index 7a5de795..ffa81067 100644 --- a/kopete/protocols/oscar/aim/aimcontact.cpp +++ b/kopete/protocols/oscar/aim/aimcontact.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include @@ -56,7 +56,7 @@ AIMContact::AIMContact( Kopete::Account* account, const TQString& name, Kopete:: m_haveAwayMessage = false; m_mobile = false; // Set the last autoresponse time to the current time yesterday - m_lastAutoresponseTime = TQDateTime::currentDateTime().addDays(-1); + m_lastAutoresponseTime = TQDateTime::tqcurrentDateTime().addDays(-1); TQObject::connect( mAccount->engine(), TQT_SIGNAL( receivedUserInfo( const TQString&, const UserDetails& ) ), this, TQT_SLOT( userInfoUpdated( const TQString&, const UserDetails& ) ) ); @@ -128,15 +128,15 @@ void AIMContact::setAwayMessage(const TQString &message) "Called for '" << contactId() << "', away msg='" << message << "'" << endl; TQString filteredMessage = message; filteredMessage.replace( - TQRegExp(TQString::fromLatin1("<[hH][tT][mM][lL].*>(.*)")), - TQString::fromLatin1("\\1")); + TQRegExp(TQString::tqfromLatin1("<[hH][tT][mM][lL].*>(.*)")), + TQString::tqfromLatin1("\\1")); filteredMessage.replace( - TQRegExp(TQString::fromLatin1("<[bB][oO][dD][yY].*>(.*)")), - TQString::fromLatin1("\\1") ); - TQRegExp fontRemover( TQString::fromLatin1("<[fF][oO][nN][tT].*>(.*)") ); + TQRegExp(TQString::tqfromLatin1("<[bB][oO][dD][yY].*>(.*)")), + TQString::tqfromLatin1("\\1") ); + TQRegExp fontRemover( TQString::tqfromLatin1("<[fF][oO][nN][tT].*>(.*)") ); fontRemover.setMinimal(true); while ( filteredMessage.find( fontRemover ) != -1 ) - filteredMessage.replace( fontRemover, TQString::fromLatin1("\\1") ); + filteredMessage.replace( fontRemover, TQString::tqfromLatin1("\\1") ); setProperty(mProtocol->awayMessage, filteredMessage); } @@ -148,7 +148,7 @@ int AIMContact::warningLevel() const void AIMContact::updateSSIItem() { if ( m_ssiItem.type() != 0xFFFF && m_ssiItem.waitingAuth() == false && - onlineStatus() == Kopete::OnlineStatus::Unknown ) + onlinetqStatus() == Kopete::OnlineStatus::Unknown ) { //make sure they're offline setOnlineStatus( static_cast( protocol() )->statusOffline ); @@ -351,11 +351,11 @@ void AIMContact::warnUser() "(Warning a user on AIM will result in a \"Warning Level\"" \ " increasing for the user you warn. Once this level has reached a" \ " certain point, they will not be able to sign on. Please do not abuse" \ - " this function, it is meant for legitimate practices.)" ).arg( nick ); + " this function, it is meant for legitimate practices.)" ).tqarg( nick ); int result = KMessageBox::questionYesNoCancel( Kopete::UI::Global::mainWidget(), message, - i18n( "Warn User %1?" ).arg( nick ), + i18n( "Warn User %1?" ).tqarg( nick ), i18n( "Warn Anonymously" ), i18n( "Warn" ) ); if ( result == KMessageBox::Yes ) @@ -383,7 +383,7 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *) return; //okay, now we need to change the message.escapedBody from real HTML to aimhtml. //looking right now for docs on that "format". - //looks like everything except for alignment codes comes in the format of spans + //looks like everything except for tqalignment codes comes in the format of spans //font-style:italic -> //font-weight:600 -> (anything > 400 should be , 400 is not bold) @@ -392,59 +392,59 @@ void AIMContact::slotSendMsg(Kopete::Message& message, Kopete::ChatSession *) //font-size:xxpt -> s=message.escapedBody(); - s.replace ( TQRegExp( TQString::fromLatin1("([^<]*)")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("([^<]*)")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); - s.replace ( TQRegExp( TQString::fromLatin1("")), - TQString::fromLatin1("\\2")); + s.replace ( TQRegExp( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("\\2")); //okay now change the to //0-9 are size 1 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //10-11 are size 2 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //12-13 are size 3 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //14-16 are size 4 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //17-22 are size 5 - s.replace ( TQRegExp ( TQString::fromLatin1("")), - TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), + TQString::tqfromLatin1("")); //23-29 are size 6 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); //30- (and any I missed) are size 7 - s.replace ( TQRegExp ( TQString::fromLatin1("")),TQString::fromLatin1("")); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")),TQString::tqfromLatin1("")); // strip left over line break - s.remove(TQRegExp(TQString::fromLatin1("]*>$"))); + s.remove(TQRegExp(TQString::tqfromLatin1("]*>$"))); - s.replace ( TQRegExp ( TQString::fromLatin1("")), TQString::fromLatin1("
") ); + s.replace ( TQRegExp ( TQString::tqfromLatin1("")), TQString::tqfromLatin1("
") ); // strip left over line break - s.remove( TQRegExp( TQString::fromLatin1( "
$" ) ) ); + s.remove( TQRegExp( TQString::tqfromLatin1( "
$" ) ) ); kdDebug(14190) << k_funcinfo << "sending " << s << endl; @@ -475,9 +475,9 @@ void AIMContact::updateFeatures() void AIMContact::sendAutoResponse(Kopete::Message& msg) { // The target time is 2 minutes later than the last message - int delta = m_lastAutoresponseTime.secsTo( TQDateTime::currentDateTime() ); + int delta = m_lastAutoresponseTime.secsTo( TQDateTime::tqcurrentDateTime() ); kdDebug(14152) << k_funcinfo << "Last autoresponse time: " << m_lastAutoresponseTime << endl; - kdDebug(14152) << k_funcinfo << "Current time: " << TQDateTime::currentDateTime() << endl; + kdDebug(14152) << k_funcinfo << "Current time: " << TQDateTime::tqcurrentDateTime() << endl; kdDebug(14152) << k_funcinfo << "Difference: " << delta << endl; // Check to see if we're past that time if(delta > 120) @@ -509,7 +509,7 @@ void AIMContact::sendAutoResponse(Kopete::Message& msg) manager(Kopete::Contact::CanCreate)->appendMessage(msg); manager(Kopete::Contact::CanCreate)->messageSucceeded(); // Update the last autoresponse time - m_lastAutoresponseTime = TQDateTime::currentDateTime(); + m_lastAutoresponseTime = TQDateTime::tqcurrentDateTime(); } else { -- cgit v1.2.1