SettingsObject.h
#ifndef GPGFRONTEND_SETTINGSOBJECT_H
#define GPGFRONTEND_SETTINGSOBJECT_H
#include <utility>
#include "core/function/DataObjectOperator.h"
namespace GpgFrontend::UI {
class SettingsObject : public nlohmann::json {
public:
explicit SettingsObject(std::string settings_name);
explicit SettingsObject(nlohmann::json _sub_json, bool);
~SettingsObject();
nlohmann::json& Check(const std::string& key,
const nlohmann::json& default_value);
SettingsObject Check(const std::string& key);
private:
std::string settings_name_;
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_SETTINGSOBJECT_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::SingletonFunctionObject< DataObjectOperator >::GetInstance
static DataObjectOperator & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:170
GpgFrontend::UI::SettingsObject::~SettingsObject
~SettingsObject()
Destroy the Settings Object object.
Definition: SettingsObject.cpp:100
GpgFrontend::UI::SettingsObject::Check
nlohmann::json & Check(const std::string &key, const nlohmann::json &default_value)
Definition: SettingsObject.cpp:31
GpgFrontend::UI::SettingsObject::SettingsObject
SettingsObject(std::string settings_name)
Construct a new Settings Object object.
Definition: SettingsObject.cpp:76
GpgFrontend::UI::SettingsObject
The SettingsObject class This class is used to store settings for the application securely.
Definition: SettingsObject.h:43