connectionmonitoring/indicatorobserver/src/indicatorobserver.cpp
changeset 30 8dde790cab74
parent 18 fcbbe021d614
child 32 5c4486441ae6
--- a/connectionmonitoring/indicatorobserver/src/indicatorobserver.cpp	Thu May 13 23:17:48 2010 +0300
+++ b/connectionmonitoring/indicatorobserver/src/indicatorobserver.cpp	Fri May 14 10:52:16 2010 +0300
@@ -80,11 +80,8 @@
         KWlanOnOff);
     
     //Read current status of WLAN radio
-    //mWlanEnabled = mSettingsManager->readItemValue(wlanKey).toInt() ? true : false;
-    mWlanEnabled = true; 
-    //TODO: Replace above code with commented code when WlanOnOff implementation is in release.
-    //TODO: Remeber to add check for read failure(call error() method from settings manager).
-    
+    mWlanEnabled = mSettingsManager->readItemValue(wlanKey).toInt() ? true : false;
+
     mSettingsManager->startMonitoring(wlanKey);
 
     initializeIndicators();
@@ -147,10 +144,7 @@
     Q_UNUSED(key);
     
     // Inform about WLAN ON/OFF status change
-    Q_UNUSED(value); //TODO: to be removed with final implementation. To keep compiler satisfied.
-    //    mWlanEnabled = value.toInt() ? true : false;
-    
-    mWlanEnabled = true; //TODO: Replace with above code when WlanOnOff implementation is in release
+    mWlanEnabled = value.toInt() ? true : false;
     
     if (mWlanEnabled == false) {    
         deactivateWlanIndicatorPlugin();