equal
deleted
inserted
replaced
78 XQSettingsKey::TargetCentralRepository, |
78 XQSettingsKey::TargetCentralRepository, |
79 KCRUidWlanDeviceSettingsRegistryId.iUid, |
79 KCRUidWlanDeviceSettingsRegistryId.iUid, |
80 KWlanOnOff); |
80 KWlanOnOff); |
81 |
81 |
82 //Read current status of WLAN radio |
82 //Read current status of WLAN radio |
83 //mWlanEnabled = mSettingsManager->readItemValue(wlanKey).toInt() ? true : false; |
83 mWlanEnabled = mSettingsManager->readItemValue(wlanKey).toInt() ? true : false; |
84 mWlanEnabled = true; |
84 |
85 //TODO: Replace above code with commented code when WlanOnOff implementation is in release. |
|
86 //TODO: Remeber to add check for read failure(call error() method from settings manager). |
|
87 |
|
88 mSettingsManager->startMonitoring(wlanKey); |
85 mSettingsManager->startMonitoring(wlanKey); |
89 |
86 |
90 initializeIndicators(); |
87 initializeIndicators(); |
91 |
88 |
92 OstTrace0(TRACE_FLOW, INDICATOROBSERVER_CONSTRUCTOR_EXIT, "<--"); |
89 OstTrace0(TRACE_FLOW, INDICATOROBSERVER_CONSTRUCTOR_EXIT, "<--"); |
145 |
142 |
146 // The key parameter is not used, since only WLAN ON/OFF setting is connected to this slot |
143 // The key parameter is not used, since only WLAN ON/OFF setting is connected to this slot |
147 Q_UNUSED(key); |
144 Q_UNUSED(key); |
148 |
145 |
149 // Inform about WLAN ON/OFF status change |
146 // Inform about WLAN ON/OFF status change |
150 Q_UNUSED(value); //TODO: to be removed with final implementation. To keep compiler satisfied. |
147 mWlanEnabled = value.toInt() ? true : false; |
151 // mWlanEnabled = value.toInt() ? true : false; |
|
152 |
|
153 mWlanEnabled = true; //TODO: Replace with above code when WlanOnOff implementation is in release |
|
154 |
148 |
155 if (mWlanEnabled == false) { |
149 if (mWlanEnabled == false) { |
156 deactivateWlanIndicatorPlugin(); |
150 deactivateWlanIndicatorPlugin(); |
157 } else { |
151 } else { |
158 updateWlanIndicator(); |
152 updateWlanIndicator(); |