GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontend::DataObjectOperator Class Reference
Inheritance diagram for GpgFrontend::DataObjectOperator:
Inheritance graph
Collaboration diagram for GpgFrontend::DataObjectOperator:
Collaboration graph

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

GlobalSettingStationglobal_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.
 

Constructor & Destructor Documentation

◆ DataObjectOperator()

GpgFrontend::DataObjectOperator::DataObjectOperator ( int  channel = SingletonFunctionObject::GetDefaultChannel())
explicit

Member Data Documentation

◆ app_data_objs_path_

QString GpgFrontend::DataObjectOperator::app_data_objs_path_
private
Initial value:
=
GlobalSettingStation & global_setting_station_
GlobalSettingStation.
Definition: DataObjectOperator.h:62
auto GetAppDataPath() const -> QString
Gets the application data directory.
Definition: GlobalSettingStation.cpp:169

◆ app_secure_key_path_

QString GpgFrontend::DataObjectOperator::app_secure_key_path_
private
Initial value:
=
"/app.key"
QString app_secure_path_
Where sensitive information is stored.
Definition: DataObjectOperator.h:64

Where the key of data object is stored.

Referenced by DataObjectOperator(), and init_app_secure_key().

◆ app_secure_path_

QString GpgFrontend::DataObjectOperator::app_secure_path_
private
Initial value:

Where sensitive information is stored.

Referenced by DataObjectOperator().

◆ global_setting_station_

GlobalSettingStation& GpgFrontend::DataObjectOperator::global_setting_station_
private
Initial value:
=
static auto GetInstance(int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> GlobalSettingStation &
Get the Instance object.
Definition: GpgFunctionObject.h:80

GlobalSettingStation.


The documentation for this class was generated from the following files: