diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 937b2991d8e78166eea904c80ad04d34607017a4 (patch) | |
tree | 2accb8161eab09df5d7a5484ea9ea080ad123168 /wifi/interface_wireless_wirelessextensions.cpp | |
parent | dba26cb985af370c33d1767037851705cc561726 (diff) | |
download | tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.tar.gz tdenetwork-937b2991d8e78166eea904c80ad04d34607017a4.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/interface_wireless_wirelessextensions.cpp')
-rw-r--r-- | wifi/interface_wireless_wirelessextensions.cpp | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/wifi/interface_wireless_wirelessextensions.cpp b/wifi/interface_wireless_wirelessextensions.cpp index 22fa96ae..aad56fa6 100644 --- a/wifi/interface_wireless_wirelessextensions.cpp +++ b/wifi/interface_wireless_wirelessextensions.cpp @@ -313,7 +313,7 @@ TQStringList Interface_wireless_wirelessextensions::available_wifi_devices() TQString device; while (!procnetdev.atEnd()) { procnetdev.readLine (device, 9999); - int pos = device.tqfind (':'); + int pos = device.find (':'); if (pos == -1) continue; device = device.left(pos).stripWhiteSpace(); @@ -353,7 +353,7 @@ bool Interface_wireless_wirelessextensions::autodetect_device() wireless_info info; int result = get_info (socket, device, info); if ((result != -ENODEV) && (result != -ENOTSUP) && - (!ignoreInterfaces || ignoreInterfaces->tqfindIndex(device)==-1)) + (!ignoreInterfaces || ignoreInterfaces->findIndex(device)==-1)) { setActiveDevice(device); } @@ -564,29 +564,29 @@ Interface_wireless_wirelessextensions::parseScanData ( KProcIO * iwlist ) while ( iwlist->readln ( data, true ) >= 0 ) { kdDebug ( ) << "iwlist: " << data << "\n"; - if ( data.tqcontains ( "does not support scanning" ) ) + if ( data.contains ( "does not support scanning" ) ) KMessageBox::sorry ( 0, i18n ( "Your card does not support scanning. The results window will not contain any results." ), i18n ( "Scanning not possible" ) ); - if ( data.tqcontains ( "Scan completed" ) ) + if ( data.contains ( "Scan completed" ) ) cellcount = 0; // at the very beginning of a scan - if ( data.tqcontains ( "Cell" ) ) { + if ( data.contains ( "Cell" ) ) { cellcount++; // new cell discovered networks->setNumRows ( networks->numRows() +1 ); ignoreRemainingBits = false; } - if ( data.tqcontains ( "ESSID:" ) ) + if ( data.contains ( "ESSID:" ) ) { - TQString ssid = data.mid ( data.tqfind ( "\"" ) + 1, data.length ( ) - data.tqfind ( "\"" ) - 2 ); + TQString ssid = data.mid ( data.find ( "\"" ) + 1, data.length ( ) - data.find ( "\"" ) - 2 ); if ((ssid=="") || (ssid==" ")) ssid = "(hidden cell)"; networks->setText ( cellcount - 1, 0, ssid ); } - if ( data.tqcontains ( "Mode:" ) ) + if ( data.contains ( "Mode:" ) ) { - if ( data.tqcontains ( "Master" ) ) + if ( data.contains ( "Master" ) ) networks->setText ( cellcount - 1, 1, TQString ( i18n ( "Managed" ) ) ); - if ( data.tqcontains ( "Ad-Hoc" ) ) + if ( data.contains ( "Ad-Hoc" ) ) networks->setText ( cellcount - 1, 1, TQString ( i18n ( "Ad-Hoc" ) ) ); // if could be that this cell belongs to an SSID already discovered, or that there are more than one // hidden cells, which doesn't give any new information. So, we first search for duplicates and delete @@ -605,31 +605,31 @@ Interface_wireless_wirelessextensions::parseScanData ( KProcIO * iwlist ) } } } - if ( !ignoreRemainingBits && data.tqcontains ( "Encryption key:" ) ) + if ( !ignoreRemainingBits && data.contains ( "Encryption key:" ) ) { - if ( data.tqcontains ( "off" ) ) + if ( data.contains ( "off" ) ) networks->setText ( cellcount - 1, 3, TQString ( "off" ) ); else networks->setText ( cellcount - 1, 3, TQString ( "on" ) ); } - if ( !ignoreRemainingBits && data.tqcontains ( "Quality:" ) ) + if ( !ignoreRemainingBits && data.contains ( "Quality:" ) ) { - TQString quality = data.mid ( data.tqfind ( ":" ) + 1, data.tqfind ( "/" ) - data.tqfind ( ":" ) - 1 ); + TQString quality = data.mid ( data.find ( ":" ) + 1, data.find ( "/" ) - data.find ( ":" ) - 1 ); networks->setText ( cellcount - 1, 2, quality ); } - if ( !ignoreRemainingBits && data.tqcontains ( "Quality=" ) ) + if ( !ignoreRemainingBits && data.contains ( "Quality=" ) ) { - TQString quality = data.mid ( data.tqfind ( "=" ) + 1, data.tqfind ( "/" ) - data.tqfind ( "=" ) - 1 ); + TQString quality = data.mid ( data.find ( "=" ) + 1, data.find ( "/" ) - data.find ( "=" ) - 1 ); networks->setText ( cellcount - 1, 2, quality ); } - if ( !ignoreRemainingBits && data.tqcontains ( "wpa_ie" ) ) + if ( !ignoreRemainingBits && data.contains ( "wpa_ie" ) ) { networks->setText ( cellcount - 1, 3, TQString ( "WPA" ) ); } - if ( !ignoreRemainingBits && data.tqcontains ( "rsn_ie" ) ) + if ( !ignoreRemainingBits && data.contains ( "rsn_ie" ) ) { networks->setText ( cellcount - 1, 3, TQString ( "WPA2" ) ); } |