phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp
changeset 60 1eef62f5c541
parent 50 377c906a8701
child 65 2a5d4ab426d3
--- a/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp	Fri Aug 06 13:16:44 2010 +0300
+++ b/phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp	Mon Aug 23 15:42:12 2010 +0300
@@ -271,7 +271,11 @@
 
 bool CpSettingsWrapper::isPhoneOffline() const
 {
-    return QSystemDeviceInfo::OfflineProfile == m_deviceInfo->currentProfile();
+    bool networkConnectionAllowed = readCenrepValue(KCRUidCoreApplicationUIs.iUid,
+                                KCoreAppUIsNetworkConnectionAllowed).toBool();
+    // 0 = Offline Mode, 1 = Online Mode
+    DPRINT << "networkConnectionAllowed: " << networkConnectionAllowed;
+    return !networkConnectionAllowed;
 }
 
 bool CpSettingsWrapper::isOngoingCall() const