summaryrefslogtreecommitdiffstats
path: root/wifi/kcmwifi/vendorconfig.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /wifi/kcmwifi/vendorconfig.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'wifi/kcmwifi/vendorconfig.cpp')
-rw-r--r--wifi/kcmwifi/vendorconfig.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/wifi/kcmwifi/vendorconfig.cpp b/wifi/kcmwifi/vendorconfig.cpp
index 36460c4a..e415c276 100644
--- a/wifi/kcmwifi/vendorconfig.cpp
+++ b/wifi/kcmwifi/vendorconfig.cpp
@@ -17,12 +17,12 @@
Boston, MA 02110-1301, USA.
*/
-#include <qdir.h>
-#include <qstringlist.h>
-#include <qbuttongroup.h>
-#include <qradiobutton.h>
-#include <qcombobox.h>
-#include <qcheckbox.h>
+#include <tqdir.h>
+#include <tqstringlist.h>
+#include <tqbuttongroup.h>
+#include <tqradiobutton.h>
+#include <tqcombobox.h>
+#include <tqcheckbox.h>
#include <kdebug.h>
#include <klineedit.h>
@@ -54,19 +54,19 @@ VendorConfig::initSuSE_92plus ( )
/* configurations are located in /etc/sysconfig/network/ifcfg-wlan*
there can be more than one if there are multiple wireless interfaces */
- QDir filelist ( "/etc/sysconfig/network", "ifcfg-wlan*" );
- QStringList files = filelist.entryList ( );
+ TQDir filelist ( "/etc/sysconfig/network", "ifcfg-wlan*" );
+ TQStringList files = filelist.entryList ( );
if ( files.count() == 0 )
{
return;
}
- for ( QStringList::Iterator it = files.begin ( ); it != files.end ( ); ++it )
+ for ( TQStringList::Iterator it = files.begin ( ); it != files.end ( ); ++it )
{
if ( ( ( *it ).endsWith ( "~" ) ) == false )
{ // ignore backup files
- QFile configfile ( QString ( "/etc/sysconfig/network/%1" ).arg ( *it ) );
+ TQFile configfile ( TQString ( "/etc/sysconfig/network/%1" ).arg ( *it ) );
configfile.open ( IO_ReadOnly );
kdDebug ( ) << "Opened SuSE configuration file " << configfile.name ( ) << "\n";
@@ -82,12 +82,12 @@ VendorConfig::initSuSE_92plus ( )
WifiConfig *config = WifiConfig::instance ( );
IfConfig & ifconfig = config->m_ifConfig[KCMWifi::vendorBase + m_totalConfigs];
- QString buffer;
+ TQString buffer;
while ( configfile.readLine ( buffer, 255 ) != -1 )
{
// lines look like WIRELESS_ESSID='bla', so split it into WIRELESS_ESSID and bla
- QString var = buffer.section ( '=', 0, 0 );
- QString value = buffer.section ( '=', 1, 1 );
+ TQString var = buffer.section ( '=', 0, 0 );
+ TQString value = buffer.section ( '=', 1, 1 );
value = value.mid ( 1, value.length ( ) - 3 );
kdDebug ( ) << "Variable " << var << " contains " << value << ".\n";
// evaluate the meaningful lines
@@ -157,7 +157,7 @@ VendorConfig::initSuSE_92plus ( )
void
VendorConfig::initDebian ( )
{
- QFile configfile ( QString ( "/etc/network/interfaces" ) );
+ TQFile configfile ( TQString ( "/etc/network/interfaces" ) );
if ( !configfile.open ( IO_ReadOnly ) )
{
return;
@@ -176,12 +176,12 @@ is incremented _after_ successful setup of each given config. */
WifiConfig *config = WifiConfig::instance ( );
IfConfig & ifconfig = config->m_ifConfig[KCMWifi::vendorBase + m_totalConfigs];
- QString buffer;
+ TQString buffer;
while ( configfile.readLine ( buffer, 255 ) != -1 )
{
// lines look like wireless-defaultkey bla, so split it into wireless-defaultkey and bla
- QString var = buffer.section ( ' ', 0, 0 );
- QString value = buffer.section ( ' ', 1, 1 );
+ TQString var = buffer.section ( ' ', 0, 0 );
+ TQString value = buffer.section ( ' ', 1, 1 );
kdDebug ( ) << "Variable " << var << " contains " << value << ".\n";
// evaluate the meaningful lines
if ( var.startsWith ( "wireless", false ) )