GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Singleton class for managing global settings in the application. More...
#include <GlobalSettingStation.h>
Classes | |
class | Impl |
Public Member Functions | |
GlobalSettingStation (int channel=SingletonFunctionObject::GetDefaultChannel()) noexcept | |
Construct a new Global Setting Station object. | |
~GlobalSettingStation () noexcept override | |
Destroy the Global Setting Station object. | |
auto | GetSettings () const -> QSettings |
Get the Settings object. More... | |
auto | GetAppDir () const -> QString |
Get the App Dir object. More... | |
auto | GetAppDataPath () const -> QString |
Gets the application data directory. More... | |
auto | GetLogDir () const -> QString |
Get the Log Dir object. More... | |
auto | GetModulesDir () const -> QString |
Get the Modules Dir object. More... | |
auto | GetLogFilesSize () const -> QString |
Get the Log Files Size object. More... | |
auto | GetDataObjectsFilesSize () const -> QString |
Get the Data Objects Files Size object. More... | |
void | ClearAllLogFiles () const |
clear all log files | |
void | ClearAllDataObjects () const |
clear all data objects | |
Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< GlobalSettingStation > | |
SingletonFunctionObject (const SingletonFunctionObject< GlobalSettingStation > &)=delete | |
prohibit copy | |
SingletonFunctionObject (GlobalSettingStation &&)=delete | |
Construct a new Singleton Function Object object. | |
SingletonFunctionObject (const GlobalSettingStation &)=delete | |
Construct a new Singleton Function Object object. | |
auto | operator= (const SingletonFunctionObject< GlobalSettingStation > &) -> SingletonFunctionObject &=delete |
prohibit copy More... | |
void | operator= (const GlobalSettingStation &)=delete |
auto | GetChannel () const -> int |
Get the Channel object. More... | |
Public Member Functions inherited from GpgFrontend::ChannelObject | |
ChannelObject () noexcept | |
Construct a new Default Channel Object object. | |
virtual | ~ChannelObject () noexcept |
Destroy the Channel Object object. | |
ChannelObject (int channel, QString type) | |
Construct a new Channel Object object. More... | |
auto | GetChannel () const -> int |
Get the Channel object. More... | |
void | SetChannel (int channel) |
Set the Channel object. More... | |
Private Attributes | |
SecureUniquePtr< Impl > | p_ |
Additional Inherited Members | |
Static Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< GlobalSettingStation > | |
static auto | GetInstance (int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> GlobalSettingStation & |
Get the Instance object. More... | |
static auto | CreateInstance (int channel, const std::function< ChannelObjectPtr(void)> &factory) -> GlobalSettingStation & |
Create a Instance object. More... | |
static void | ReleaseChannel (int channel) |
static auto | GetDefaultChannel () -> int |
Get the Default Channel object. More... | |
static auto | GetAllChannelId () -> std::vector< int > |
Get all the channel ids. More... | |
Static Public Member Functions inherited from GpgFrontend::ChannelObject | |
static auto | GetDefaultChannel () -> int |
Get the Default Channel object. More... | |
Protected Member Functions inherited from GpgFrontend::SingletonFunctionObject< GlobalSettingStation > | |
SingletonFunctionObject ()=default | |
Construct a new Singleton Function Object object. | |
SingletonFunctionObject (int channel) | |
Construct a new Singleton Function Object object. More... | |
virtual | ~SingletonFunctionObject ()=default |
Destroy the Singleton Function Object object. | |
Singleton class for managing global settings in the application.
This class handles reading and writing of global settings, as well as managing application directories and resource paths.
auto GpgFrontend::GlobalSettingStation::GetAppDataPath | ( | ) | const -> QString |
Gets the application data directory.
auto GpgFrontend::GlobalSettingStation::GetAppDir | ( | ) | const -> QString |
Get the App Dir object.
auto GpgFrontend::GlobalSettingStation::GetDataObjectsFilesSize | ( | ) | const -> QString |
Get the Data Objects Files Size object.
auto GpgFrontend::GlobalSettingStation::GetLogDir | ( | ) | const -> QString |
Get the Log Dir object.
auto GpgFrontend::GlobalSettingStation::GetLogFilesSize | ( | ) | const -> QString |
Get the Log Files Size object.
auto GpgFrontend::GlobalSettingStation::GetModulesDir | ( | ) | const -> QString |
Get the Modules Dir object.
auto GpgFrontend::GlobalSettingStation::GetSettings | ( | ) | const -> QSettings |