equal
deleted
inserted
replaced
112 bool enabled = readCenrepValue(KCRUidPhoneSettings.iUid, KPSetCallWaiting).toBool(); |
112 bool enabled = readCenrepValue(KCRUidPhoneSettings.iUid, KPSetCallWaiting).toBool(); |
113 DPRINT << "enabled: " << enabled; |
113 DPRINT << "enabled: " << enabled; |
114 return enabled; |
114 return enabled; |
115 } |
115 } |
116 |
116 |
117 bool PsUiSettingsWrapper::isPhoneOffline() const |
117 |
118 { |
|
119 bool offLinesupport(false); |
|
120 if (XQSysInfo::isSupported(KFeatureIdOfflineMode)) { |
|
121 offLinesupport = !readCenrepValue( |
|
122 KCRUidCoreApplicationUIs.iUid, |
|
123 KCoreAppUIsNetworkConnectionAllowed).toBool(); |
|
124 } |
|
125 return offLinesupport; |
|
126 } |
|
127 |
118 |
128 QVariant PsUiSettingsWrapper::readCenrepValue( |
119 QVariant PsUiSettingsWrapper::readCenrepValue( |
129 const long int uid, const unsigned long int key) const |
120 const long int uid, const unsigned long int key) const |
130 { |
121 { |
131 XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, uid, key); |
122 XQSettingsKey settingsKey(XQSettingsKey::TargetCentralRepository, uid, key); |