phonesettings/cpphonesettingsplugins/cptelephonyutils/src/cpplugincommon.cpp
changeset 64 6aaf0276100e
parent 56 5bcb308bd24d
child 65 2a5d4ab426d3
equal deleted inserted replaced
56:5bcb308bd24d 64:6aaf0276100e
   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);