summaryrefslogtreecommitdiffstats
path: root/src/scanmonitor.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 11:31:17 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-07-24 11:31:17 -0500
commitd598a49a3e1cadea0d72be28d147d219686413e7 (patch)
tree3111c0383d0b514f59aaeef0a2f656acc595fd8a /src/scanmonitor.cpp
parent56ffa61b35fc088a0e7e2aa885b9ffed82c8d8be (diff)
downloadknmap-d598a49a3e1cadea0d72be28d147d219686413e7.tar.gz
knmap-d598a49a3e1cadea0d72be28d147d219686413e7.zip
Convert to TDE R14 API
Diffstat (limited to 'src/scanmonitor.cpp')
-rw-r--r--src/scanmonitor.cpp12
1 files changed, 6 insertions, 6 deletions
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 <sys/select.h>
#include <sys/time.h>
-#include <qapplication.h>
+#include <ntqapplication.h>
-#include <klocale.h>
+#include <tdelocale.h>
#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;
}