From d598a49a3e1cadea0d72be28d147d219686413e7 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 24 Jul 2013 11:31:17 -0500 Subject: Convert to TDE R14 API --- src/scanmonitor.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/scanmonitor.cpp') diff --git a/src/scanmonitor.cpp b/src/scanmonitor.cpp index b3d2f4a..91c66f7 100644 --- a/src/scanmonitor.cpp +++ b/src/scanmonitor.cpp @@ -27,9 +27,9 @@ #include #include -#include +#include -#include +#include #include "nmapoutputbuffer.h" #include "scanmonitor.h" @@ -40,7 +40,7 @@ // =========== ScanMonitor::ScanMonitor( ScanWidget* parent ) -: QThread( ), +: TQThread( ), m_buffer( NULL ), m_nmapBufferSize( 16384 ), m_parent( parent ) @@ -77,7 +77,7 @@ void ScanMonitor::readNmapOutput( const int pipeFD, const ScanMonitorEventType t if( bytesRead > 0 ) { m_buffer->length( bytesRead ); - QApplication::postEvent( m_parent, new ScanMonitorEvent( type, m_buffer )); + TQApplication::postEvent( m_parent, new ScanMonitorEvent( type, m_buffer )); m_buffer = NULL; continue; } @@ -87,10 +87,10 @@ void ScanMonitor::readNmapOutput( const int pipeFD, const ScanMonitorEventType t break; } - QString text = QString( i18n( "error reading nmap output from pipe: %2\n" )).arg( strerror( errno )); + TQString text = TQString( i18n( "error reading nmap output from pipe: %2\n" )).arg( strerror( errno )); strcpy( m_buffer->buffer( ), text.ascii( )); m_buffer->length( text.length( )); - QApplication::postEvent( m_parent, new ScanMonitorEvent( StderrType, m_buffer )); + TQApplication::postEvent( m_parent, new ScanMonitorEvent( StderrType, m_buffer )); m_buffer = NULL; break; } -- cgit v1.2.3