summaryrefslogtreecommitdiffstats
path: root/ksim/monitors/snmp/walker.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/walker.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/walker.cpp')
-rw-r--r--ksim/monitors/snmp/walker.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/ksim/monitors/snmp/walker.cpp b/ksim/monitors/snmp/walker.cpp
index 593cd04..0aa6c0a 100644
--- a/ksim/monitors/snmp/walker.cpp
+++ b/ksim/monitors/snmp/walker.cpp
@@ -19,7 +19,7 @@
#include "walker.h"
-#include <qapplication.h>
+#include <tqapplication.h>
#include <functional>
#include <algorithm>
@@ -38,8 +38,8 @@ namespace
static const uint walkerRefresh = 0;
-Walker::Walker( const HostConfig &host, const Identifier &startOid, QObject *parent, const char *name )
- : QObject( parent, name ), m_stop( false ), m_oid( startOid ), m_session( host )
+Walker::Walker( const HostConfig &host, const Identifier &startOid, TQObject *parent, const char *name )
+ : TQObject( parent, name ), m_stop( false ), m_oid( startOid ), m_session( host )
{
m_timerId = startTimer( walkerRefresh );
start();
@@ -51,8 +51,8 @@ Walker::~Walker()
m_stop = true;
m_stopGuard.unlock();
- if ( QThread::running() )
- QThread::wait();
+ if ( TQThread::running() )
+ TQThread::wait();
std::for_each( m_results.begin(), m_results.end(), Deleter<Result *>() );
}
@@ -82,10 +82,10 @@ void Walker::run()
}
// cause finished signal to be emitted
- QApplication::postEvent( this, new QCustomEvent( QEvent::User ) );
+ TQApplication::postEvent( this, new TQCustomEvent( TQEvent::User ) );
}
-void Walker::timerEvent( QTimerEvent *ev )
+void Walker::timerEvent( TQTimerEvent *ev )
{
if ( ev->timerId() != m_timerId )
return;
@@ -105,13 +105,13 @@ void Walker::timerEvent( QTimerEvent *ev )
delete result;
}
- if ( !QThread::running() && !result ) {
+ if ( !TQThread::running() && !result ) {
killTimer( m_timerId );
m_timerId = 0;
}
}
-void Walker::customEvent( QCustomEvent * )
+void Walker::customEvent( TQCustomEvent * )
{
emit finished();
}