author | benmeyer <benmeyer> | 2002-10-17 18:35:56 (UTC) |
---|---|---|
committer | benmeyer <benmeyer> | 2002-10-17 18:35:56 (UTC) |
commit | 0af393f729c3c6fb31b6794d31daf1dba9ed6eb6 (patch) (side-by-side diff) | |
tree | 83bf6904aa174ff026170ac6380bb857a6807468 /noncore/net/networksetup/wlan/wlanimp.cpp | |
parent | 7a8d68c1dff37a5a50d1dfa84513ed1f7b7e2008 (diff) | |
download | opie-0af393f729c3c6fb31b6794d31daf1dba9ed6eb6.zip opie-0af393f729c3c6fb31b6794d31daf1dba9ed6eb6.tar.gz opie-0af393f729c3c6fb31b6794d31daf1dba9ed6eb6.tar.bz2 |
Profile changes
Diffstat (limited to 'noncore/net/networksetup/wlan/wlanimp.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/networksetup/wlan/wlanimp.cpp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/noncore/net/networksetup/wlan/wlanimp.cpp b/noncore/net/networksetup/wlan/wlanimp.cpp index 806643d..74eef5f 100644 --- a/noncore/net/networksetup/wlan/wlanimp.cpp +++ b/noncore/net/networksetup/wlan/wlanimp.cpp @@ -27,33 +27,33 @@ void WLANImp::readConfig() QString ssid = config.readEntry( "SSID", "any" ); if( ssid == "any" || ssid == "ANY" ){ - essNon->setChecked( TRUE ); + essNon->setChecked( true ); } else { - essSpecific->setChecked( TRUE ); + essSpecific->setChecked( true ); essSpecificLineEdit->setText( ssid ); } QString mode = config.readEntry( "Mode", "Managed" ); if( mode == "adhoc" ) { - network802->setChecked( TRUE ); + network802->setChecked( true ); } else { - networkInfrastructure->setChecked( TRUE ); + networkInfrastructure->setChecked( true ); } networkChannel->setValue( config.readNumEntry( "CHANNEL", 1 ) ); // config.readEntry( "RATE", "auto" ); - config.readEntry( "dot11PrivacyInvoked" ) == "true" ? wepEnabled->setChecked( TRUE ) : wepEnabled->setChecked( FALSE ); + config.readEntry( "dot11PrivacyInvoked" ) == "true" ? wepEnabled->setChecked( true ) : wepEnabled->setChecked( false ); config.readEntry( "AuthType", "opensystem" ); - config.readEntry( "PRIV_KEY128", "false" ) == "false" ? key40->setChecked( TRUE ) : key128->setChecked( TRUE ); + config.readEntry( "PRIV_KEY128", "false" ) == "false" ? key40->setChecked( true ) : key128->setChecked( true ); int defaultkey = config.readNumEntry( "dot11WEPDefaultKeyID", 0 ); switch( defaultkey ){ case 0: - keyRadio0->setChecked( TRUE ); + keyRadio0->setChecked( true ); break; case 1: - keyRadio1->setChecked( TRUE ); + keyRadio1->setChecked( true ); break; case 2: - keyRadio2->setChecked( TRUE ); + keyRadio2->setChecked( true ); break; case 3: - keyRadio3->setChecked( TRUE ); + keyRadio3->setChecked( true ); break; } @@ -98,5 +98,5 @@ bool WLANImp::writeConfig() config.writeEntry( "dot11WEPDefaultKey3", keyLineEdit3->text() ); return writeWirelessOpts( config ); -// return TRUE; +// return true; } @@ -121,12 +121,12 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) QFile prevFile(prev); if ( !prevFile.open( IO_ReadOnly ) ) - return FALSE; + return false; QString tmp = "/etc/pcmcia/wireless.opts-qpe-new"; QFile tmpFile(tmp); if ( !tmpFile.open( IO_WriteOnly ) ) - return FALSE; + return false; - bool retval = TRUE; + bool retval = true; QTextStream in( &prevFile ); @@ -136,6 +136,6 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) QString line; - bool found=FALSE; - bool done=FALSE; + bool found=false; + bool done=false; while ( !in.atEnd() ) { QString line = in.readLine(); @@ -145,5 +145,5 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) // skip existing entry for this scheme, and write our own. if ( wline == ";;" ) { - found = FALSE; + found = false; continue; } else { @@ -152,5 +152,5 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) } else { if ( wline.left(scheme.length()+7) == scheme + ",*,*,*)" ) { - found=TRUE; + found=true; continue; // skip this line } else if ( wline == "esac" || wline == "*,*,*,*)" ) { @@ -202,5 +202,5 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) } out << " ;;\n"; - done = TRUE; + done = true; } } @@ -222,5 +222,5 @@ bool WLANImp::writeWirelessOpts( Config &config, QString scheme ) if( system( "mv " + tmp + " " + prev ) ) - retval = FALSE; + retval = false; //#ifdef USE_SCHEMES // if ( retval ) |