GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
|
Public Types | |
enum | TaskRunnerType { kTaskRunnerType_Default , kTaskRunnerType_GPG , kTaskRunnerType_IO , kTaskRunnerType_Network , kTaskRunnerType_Module , kTaskRunnerType_External_Process } |
Public Member Functions | |
TaskRunnerGetter (int channel=SingletonFunctionObject::GetDefaultChannel()) | |
auto | GetTaskRunner (TaskRunnerType runner_type=kTaskRunnerType_Default) -> TaskRunnerPtr |
void | StopAllTeakRunner () |
Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< TaskRunnerGetter > | |
SingletonFunctionObject (const SingletonFunctionObject< TaskRunnerGetter > &)=delete | |
prohibit copy | |
SingletonFunctionObject (TaskRunnerGetter &&)=delete | |
Construct a new Singleton Function Object object. | |
SingletonFunctionObject (const TaskRunnerGetter &)=delete | |
Construct a new Singleton Function Object object. | |
auto | operator= (const SingletonFunctionObject< TaskRunnerGetter > &) -> SingletonFunctionObject &=delete |
prohibit copy More... | |
void | operator= (const TaskRunnerGetter &)=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 | |
std::map< TaskRunnerType, TaskRunnerPtr > | task_runners_ |
std::mutex | task_runners_map_lock_ |
Additional Inherited Members | |
Static Public Member Functions inherited from GpgFrontend::SingletonFunctionObject< TaskRunnerGetter > | |
static auto | GetInstance (int channel=GpgFrontend::kGpgFrontendDefaultChannel) -> TaskRunnerGetter & |
Get the Instance object. More... | |
static auto | CreateInstance (int channel, const std::function< ChannelObjectPtr(void)> &factory) -> TaskRunnerGetter & |
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< TaskRunnerGetter > | |
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. | |