ledger-core
PreferencesEditor.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from preferences.djinni
3 
4 #ifndef DJINNI_GENERATED_PREFERENCESEDITOR_HPP
5 #define DJINNI_GENERATED_PREFERENCESEDITOR_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 
22 class LIBCORE_EXPORT PreferencesEditor {
23 public:
24  virtual ~PreferencesEditor() {}
25 
32  virtual std::shared_ptr<PreferencesEditor> putString(const std::string & key, const std::string & value) = 0;
33 
40  virtual std::shared_ptr<PreferencesEditor> putInt(const std::string & key, int32_t value) = 0;
41 
48  virtual std::shared_ptr<PreferencesEditor> putLong(const std::string & key, int64_t value) = 0;
49 
56  virtual std::shared_ptr<PreferencesEditor> putBoolean(const std::string & key, bool value) = 0;
57 
64  virtual std::shared_ptr<PreferencesEditor> putStringArray(const std::string & key, const std::vector<std::string> & value) = 0;
65 
72  virtual std::shared_ptr<PreferencesEditor> putData(const std::string & key, const std::vector<uint8_t> & value) = 0;
73 
79  virtual std::shared_ptr<PreferencesEditor> remove(const std::string & key) = 0;
80 
82  virtual void commit() = 0;
83 
85  virtual void clear() = 0;
86 };
87 
88 } } } // namespace ledger::core::api
89 #endif //DJINNI_GENERATED_PREFERENCESEDITOR_HPP
Definition: PreferencesEditor.hpp:22
Definition: Account.cpp:8