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

Public Member Functions

 Impl () noexcept
 Construct a new Global Setting Station object.
 
auto GetSettings () -> QSettings
 
auto GetLogFilesSize () const -> QString
 
auto GetDataObjectsFilesSize () const -> QString
 
void ClearAllLogFiles () const
 
void ClearAllDataObjects () const
 
auto GetAppDir () const -> QString
 Get the App Dir object. More...
 
auto GetAppDataPath () const -> QString
 Get the App Data Path object. More...
 
auto GetLogDir () const -> QString
 Get the Log Dir object. More...
 

Private Member Functions

void init_app_secure_key ()
 

Private Attributes

QString working_path_ = QDir::currentPath()
 
QString app_data_path_
 Program Data Location. More...
 
QString app_config_path_
 
QString app_log_path_ = app_data_path_ + "/logs"
 Program Data Location.
 
QString app_data_objs_path_
 Object storage path. More...
 
QString app_config_target_path_
 take effect only in portable mode More...
 
bool portable_mode_ = false
 
QString app_portable_config_path_
 take effect only in portable mode More...
 

Member Function Documentation

◆ GetAppDataPath()

auto GpgFrontend::GlobalSettingStation::Impl::GetAppDataPath ( ) const -> QString
inline

Get the App Data Path object.

Returns
QString

References app_data_path_.

◆ GetAppDir()

auto GpgFrontend::GlobalSettingStation::Impl::GetAppDir ( ) const -> QString
inline

Get the App Dir object.

Returns
QString

Referenced by Impl().

◆ GetLogDir()

auto GpgFrontend::GlobalSettingStation::Impl::GetLogDir ( ) const -> QString
inline

Get the Log Dir object.

Returns
QString

References app_log_path_.

Member Data Documentation

◆ app_config_path_

QString GpgFrontend::GlobalSettingStation::Impl::app_config_path_
private
Initial value:
= QString{
QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)}

◆ app_config_target_path_

QString GpgFrontend::GlobalSettingStation::Impl::app_config_target_path_
private
Initial value:
=
app_config_path_ + "/config.ini"

take effect only in portable mode

◆ app_data_objs_path_

QString GpgFrontend::GlobalSettingStation::Impl::app_data_objs_path_
private
Initial value:
=
app_data_path_ + "/data_objs"
QString app_data_path_
Program Data Location.
Definition: GlobalSettingStation.cpp:130

Object storage path.

Referenced by Impl().

◆ app_data_path_

QString GpgFrontend::GlobalSettingStation::Impl::app_data_path_
private
Initial value:
= QString{QStandardPaths::writableLocation(
QStandardPaths::AppLocalDataLocation)}

Program Data Location.

Referenced by GetAppDataPath(), and Impl().

◆ app_portable_config_path_

QString GpgFrontend::GlobalSettingStation::Impl::app_portable_config_path_
private
Initial value:
=
working_path_ + "/config.ini"

take effect only in portable mode


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