#include <PreferencesEditor.hpp>
Interface for editting Preferences. All changes to the editor are persisted to the disk only when comitted.
◆ clear()
virtual void ledger::core::api::PreferencesEditor::clear |
( |
| ) |
|
|
pure virtual |
◆ commit()
virtual void ledger::core::api::PreferencesEditor::commit |
( |
| ) |
|
|
pure virtual |
◆ putBoolean()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putBoolean |
( |
const std::string & |
key, |
|
|
bool |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ putData()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putData |
( |
const std::string & |
key, |
|
|
const std::vector< uint8_t > & |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ putInt()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putInt |
( |
const std::string & |
key, |
|
|
int32_t |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ putLong()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putLong |
( |
const std::string & |
key, |
|
|
int64_t |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ putString()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putString |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ putStringArray()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::putStringArray |
( |
const std::string & |
key, |
|
|
const std::vector< std::string > & |
value |
|
) |
| |
|
pure virtual |
Sets the value to the given key in the Preferences.
- Parameters
-
key | The data key. |
value | The value to store |
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
◆ remove()
virtual std::shared_ptr<PreferencesEditor> ledger::core::api::PreferencesEditor::remove |
( |
const std::string & |
key | ) |
|
|
pure virtual |
Removes the data associated with the given key.
- Parameters
-
- Returns
- The reference of self in order to chain the call to the editor.
Implemented in ledger::core::PreferencesEditor.
The documentation for this class was generated from the following file: