summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/connectionstatus
diff options
context:
space:
mode:
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