mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
privacy mode disable switch
Signed-off-by: dengxiaoyu <dengxiaoyu6@huawei.com>
This commit is contained in:
parent
af9f9a286e
commit
d10e9ebc4f
@ -30,12 +30,6 @@ public:
|
||||
static SwitchStatusDependency &GetInstance();
|
||||
bool IsContinueSwitchOn();
|
||||
|
||||
private:
|
||||
std::string GetSwitchStatus(const std::string &key, const std::string &defaultValue);
|
||||
std::shared_ptr<DataShare::DataShareHelper> GetDataShareHelper();
|
||||
std::mutex dataShareMutex_;
|
||||
const std::string SETTINGS_DATA_URI_PREFIX =
|
||||
"datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA?Proxy=true";
|
||||
const std::string SETTINGS_USER_SECURE_URI =
|
||||
"datashare:///com.ohos.settingsdata/entry/settingsdata/USER_SETTINGSDATA_SECURE";
|
||||
const std::string SETTINGS_DATA_FIELD_KEY = "KEYWORD";
|
||||
@ -43,6 +37,13 @@ private:
|
||||
const std::string CONTINUE_SWITCH_STATUS_KEY = "Continue_Switch_Status";
|
||||
const std::string CONTINUE_SWITCH_OFF = "0";
|
||||
const std::string CONTINUE_SWITCH_ON = "1";
|
||||
|
||||
private:
|
||||
std::string GetSwitchStatus(const std::string &key, const std::string &defaultValue);
|
||||
std::shared_ptr<DataShare::DataShareHelper> GetDataShareHelper();
|
||||
std::mutex dataShareMutex_;
|
||||
const std::string SETTINGS_DATA_URI_PREFIX =
|
||||
"datashare:///com.ohos.settingsdata/entry/settingsdata/SETTINGSDATA?Proxy=true";
|
||||
std::string switchStatus_;
|
||||
};
|
||||
} // namespace DistributedSchedule
|
||||
|
Loading…
Reference in New Issue
Block a user