From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kopete/plugins/webpresence/DESIGN | 2 +- kopete/plugins/webpresence/webpresence_html.xsl | 2 +- kopete/plugins/webpresence/webpresence_xhtml.xsl | 2 +- kopete/plugins/webpresence/webpresenceplugin.cpp | 28 ++++++------- kopete/plugins/webpresence/webpresenceplugin.h | 5 ++- .../plugins/webpresence/webpresencepreferences.cpp | 6 +-- .../plugins/webpresence/webpresencepreferences.h | 3 +- kopete/plugins/webpresence/webpresenceprefs.ui | 46 +++++++++++----------- 8 files changed, 48 insertions(+), 46 deletions(-) (limited to 'kopete/plugins/webpresence') diff --git a/kopete/plugins/webpresence/DESIGN b/kopete/plugins/webpresence/DESIGN index d62c9c34..cd7ed095 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 Status +Getting Info about Local User's tqStatus 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 f768ccf5..5dac1837 100644 --- a/kopete/plugins/webpresence/webpresence_html.xsl +++ b/kopete/plugins/webpresence/webpresence_html.xsl @@ -17,7 +17,7 @@ - My IM Status + My IM tqStatus

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

diff --git a/kopete/plugins/webpresence/webpresenceplugin.cpp b/kopete/plugins/webpresence/webpresenceplugin.cpp index bb7b9d4c..2755c12a 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.cpp +++ b/kopete/plugins/webpresence/webpresenceplugin.cpp @@ -51,8 +51,8 @@ typedef KGenericFactory WebPresencePluginFactory; K_EXPORT_COMPONENT_FACTORY( kopete_webpresence, WebPresencePluginFactory( "kopete_webpresence" ) ) -WebPresencePlugin::WebPresencePlugin( TQObject *parent, const char *name, const TQStringList& /*args*/ ) - : Kopete::Plugin( WebPresencePluginFactory::instance(), parent, name ), +WebPresencePlugin::WebPresencePlugin( TQObject *tqparent, const char *name, const TQStringList& /*args*/ ) + : Kopete::Plugin( WebPresencePluginFactory::instance(), tqparent, name ), shuttingDown( false ), resultFormatting( WEB_HTML ) { m_writeScheduler = new TQTimer( this ); @@ -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::currentDateTime() ) ); + KGlobal::locale()->formatDateTime( TQDateTime::tqcurrentDateTime() ) ); date.appendChild( t ); root.appendChild( date ); @@ -272,30 +272,30 @@ KTempFile* WebPresencePlugin::generateFile() accName.appendChild( accNameText ); acc.appendChild( accName ); - TQDomElement accStatus = doc.createElement( "accountstatus" ); + TQDomElement acctqStatus = doc.createElement( "accountstatus" ); TQDomText statusText = doc.createTextNode( ( me ) - ? statusAsString( me->onlineStatus() ) + ? statusAsString( me->onlinetqStatus() ) : notKnown ) ; - accStatus.appendChild( statusText ); + acctqStatus.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->onlineStatus().status() == Kopete::OnlineStatus::Away && + if ( me->onlinetqStatus().status() == Kopete::OnlineStatus::Away && !me->property("awayMessage").value().toString().isEmpty() ) { - accStatus.setAttribute( "awayreason", + acctqStatus.setAttribute( "awayreason", me->property("awayMessage").value().toString() ); } // Add the online status description as an attribute, if one exits. - if ( !me->onlineStatus().description().isEmpty() ) { - accStatus.setAttribute( "statusdescription", - me->onlineStatus().description() ); + if ( !me->onlinetqStatus().description().isEmpty() ) { + acctqStatus.setAttribute( "statusdescription", + me->onlinetqStatus().description() ); } } - acc.appendChild( accStatus ); + acc.appendChild( acctqStatus ); if ( showAddresses ) { @@ -430,13 +430,13 @@ ProtocolList WebPresencePlugin::allProtocols() return result; } -TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newStatus ) +TQString WebPresencePlugin::statusAsString( const Kopete::OnlineStatus &newtqStatus ) { if (shuttingDown) return "OFFLINE"; TQString status; - switch ( newStatus.status() ) + switch ( newtqStatus.status() ) { case Kopete::OnlineStatus::Online: status = "ONLINE"; diff --git a/kopete/plugins/webpresence/webpresenceplugin.h b/kopete/plugins/webpresence/webpresenceplugin.h index eec5647e..6580a3c9 100644 --- a/kopete/plugins/webpresence/webpresenceplugin.h +++ b/kopete/plugins/webpresence/webpresenceplugin.h @@ -38,6 +38,7 @@ typedef TQValueList ProtocolList; class WebPresencePlugin : public Kopete::Plugin { Q_OBJECT + TQ_OBJECT private: int frequency; @@ -62,7 +63,7 @@ private: TQString resultURL; public: - WebPresencePlugin( TQObject *parent, const char *name, const TQStringList &args ); + WebPresencePlugin( TQObject *tqparent, const char *name, const TQStringList &args ); virtual ~WebPresencePlugin(); virtual void aboutToUnload(); @@ -108,7 +109,7 @@ protected: /** * Converts numeric status to a string */ - TQString statusAsString( const Kopete::OnlineStatus &newStatus ); + TQString statusAsString( const Kopete::OnlineStatus &newtqStatus ); /** * Schedules writes */ diff --git a/kopete/plugins/webpresence/webpresencepreferences.cpp b/kopete/plugins/webpresence/webpresencepreferences.cpp index 8aebcd53..a727277b 100644 --- a/kopete/plugins/webpresence/webpresencepreferences.cpp +++ b/kopete/plugins/webpresence/webpresencepreferences.cpp @@ -27,8 +27,8 @@ typedef KGenericFactory WebPresencePreferencesFactory; K_EXPORT_COMPONENT_FACTORY( kcm_kopete_webpresence, WebPresencePreferencesFactory("kcm_kopete_webpresence")) -WebPresencePreferences::WebPresencePreferences(TQWidget *parent, const char* /*name*/, const TQStringList &args) - : KCModule(WebPresencePreferencesFactory::instance(), parent, args) +WebPresencePreferences::WebPresencePreferences(TQWidget *tqparent, const char* /*name*/, const TQStringList &args) + : KCModule(WebPresencePreferencesFactory::instance(), tqparent, args) { // Add actuall widget generated from ui file. ( new TQVBoxLayout( this ) )->setAutoAdd( true ); @@ -37,7 +37,7 @@ WebPresencePreferences::WebPresencePreferences(TQWidget *parent, const char* /*n preferencesDialog->formatStylesheetURL->setFilter( "*.xsl" ); // KAutoConfig stuff - kautoconfig = new KAutoConfig(KGlobal::config(), this, "kautoconfig"); + kautoconfig = new KAutoConfig(KGlobal::config(), TQT_TQOBJECT(this), "kautoconfig"); connect(kautoconfig, TQT_SIGNAL(widgetModified()), TQT_SLOT(widgetModified())); connect(kautoconfig, TQT_SIGNAL(settingsChanged()), TQT_SLOT(widgetModified())); kautoconfig->addWidget(preferencesDialog, "Web Presence Plugin"); diff --git a/kopete/plugins/webpresence/webpresencepreferences.h b/kopete/plugins/webpresence/webpresencepreferences.h index 8c272cdc..f7a9fd19 100644 --- a/kopete/plugins/webpresence/webpresencepreferences.h +++ b/kopete/plugins/webpresence/webpresencepreferences.h @@ -29,9 +29,10 @@ class KAutoConfig; */ class WebPresencePreferences : public KCModule { Q_OBJECT + TQ_OBJECT public: - WebPresencePreferences(TQWidget *parent = 0, const char *name = 0, const TQStringList &args = TQStringList()); + WebPresencePreferences(TQWidget *tqparent = 0, const char *name = 0, const TQStringList &args = TQStringList()); virtual void save(); virtual void defaults(); diff --git a/kopete/plugins/webpresence/webpresenceprefs.ui b/kopete/plugins/webpresence/webpresenceprefs.ui index 9aae819a..7f872fb7 100644 --- a/kopete/plugins/webpresence/webpresenceprefs.ui +++ b/kopete/plugins/webpresence/webpresenceprefs.ui @@ -1,6 +1,6 @@ WebPresencePrefsUI - + WebPresencePrefsUI @@ -25,7 +25,7 @@ 6 - + groupBox1 @@ -42,7 +42,7 @@ 6 - + textLabel1 @@ -74,7 +74,7 @@ Expanding - + 449 0 @@ -83,7 +83,7 @@ - + buttonGroup2_2 @@ -100,7 +100,7 @@ 6 - + formatHTML @@ -119,7 +119,7 @@ This version should be easily opened by most web browsers. - + formatXHTML @@ -135,7 +135,7 @@ This version should be easily opened by most web browsers. Note that some web browsers do not support XHTML. You should also make sure your web server serves it out with the correct mime type, such as application/xhtml+xml. - + formatXML @@ -149,7 +149,7 @@ Note that some web browsers do not support XHTML. You should also make sure your Save the output in XML format using the UTF-8 encoding. - + formatStylesheet @@ -157,9 +157,9 @@ Note that some web browsers do not support XHTML. You should also make sure your XML transformation &using this XSLT sheet: - + - layout1 + tqlayout1 @@ -175,7 +175,7 @@ Note that some web browsers do not support XHTML. You should also make sure your Fixed - + 30 20 @@ -192,7 +192,7 @@ Note that some web browsers do not support XHTML. You should also make sure your - + useImagesHTML @@ -222,7 +222,7 @@ images/winpopup_protocol.png - + buttonGroup2 @@ -239,7 +239,7 @@ images/winpopup_protocol.png 6 - + showName @@ -250,7 +250,7 @@ images/winpopup_protocol.png true - + showAnotherName @@ -258,9 +258,9 @@ images/winpopup_protocol.png Use another &name: - + - layout2 + tqlayout2 @@ -276,14 +276,14 @@ images/winpopup_protocol.png Fixed - + 30 20 - + showThisName @@ -293,7 +293,7 @@ images/winpopup_protocol.png - + includeIMAddress @@ -313,7 +313,7 @@ images/winpopup_protocol.png Expanding - + 16 93 @@ -357,7 +357,7 @@ images/winpopup_protocol.png showThisName includeIMAddress - + kurlrequester.h klineedit.h -- cgit v1.2.1