summaryrefslogtreecommitdiffstats
path: root/wifi/networkscanning.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 /wifi/networkscanning.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 'wifi/networkscanning.cpp')
-rw-r--r--wifi/networkscanning.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/wifi/networkscanning.cpp b/wifi/networkscanning.cpp
index 7e2a0e12..f8cc710a 100644
--- a/wifi/networkscanning.cpp
+++ b/wifi/networkscanning.cpp
@@ -32,7 +32,7 @@
#include "networkscanning.h"
#include "interface_wireless.h"
-NetworkScanning::NetworkScanning (Interface_wireless * dev, TQWidget * parent, const char * name ) : TQWidget ( parent, name ) {
+NetworkScanning::NetworkScanning (Interface_wireless * dev, TQWidget * tqparent, const char * name ) : TQWidget ( tqparent, name ) {
device = dev;
networkScan();
}
@@ -115,30 +115,30 @@ NetworkScanning::switchToNetwork()
TQString cmdline;
- KTempFile* tempfile = new KTempFile( TQString::null, TQString::null, 0700 );
+ KTempFile* tempfile = new KTempFile( TQString(), TQString(), 0700 );
TQString tempfilename = tempfile->name();
cmdline = (TQString)"ifconfig %1 down\n";
- cmdline = cmdline.arg( device->get_interface_name() );
+ cmdline = cmdline.tqarg( device->get_interface_name() );
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );
cmdline = (TQString)"iwconfig %1 essid %2 mode %3 enc %4\n";
- cmdline = cmdline.arg( device->get_interface_name() );
- cmdline = cmdline.arg( KProcess::quote( networks->text( networks->currentRow(), 0 ) ) );
+ cmdline = cmdline.tqarg( device->get_interface_name() );
+ cmdline = cmdline.tqarg( KProcess::quote( networks->text( networks->currentRow(), 0 ) ) );
TQString modetemp;
if (networks->text( networks->currentRow(), 1 ) == i18n("Managed") ) modetemp = "Managed"; else modetemp = "Ad-Hoc";
- cmdline = cmdline.arg( modetemp );
+ cmdline = cmdline.tqarg( modetemp );
if ( encryption != NONE ) {
- cmdline = cmdline.arg( (encryption == VALID_STRING ? "s:" : "" ) + KProcess::quote( networks->text( networks->currentRow(), 3 ) ) );
+ cmdline = cmdline.tqarg( (encryption == VALID_STRING ? "s:" : "" ) + KProcess::quote( networks->text( networks->currentRow(), 3 ) ) );
} else {
- cmdline = cmdline.arg("off");
+ cmdline = cmdline.tqarg("off");
}
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );
cmdline = (TQString)"ifconfig %1 up\n";
- cmdline = cmdline.arg( device->get_interface_name() );
+ cmdline = cmdline.tqarg( device->get_interface_name() );
write( tempfile->handle(), cmdline.ascii(), strlen( cmdline.ascii() ) );
delete tempfile; // autoDeletion off, so the file remains on disk