summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/webpresence
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/webpresence')
-rw-r--r--kopete/plugins/webpresence/DESIGN2
-rw-r--r--kopete/plugins/webpresence/webpresence_html.xsl2
-rw-r--r--kopete/plugins/webpresence/webpresence_xhtml.xsl2
-rw-r--r--kopete/plugins/webpresence/webpresenceplugin.cpp28
-rw-r--r--kopete/plugins/webpresence/webpresenceplugin.h5
-rw-r--r--kopete/plugins/webpresence/webpresencepreferences.cpp6
-rw-r--r--kopete/plugins/webpresence/webpresencepreferences.h3
-rw-r--r--kopete/plugins/webpresence/webpresenceprefs.ui46
8 files changed, 48 insertions, 46 deletions
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 @@
<xsl:template match="webpresence">
<html>
<head>
- <title>My IM Status</title>
+ <title>My IM tqStatus</title>
</head>
<body>
<p class="name"><xsl:value-of select="name"/></p>
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 @@
<xsl:template match="webpresence">
<html>
<head>
- <title>My IM Status</title>
+ <title>My IM tqStatus</title>
</head>
<body>
<p class="name"><xsl:value-of select="name"/></p>
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<WebPresencePlugin> 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<Kopete::Protocol*> 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<WebPresencePreferences> 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 @@
<!DOCTYPE UI><UI version="3.3" stdsetdef="1">
<class>WebPresencePrefsUI</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>WebPresencePrefsUI</cstring>
</property>
@@ -25,7 +25,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>groupBox1</cstring>
</property>
@@ -42,7 +42,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -74,7 +74,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>449</width>
<height>0</height>
@@ -83,7 +83,7 @@
</spacer>
</grid>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>buttonGroup2_2</cstring>
</property>
@@ -100,7 +100,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>formatHTML</cstring>
</property>
@@ -119,7 +119,7 @@
This version should be easily opened by most web browsers.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>formatXHTML</cstring>
</property>
@@ -135,7 +135,7 @@ This version should be easily opened by most web browsers.</string>
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.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>formatXML</cstring>
</property>
@@ -149,7 +149,7 @@ Note that some web browsers do not support XHTML. You should also make sure your
<string>Save the output in XML format using the UTF-8 encoding.</string>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>formatStylesheet</cstring>
</property>
@@ -157,9 +157,9 @@ Note that some web browsers do not support XHTML. You should also make sure your
<string>XML transformation &amp;using this XSLT sheet:</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout1</cstring>
+ <cstring>tqlayout1</cstring>
</property>
<hbox>
<property name="name">
@@ -175,7 +175,7 @@ Note that some web browsers do not support XHTML. You should also make sure your
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>20</height>
@@ -192,7 +192,7 @@ Note that some web browsers do not support XHTML. You should also make sure your
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>useImagesHTML</cstring>
</property>
@@ -222,7 +222,7 @@ images/winpopup_protocol.png</string>
</widget>
</vbox>
</widget>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>buttonGroup2</cstring>
</property>
@@ -239,7 +239,7 @@ images/winpopup_protocol.png</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>showName</cstring>
</property>
@@ -250,7 +250,7 @@ images/winpopup_protocol.png</string>
<bool>true</bool>
</property>
</widget>
- <widget class="QRadioButton">
+ <widget class="TQRadioButton">
<property name="name">
<cstring>showAnotherName</cstring>
</property>
@@ -258,9 +258,9 @@ images/winpopup_protocol.png</string>
<string>Use another &amp;name:</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout2</cstring>
+ <cstring>tqlayout2</cstring>
</property>
<hbox>
<property name="name">
@@ -276,14 +276,14 @@ images/winpopup_protocol.png</string>
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>30</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>showThisName</cstring>
</property>
@@ -293,7 +293,7 @@ images/winpopup_protocol.png</string>
</widget>
</hbox>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>includeIMAddress</cstring>
</property>
@@ -313,7 +313,7 @@ images/winpopup_protocol.png</string>
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>16</width>
<height>93</height>
@@ -357,7 +357,7 @@ images/winpopup_protocol.png</string>
<tabstop>showThisName</tabstop>
<tabstop>includeIMAddress</tabstop>
</tabstops>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kurlrequester.h</includehint>
<includehint>klineedit.h</includehint>