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

Public Member Functions

 Impl (Task *parent, QString name)
 
 Impl (Task *parent, TaskRunnable runnable, QString name, DataObjectPtr data_object)
 
 Impl (Task *parent, TaskRunnable runnable, QString name, DataObjectPtr data_object, TaskCallback callback)
 
auto GetFullID () const -> QString
 
auto GetUUID () const -> QString
 
auto Run () -> int
 
void HoldOnLifeCycle (bool hold_on)
 Set the Finish After Run object. More...
 
void SetRTN (int rtn)
 
auto GetRTN () const
 

Private Member Functions

void init ()
 

Static Private Member Functions

static auto generate_uuid () -> QString
 

Private Attributes

Task *const parent_
 
const QString uuid_
 
const QString name_
 
TaskRunnable runnable_
 
TaskCallback callback_
 
int rtn_ = -99
 
QThread * callback_thread_ = nullptr
 
DataObjectPtr data_object_ = nullptr
 

Member Function Documentation

◆ generate_uuid()

static auto GpgFrontend::Thread::Task::Impl::generate_uuid ( ) -> QString
inlinestaticprivate
Returns
QString

◆ GetFullID()

auto GpgFrontend::Thread::Task::Impl::GetFullID ( ) const -> QString
inline
Returns
QString

Referenced by Run().

◆ GetRTN()

auto GpgFrontend::Thread::Task::Impl::GetRTN ( ) const
inline
Returns
auto

◆ GetUUID()

auto GpgFrontend::Thread::Task::Impl::GetUUID ( ) const -> QString
inline
Returns
QString

◆ HoldOnLifeCycle()

void GpgFrontend::Thread::Task::Impl::HoldOnLifeCycle ( bool  hold_on)
inline

Set the Finish After Run object.

Parameters
finish_after_run

◆ Run()

auto GpgFrontend::Thread::Task::Impl::Run ( ) -> int
inline
Returns
int

References GetFullID().

◆ SetRTN()

void GpgFrontend::Thread::Task::Impl::SetRTN ( int  rtn)
inline
Parameters
rtn

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