summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/connectionstatus
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/plugins/connectionstatus
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/connectionstatus')
-rw-r--r--kopete/plugins/connectionstatus/connectionstatusplugin.cpp18
-rw-r--r--kopete/plugins/connectionstatus/connectionstatusplugin.h6
2 files changed, 12 insertions, 12 deletions
diff --git a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp
index 8840c893..33f4e3dd 100644
--- a/kopete/plugins/connectionstatus/connectionstatusplugin.cpp
+++ b/kopete/plugins/connectionstatus/connectionstatusplugin.cpp
@@ -17,7 +17,7 @@
#include "connectionstatusplugin.h"
-#include <qtimer.h>
+#include <tqtimer.h>
#include <kdebug.h>
#include <kgenericfactory.h>
@@ -28,15 +28,15 @@
typedef KGenericFactory<ConnectionStatusPlugin> ConnectionStatusPluginFactory;
K_EXPORT_COMPONENT_FACTORY( kopete_connectionstatus, ConnectionStatusPluginFactory( "kopete_connectionstatus" ) )
-ConnectionStatusPlugin::ConnectionStatusPlugin( QObject *parent, const char *name, const QStringList& /* args */ )
+ConnectionStatusPlugin::ConnectionStatusPlugin( TQObject *parent, const char *name, const TQStringList& /* args */ )
: Kopete::Plugin( ConnectionStatusPluginFactory::instance(), parent, name )
{
kdDebug( 14301 ) << k_funcinfo << endl;
m_process = 0L;
- m_timer = new QTimer();
- connect( m_timer, SIGNAL( timeout() ), this, SLOT( slotCheckStatus() ) );
+ m_timer = new TQTimer();
+ connect( m_timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotCheckStatus() ) );
m_timer->start( 60000 );
m_pluginConnected = false;
@@ -61,7 +61,7 @@ void ConnectionStatusPlugin::slotCheckStatus()
return;
}
- m_buffer = QString::null;
+ m_buffer = TQString::null;
// Use KProcess to run netstat -rn. We'll then parse the output of
// netstat -rn in slotProcessStdout() to see if it mentions the
@@ -69,8 +69,8 @@ void ConnectionStatusPlugin::slotCheckStatus()
m_process = new KProcess;
*m_process << "netstat" << "-r";
- connect( m_process, SIGNAL( receivedStdout( KProcess *, char *, int ) ), this, SLOT( slotProcessStdout( KProcess *, char *, int ) ) );
- connect( m_process, SIGNAL( processExited( KProcess * ) ), this, SLOT( slotProcessExited( KProcess * ) ) );
+ connect( m_process, TQT_SIGNAL( receivedStdout( KProcess *, char *, int ) ), this, TQT_SLOT( slotProcessStdout( KProcess *, char *, int ) ) );
+ connect( m_process, TQT_SIGNAL( processExited( KProcess * ) ), this, TQT_SLOT( slotProcessExited( KProcess * ) ) );
if ( !m_process->start( KProcess::NotifyOnExit, KProcess::Stdout ) )
{
@@ -88,7 +88,7 @@ void ConnectionStatusPlugin::slotProcessExited( KProcess *process )
if ( process == m_process )
{
setConnectedStatus( m_buffer.contains( "default" ) );
- m_buffer = QString::null;
+ m_buffer = TQString::null;
delete m_process;
m_process = 0L;
}
@@ -98,7 +98,7 @@ void ConnectionStatusPlugin::slotProcessStdout( KProcess *, char *buffer, int bu
{
// Look for a default gateway
//kdDebug( 14301 ) << k_funcinfo << endl;
- m_buffer += QString::fromLatin1( buffer, buflen );
+ m_buffer += TQString::fromLatin1( buffer, buflen );
//kdDebug( 14301 ) << qsBuffer << endl;
}
diff --git a/kopete/plugins/connectionstatus/connectionstatusplugin.h b/kopete/plugins/connectionstatus/connectionstatusplugin.h
index 5f0a53bf..726176cb 100644
--- a/kopete/plugins/connectionstatus/connectionstatusplugin.h
+++ b/kopete/plugins/connectionstatus/connectionstatusplugin.h
@@ -31,7 +31,7 @@ class ConnectionStatusPlugin : public Kopete::Plugin
Q_OBJECT
public:
- ConnectionStatusPlugin( QObject *parent, const char *name, const QStringList &args );
+ ConnectionStatusPlugin( TQObject *parent, const char *name, const TQStringList &args );
~ConnectionStatusPlugin();
private slots:
@@ -48,8 +48,8 @@ private:
bool m_pluginConnected;
KProcess *m_process;
- QTimer *m_timer;
- QString m_buffer;
+ TQTimer *m_timer;
+ TQString m_buffer;
};
#endif