phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp
changeset 60 1eef62f5c541
parent 50 377c906a8701
child 65 2a5d4ab426d3
equal deleted inserted replaced
53:22cc52eade9b 60:1eef62f5c541
   269     return enabled;
   269     return enabled;
   270 }
   270 }
   271 
   271 
   272 bool CpSettingsWrapper::isPhoneOffline() const
   272 bool CpSettingsWrapper::isPhoneOffline() const
   273 {
   273 {
   274     return QSystemDeviceInfo::OfflineProfile == m_deviceInfo->currentProfile();
   274     bool networkConnectionAllowed = readCenrepValue(KCRUidCoreApplicationUIs.iUid,
       
   275                                 KCoreAppUIsNetworkConnectionAllowed).toBool();
       
   276     // 0 = Offline Mode, 1 = Online Mode
       
   277     DPRINT << "networkConnectionAllowed: " << networkConnectionAllowed;
       
   278     return !networkConnectionAllowed;
   275 }
   279 }
   276 
   280 
   277 bool CpSettingsWrapper::isOngoingCall() const
   281 bool CpSettingsWrapper::isOngoingCall() const
   278 {
   282 {
   279     bool callOngoing(false);
   283     bool callOngoing(false);