kodi
TVOSNSUserDefaults.h
1 #pragma once
2 /*
3  * Copyright (C) 2015 Team MrMC
4  * https://github.com/MrMC
5  *
6  * SPDX-License-Identifier: GPL-2.0-or-later
7  * See LICENSES/README.md for more information.
8  */
9 
10 #include <string>
11 
13 {
14 public:
15  static bool Synchronize();
16 
17  static void GetDirectoryContents(const std::string& path, std::vector<std::string>& contents);
18  static bool GetKey(const std::string& key, std::string& value);
19  static bool GetKeyData(const std::string& key, void* lpBuf, size_t& uiBufSize);
20  static bool SetKey(const std::string& key, const std::string& value, bool synchronize);
21  static bool SetKeyData(const std::string& key,
22  const void* lpBuf,
23  size_t uiBufSize,
24  bool synchronize);
25  static bool DeleteKey(const std::string& key, bool synchronize);
26  static bool KeyExists(const std::string& key);
27 
28  static bool IsKeyFromPath(const std::string& key);
29  static bool GetKeyFromPath(const std::string& path, std::string& value);
30  static bool GetKeyDataFromPath(const std::string& path, void* lpBuf, size_t& uiBufSize);
31  static bool SetKeyFromPath(const std::string& path, const std::string& value, bool synchronize);
32  static bool SetKeyDataFromPath(const std::string& path,
33  const void* lpBuf,
34  size_t uiBufSize,
35  bool synchronize);
36  static bool DeleteKeyFromPath(const std::string& path, bool synchronize);
37  static bool KeyFromPathExists(const std::string& path);
38 };
Definition: TVOSNSUserDefaults.h:12