From 47c8a359c5276062c4bc17f0e82410f29081b502 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:48:06 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- wifi/kcmwifi/vendorconfig.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'wifi/kcmwifi/vendorconfig.cpp') 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 -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include #include @@ -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 ) ) -- cgit v1.2.1