From 5f5ee2367157176ed223b86343eb0a9e4022e020 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:52:55 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeutils@1157653 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- ksim/monitors/snmp/monitor.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'ksim/monitors/snmp/monitor.cpp') 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 -#include +#include +#include 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( 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(); -- cgit v1.2.1