summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/smpppdcs/detectornetstat.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kopete/plugins/smpppdcs/detectornetstat.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/plugins/smpppdcs/detectornetstat.cpp')
-rw-r--r--kopete/plugins/smpppdcs/detectornetstat.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kopete/plugins/smpppdcs/detectornetstat.cpp b/kopete/plugins/smpppdcs/detectornetstat.cpp
index cb9a393a..a08f2c4f 100644
--- a/kopete/plugins/smpppdcs/detectornetstat.cpp
+++ b/kopete/plugins/smpppdcs/detectornetstat.cpp
@@ -21,13 +21,13 @@
#include "detectornetstat.h"
DetectorNetstat::DetectorNetstat(IConnector* connector)
- : Detector(connector), m_buffer(TQString::null), m_process(NULL) {}
+ : Detector(connector), m_buffer(TQString()), m_process(NULL) {}
DetectorNetstat::~DetectorNetstat() {
delete m_process;
}
-void DetectorNetstat::checkStatus() const {
+void DetectorNetstat::checktqStatus() const {
kdDebug(14312) << k_funcinfo << endl;
if(m_process) {
@@ -37,7 +37,7 @@ void DetectorNetstat::checkStatus() const {
return;
}
- m_buffer = TQString::null;
+ m_buffer = TQString();
// Use KProcess to run netstat -r. We'll then parse the output of
// netstat -r in slotProcessStdout() to see if it mentions the
@@ -59,15 +59,15 @@ void DetectorNetstat::checkStatus() const {
void DetectorNetstat::slotProcessStdout(KProcess *, char *buffer, int buflen) {
// Look for a default gateway
kdDebug(14312) << k_funcinfo << endl;
- m_buffer += TQString::fromLatin1(buffer, buflen);
+ m_buffer += TQString::tqfromLatin1(buffer, buflen);
kdDebug(14312) << m_buffer << endl;
}
void DetectorNetstat::slotProcessExited(KProcess *process) {
kdDebug(14312) << k_funcinfo << m_buffer << endl;
if(process == m_process) {
- m_connector->setConnectedStatus(m_buffer.contains("default"));
- m_buffer = TQString::null;
+ m_connector->setConnectedtqStatus(m_buffer.tqcontains("default"));
+ m_buffer = TQString();
delete m_process;
m_process = 0L;
}