Home
last modified time | relevance | path

Searched refs:PreferencesEnhanceImpl (Results 1 - 3 of 3) sorted by relevance

/foundation/distributeddatamgr/preferences/frameworks/native/include/
H A Dpreferences_enhance_impl.h33 class PreferencesEnhanceImpl : public PreferencesBase, public std::enable_shared_from_this<PreferencesEnhanceImpl> { class
35 static std::shared_ptr<PreferencesEnhanceImpl> GetPreferences(const Options &options) in GetPreferences()
37 return std::shared_ptr<PreferencesEnhanceImpl>(new PreferencesEnhanceImpl(options)); in GetPreferences()
39 virtual ~PreferencesEnhanceImpl();
61 explicit PreferencesEnhanceImpl(const Options &options);
62 static void NotifyPreferencesObserver(std::shared_ptr<PreferencesEnhanceImpl> pref, const std::string &key,
64 static void NotifyPreferencesObserverBatchKeys(std::shared_ptr<PreferencesEnhanceImpl> pref,
/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_enhance_impl.cpp38 PreferencesEnhanceImpl::PreferencesEnhanceImpl(const Options &options): PreferencesBase(options) in PreferencesEnhanceImpl() function in OHOS::NativePreferences::PreferencesEnhanceImpl
42 PreferencesEnhanceImpl::~PreferencesEnhanceImpl() in ~PreferencesEnhanceImpl()
48 int PreferencesEnhanceImpl::Init() in Init()
60 PreferencesValue PreferencesEnhanceImpl::Get(const std::string &key, const PreferencesValue &defValue) in Get()
68 LOG_ERROR("PreferencesEnhanceImpl:Get failed, db has been closed."); in Get()
74 LOG_ERROR("PreferencesEnhanceImpl:Get failed, get kernel data version failed."); in Get()
103 bool PreferencesEnhanceImpl::HasKey(const std::string &key) in HasKey()
110 LOG_ERROR("PreferencesEnhanceImpl in HasKey()
[all...]
H A Dpreferences_helper.cpp171 pref = PreferencesEnhanceImpl::GetPreferences(options); in GetPreferences()
172 errCode = std::static_pointer_cast<PreferencesEnhanceImpl>(pref)->Init(); in GetPreferences()
260 errCode = std::static_pointer_cast<PreferencesEnhanceImpl>(pref)->CloseDb(); in RemovePreferencesFromCache()

Completed in 2 milliseconds