diff --git a/services/dtbschedmgr/include/switch_status_dependency.h b/services/dtbschedmgr/include/switch_status_dependency.h index decf922b..0305e60f 100644 --- a/services/dtbschedmgr/include/switch_status_dependency.h +++ b/services/dtbschedmgr/include/switch_status_dependency.h @@ -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 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 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