summaryrefslogtreecommitdiffstats
path: root/ksim/monitors/snmp/monitor.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:52:55 +0000
commit5f5ee2367157176ed223b86343eb0a9e4022e020 (patch)
tree6a9c87f14ee38e90eff3c77c784f14e4f38fd5a1 /ksim/monitors/snmp/monitor.cpp
parent4facf42feec57b22dcf46badc115ad6c5b5cc512 (diff)
downloadtdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.tar.gz
tdeutils-5f5ee2367157176ed223b86343eb0a9e4022e020.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'ksim/monitors/snmp/monitor.cpp')
-rw-r--r--ksim/monitors/snmp/monitor.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/ksim/monitors/snmp/monitor.cpp b/ksim/monitors/snmp/monitor.cpp
index 7a97825..052d2c0 100644
--- a/ksim/monitors/snmp/monitor.cpp
+++ b/ksim/monitors/snmp/monitor.cpp
@@ -19,26 +19,26 @@
#include "monitor.h"
-#include <qtimer.h>
-#include <qapplication.h>
+#include <tqtimer.h>
+#include <tqapplication.h>
using namespace KSim::Snmp;
-Monitor::Monitor( const HostConfig &host, const Identifier &oid, int refresh, QObject *parent, const char *name )
- : QObject( parent, name ), m_oid( oid ), m_session( host )
+Monitor::Monitor( const HostConfig &host, const Identifier &oid, int refresh, TQObject *parent, const char *name )
+ : TQObject( parent, name ), m_oid( oid ), m_session( host )
{
if ( refresh > 0 )
m_timerId = startTimer( refresh );
else
m_timerId = -1;
- QTimer::singleShot( 0, this, SLOT( performSnmpRequest() ) );
+ TQTimer::singleShot( 0, this, TQT_SLOT( performSnmpRequest() ) );
}
Monitor::~Monitor()
{
- if ( QThread::running() )
- QThread::wait();
+ if ( TQThread::running() )
+ TQThread::wait();
}
void Monitor::run()
@@ -48,13 +48,13 @@ void Monitor::run()
result->oid = m_oid;
result->success = performSyncSnmpRequest( result->data, &result->error );
- QCustomEvent *ev = new QCustomEvent( QEvent::User, result );
- QApplication::postEvent( this, ev );
+ TQCustomEvent *ev = new TQCustomEvent( TQEvent::User, result );
+ TQApplication::postEvent( this, ev );
}
-void Monitor::customEvent( QCustomEvent *ev )
+void Monitor::customEvent( TQCustomEvent *ev )
{
- if ( ev->type() != QEvent::User )
+ if ( ev->type() != TQEvent::User )
return;
AsyncSnmpQueryResult *result = reinterpret_cast<AsyncSnmpQueryResult *>( ev->data() );
@@ -69,7 +69,7 @@ void Monitor::customEvent( QCustomEvent *ev )
delete result;
}
-void Monitor::timerEvent( QTimerEvent *ev )
+void Monitor::timerEvent( TQTimerEvent *ev )
{
if ( ev->timerId() != m_timerId )
return;
@@ -79,7 +79,7 @@ void Monitor::timerEvent( QTimerEvent *ev )
void Monitor::performSnmpRequest()
{
- if ( QThread::running() )
+ if ( TQThread::running() )
return;
start();