diff options
Diffstat (limited to 'wifi/networkscanning.cpp')
-rw-r--r-- | wifi/networkscanning.cpp | 18 |
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 |