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

Classes

struct  Symbol
 

Public Types

using ExecCallback = std::function< void(int)>
 

Public Member Functions

 Impl (ModuleRawPtr m_ptr, ModuleIdentifier id, ModuleVersion version, ModuleMetaData meta_data)
 
 Impl (ModuleRawPtr m_ptr, QLibrary &module_library)
 
auto IsGood () const -> bool
 
auto Register () -> int
 
auto Active () -> int
 
auto Exec (const EventRefrernce &event) -> int
 
auto Deactive () -> int
 
auto UnRegister () -> int
 
auto GetChannel () -> int
 
auto GetDefaultChannel () -> int
 
auto GetTaskRunner () -> std::optional< TaskRunnerPtr >
 
auto ListenEvent (EventIdentifier event) -> bool
 
auto GetModuleIdentifier () const -> ModuleIdentifier
 
auto GetModuleVersion () const -> ModuleVersion
 
auto GetModuleSDKVersion () const -> QString
 
auto GetModuleQtEnvVersion () const -> QString
 
auto GetModuleMetaData () const -> ModuleMetaData
 
auto GetModulePath () const -> QString
 
auto GetModuleHash () const -> QString
 
void SetGPC (GlobalModuleContext *gpc)
 

Private Member Functions

auto get_gpc () -> GlobalModuleContext *
 

Private Attributes

GlobalModuleContextgpc_ {}
 
Modulem_ptr_
 
ModuleIdentifier identifier_
 
ModuleVersion version_
 
ModuleMetaData meta_data_
 
QString module_hash_
 
QString module_library_path_
 
QString gf_sdk_ver_
 
QString qt_env_ver_
 
QRegularExpression module_identifier_regex_exp_
 
QRegularExpression module_version_regex_exp_
 
bool good_
 
GFModuleAPIGetModuleGFSDKVersion get_sdk_ver_api_
 
GFModuleAPIGetModuleQtEnvVersion get_qt_ver_api_
 
GFModuleAPIGetModuleID get_id_api_
 
GFModuleAPIGetModuleVersion get_version_api_
 
GFModuleAPIGetModuleMetaData get_metadata_api_
 
GFModuleAPIRegisterModule register_api_
 
GFModuleAPIActivateModule activate_api_
 
GFModuleAPIExecuteModule execute_api_
 
GFModuleAPIDeactivateModule deactivate_api_
 
GFModuleAPIUnregisterModule unregister_api_
 
QList< Symbolmodule_required_symbols_
 

Friends

class GlobalModuleContext
 

Member Data Documentation

◆ module_identifier_regex_exp_

QRegularExpression GpgFrontend::Module::Module::Impl::module_identifier_regex_exp_
private
Initial value:
= QRegularExpression(
R"(^([A-Za-z]{1}[A-Za-z\d_]*\.)+[A-Za-z][A-Za-z\d_]*$)")

◆ module_required_symbols_

QList<Symbol> GpgFrontend::Module::Module::Impl::module_required_symbols_
private
Initial value:
= {
{"GFGetModuleGFSDKVersion", reinterpret_cast<void**>(&get_sdk_ver_api_)},
{"GFGetModuleQtEnvVersion", reinterpret_cast<void**>(&get_qt_ver_api_)},
{"GFGetModuleID", reinterpret_cast<void**>(&get_id_api_)},
{"GFGetModuleVersion", reinterpret_cast<void**>(&get_version_api_)},
{"GFGetModuleMetaData", reinterpret_cast<void**>(&get_metadata_api_)},
{"GFRegisterModule", reinterpret_cast<void**>(&register_api_)},
{"GFActiveModule", reinterpret_cast<void**>(&activate_api_)},
{"GFExecuteModule", reinterpret_cast<void**>(&execute_api_)},
{"GFDeactiveModule", reinterpret_cast<void**>(&deactivate_api_)},
{"GFUnregisterModule", reinterpret_cast<void**>(&unregister_api_)},
}

◆ module_version_regex_exp_

QRegularExpression GpgFrontend::Module::Module::Impl::module_version_regex_exp_
private
Initial value:
=
QRegularExpression(R"(^(\d+\.)?(\d+\.)?(\*|\d+)$)")

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