From 089118c18533dfa3e6ce5065dbebdd4db94051f1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:33:51 -0600 Subject: Rename old tq methods that no longer need a unique name --- kopete/plugins/webpresence/DESIGN | 2 +- kopete/plugins/webpresence/webpresence_html.xsl | 2 +- kopete/plugins/webpresence/webpresence_xhtml.xsl | 2 +- kopete/plugins/webpresence/webpresenceplugin.cpp | 24 ++++++++++++------------ kopete/plugins/webpresence/webpresenceplugin.h | 2 +- kopete/plugins/webpresence/webpresenceprefs.ui | 8 ++++---- 6 files changed, 20 insertions(+), 20 deletions(-) (limited to 'kopete/plugins/webpresence') diff --git a/kopete/plugins/webpresence/DESIGN b/kopete/plugins/webpresence/DESIGN index cd7ed095..d62c9c34 100644 --- a/kopete/plugins/webpresence/DESIGN +++ b/kopete/plugins/webpresence/DESIGN @@ -8,5 +8,5 @@ Every so often, it writes a file containing a snapshot of who is online and who Use KIO::NetAccess to upload the files! -Getting Info about Local User's tqStatus +Getting Info about Local User's Status Goal is to allow ppl who don't have us on their contactlist to see what our current status is and what our UIN/id is for each protocol. So we need to know (protocol, uin, status). diff --git a/kopete/plugins/webpresence/webpresence_html.xsl b/kopete/plugins/webpresence/webpresence_html.xsl index 5dac1837..f768ccf5 100644 --- a/kopete/plugins/webpresence/webpresence_html.xsl +++ b/kopete/plugins/webpresence/webpresence_html.xsl @@ -17,7 +17,7 @@ - My IM tqStatus + My IM Status

diff --git a/kopete/plugins/webpresence/webpresence_xhtml.xsl b/kopete/plugins/webpresence/webpresence_xhtml.xsl index 4ba456d5..9d749c14 100644 --- a/kopete/plugins/webpresence/webpresence_xhtml.xsl +++ b/kopete/plugins/webpresence/webpresence_xhtml.xsl @@ -16,7 +16,7 @@ - My IM tqStatus + My IM Status

diff --git a/kopete/plugins/webpresence/webpresenceplugin.cpp b/kopete/plugins/webpresence/webpresenceplugin.cpp index 88de6c07..bb7b9d4c 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.cpp +++ b/kopete/plugins/webpresence/webpresenceplugin.cpp @@ -228,7 +228,7 @@ KTempFile* WebPresencePlugin::generateFile() // insert the current date/time TQDomElement date = doc.createElement( "listdate" ); TQDomText t = doc.createTextNode( - KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime() ) ); + KGlobal::locale()->formatDateTime( TQDateTime::currentDateTime() ) ); date.appendChild( t ); root.appendChild( date ); @@ -272,30 +272,30 @@ KTempFile* WebPresencePlugin::generateFile() accName.appendChild( accNameText ); acc.appendChild( accName ); - TQDomElement acctqStatus = doc.createElement( "accountstatus" ); + TQDomElement accStatus = doc.createElement( "accountstatus" ); TQDomText statusText = doc.createTextNode( ( me ) - ? statusAsString( me->onlinetqStatus() ) + ? statusAsString( me->onlineStatus() ) : notKnown ) ; - acctqStatus.appendChild( statusText ); + accStatus.appendChild( statusText ); // Dont add these if we're shutting down, because the result // would be quite weird. if ( !shuttingDown ) { // Add away message as an attribute, if one exists. - if ( me->onlinetqStatus().status() == Kopete::OnlineStatus::Away && + if ( me->onlineStatus().status() == Kopete::OnlineStatus::Away && !me->property("awayMessage").value().toString().isEmpty() ) { - acctqStatus.setAttribute( "awayreason", + accStatus.setAttribute( "awayreason", me->property("awayMessage").value().toString() ); } // Add the online status description as an attribute, if one exits. - if ( !me->onlinetqStatus().description().isEmpty() ) { - acctqStatus.setAttribute( "statusdescription", - me->onlinetqStatus().description() ); + if ( !me->onlineStatus().description().isEmpty() ) { + accStatus.setAttribute( "statusdescription", + me->onlineStatus().description() ); } } - acc.appendChild( acctqStatus ); + acc.appendChild( accStatus ); if ( showAddresses ) { @@ -430,13 +430,13 @@ ProtocolList WebPresencePlugin::allProtocols() return result; } -TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newtqStatus ) +TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newStatus ) { if (shuttingDown) return "OFFLINE"; TQString status; - switch ( newtqStatus.status() ) + switch ( newStatus.status() ) { case Kopete::OnlineStatus::Online: status = "ONLINE"; diff --git a/kopete/plugins/webpresence/webpresenceplugin.h b/kopete/plugins/webpresence/webpresenceplugin.h index 8ce3407a..04babfa2 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.h +++ b/kopete/plugins/webpresence/webpresenceplugin.h @@ -109,7 +109,7 @@ protected: /** * Converts numeric status to a string */ - TQString statusAsString( const Kopete::OnlineStatus &newtqStatus ); + TQString statusAsString( const Kopete::OnlineStatus &newStatus ); /** * Schedules writes */ diff --git a/kopete/plugins/webpresence/webpresenceprefs.ui b/kopete/plugins/webpresence/webpresenceprefs.ui index 41518bb4..5c6632d8 100644 --- a/kopete/plugins/webpresence/webpresenceprefs.ui +++ b/kopete/plugins/webpresence/webpresenceprefs.ui @@ -74,7 +74,7 @@ Expanding - + 449 0 @@ -175,7 +175,7 @@ Note that some web browsers do not support XHTML. You should also make sure your Fixed - + 30 20 @@ -276,7 +276,7 @@ images/winpopup_protocol.png Fixed - + 30 20 @@ -313,7 +313,7 @@ images/winpopup_protocol.png Expanding - + 16 93 -- cgit v1.2.1