GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Public Member Functions | |
DataObjectOperator (int channel=SingletonFunctionObject::GetDefaultChannel()) | |
DataObjectOperator constructor. More... | |
auto | SaveDataObj (const QString &_key, const QJsonDocument &value) -> QString |
auto | GetDataObject (const QString &_key) -> std::optional< QJsonDocument > |
auto | GetDataObjectByRef (const QString &_ref) -> std::optional< QJsonDocument > |
Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< DataObjectOperator > | |
SingletonFunctionObject (const SingletonFunctionObject< DataObjectOperator > &)=delete | |
prohibit copy | |
SingletonFunctionObject (DataObjectOperator &&)=delete | |
Construct a new Singleton Function Object object. | |
SingletonFunctionObject (const DataObjectOperator &)=delete | |
Construct a new Singleton Function Object object. | |
auto | operator= (const SingletonFunctionObject< DataObjectOperator > &) -> SingletonFunctionObject &=delete |
prohibit copy More... | |
void | operator= (const DataObjectOperator &)=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 Member Functions | |
void | init_app_secure_key () |
init the secure key of application data object | |
Private Attributes | |
GlobalSettingStation & | global_setting_station_ |
GlobalSettingStation. More... | |
QString | app_secure_path_ |
Where sensitive information is stored. More... | |
QString | app_secure_key_path_ |
Where the key of data object is stored. More... | |
QString | app_data_objs_path_ |
QByteArray | hash_key_ |
Hash key. | |
Additional Inherited Members | |
Static Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< DataObjectOperator > | |
static auto | GetInstance (int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> DataObjectOperator & |
Get the Instance object. More... | |
static auto | CreateInstance (int channel, const std::function< ChannelObjectPtr(void)> &factory) -> DataObjectOperator & |
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< DataObjectOperator > | |
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. | |
|
explicit |
DataObjectOperator constructor.
channel | channel |
References app_secure_key_path_, app_secure_path_, hash_key_, init_app_secure_key(), and GpgFrontend::ReadFile().
|
private |
|
private |
Where the key of data object is stored.
Referenced by DataObjectOperator(), and init_app_secure_key().
|
private |
Where sensitive information is stored.
Referenced by DataObjectOperator().
|
private |