ledger-core
Preferences.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from preferences.djinni
3 
4 #ifndef DJINNI_GENERATED_PREFERENCES_HPP
5 #define DJINNI_GENERATED_PREFERENCES_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #include <string>
10 #include <vector>
11 #ifndef LIBCORE_EXPORT
12  #if defined(_MSC_VER)
13  #include <libcore_export.h>
14  #else
15  #define LIBCORE_EXPORT
16  #endif
17 #endif
18 
19 namespace ledger { namespace core { namespace api {
20 
21 class PreferencesEditor;
22 
29 class LIBCORE_EXPORT Preferences {
30 public:
31  virtual ~Preferences() {}
32 
37  virtual std::string getString(const std::string & key, const std::string & fallbackValue) = 0;
38 
43  virtual int32_t getInt(const std::string & key, int32_t fallbackValue) = 0;
44 
49  virtual int64_t getLong(const std::string & key, int64_t fallbackValue) = 0;
50 
55  virtual bool getBoolean(const std::string & key, bool fallbackValue) = 0;
56 
61  virtual std::vector<std::string> getStringArray(const std::string & key, const std::vector<std::string> & fallbackValue) = 0;
62 
67  virtual std::vector<uint8_t> getData(const std::string & key, const std::vector<uint8_t> & fallbackValue) = 0;
68 
73  virtual bool contains(const std::string & key) = 0;
74 
79  virtual std::shared_ptr<PreferencesEditor> edit() = 0;
80 };
81 
82 } } } // namespace ledger::core::api
83 #endif //DJINNI_GENERATED_PREFERENCES_HPP
Definition: Account.cpp:8
Definition: Preferences.hpp:29