GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
The SettingsObject class This class is used to store settings for the application securely. More...
#include <SettingsObject.h>
Public Member Functions | |
SettingsObject (std::string settings_name) | |
Construct a new Settings Object object. More... | |
SettingsObject (nlohmann::json _sub_json, bool) | |
Construct a new Settings Object object. More... | |
~SettingsObject () | |
Destroy the Settings Object object. More... | |
nlohmann::json & | Check (const std::string &key, const nlohmann::json &default_value) |
SettingsObject | Check (const std::string &key) |
Private Attributes | |
std::string | settings_name_ |
The SettingsObject class This class is used to store settings for the application securely.
|
explicit |
Construct a new Settings Object object.
settings_name | The name of the settings object |
References GpgFrontend::SingletonFunctionObject< DataObjectOperator >::GetInstance().
|
explicit |
Construct a new Settings Object object.
_sub_json |
GpgFrontend::UI::SettingsObject::~SettingsObject | ( | ) |
Destroy the Settings Object object.
References GpgFrontend::SingletonFunctionObject< DataObjectOperator >::GetInstance().
GpgFrontend::UI::SettingsObject GpgFrontend::UI::SettingsObject::Check | ( | const std::string & | key | ) |
key |
nlohmann::json & GpgFrontend::UI::SettingsObject::Check | ( | const std::string & | key, |
const nlohmann::json & | default_value | ||
) |
key | |
default_value |
Copyright (C) 2021 Saturneric
This file is part of GpgFrontend.
GpgFrontend is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
GpgFrontend is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with GpgFrontend. If not, see https://www.gnu.org/licenses/.
The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.
All the source code of GpgFrontend was modified and released by Saturnericeric@ starting on May 12, 2021. bktu s.com
SPDX-License-Identifier: GPL-3.0-or-later
Referenced by GpgFrontend::UI::KeyServerImportDialog::create_comboBox(), GpgFrontend::UI::InfoBoardWidget::SetInfoBoard(), GpgFrontend::UI::AppearanceTab::SetSettings(), GpgFrontend::UI::KeyserverTab::SetSettings(), GpgFrontend::UI::MainWindow::slot_open_settings_dialog(), GpgFrontend::UI::KeyServerImportDialog::SlotImport(), and GpgFrontend::UI::CommonUtils::SlotImportKeyFromKeyServer().