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

Classes

class  Impl
 

Public Slots

void PostTask (Task *task)
 
void PostTask (const QString &, const Task::TaskRunnable &, const Task::TaskCallback &, DataObjectPtr)
 
auto RegisterTask (const QString &, const Task::TaskRunnable &, const Task::TaskCallback &, DataObjectPtr) -> Task::TaskHandler
 
void PostConcurrentTask (Task *task)
 
void PostScheduleTask (Task *task, size_t seconds)
 

Public Member Functions

 TaskRunner ()
 Construct a new Task Runner object.
 
 ~TaskRunner () override
 Destroy the Task Runner object.
 
void Start ()
 
void Stop ()
 
auto GetThread () -> QThread *
 Get the Thread object. More...
 
auto IsRunning () -> bool
 

Private Attributes

SecureUniquePtr< Implp_
 

Member Function Documentation

◆ GetThread()

auto GpgFrontend::Thread::TaskRunner::GetThread ( ) -> QThread*

Get the Thread object.

Returns
QThread*

◆ IsRunning()

auto GpgFrontend::Thread::TaskRunner::IsRunning ( ) -> bool
Returns
true
false

◆ PostConcurrentTask

void GpgFrontend::Thread::TaskRunner::PostConcurrentTask ( Task task)
slot
Parameters
task

◆ PostScheduleTask

void GpgFrontend::Thread::TaskRunner::PostScheduleTask ( Task task,
size_t  seconds 
)
slot
Parameters
task
seconds

◆ PostTask [1/2]

void GpgFrontend::Thread::TaskRunner::PostTask ( const QString &  name,
const Task::TaskRunnable &  runner,
const Task::TaskCallback &  cb,
DataObjectPtr  params 
)
slot
Parameters
runner
cb

◆ PostTask [2/2]

void GpgFrontend::Thread::TaskRunner::PostTask ( Task task)
slot
Parameters
task

◆ RegisterTask

auto GpgFrontend::Thread::TaskRunner::RegisterTask ( const QString &  name,
const Task::TaskRunnable &  runnable,
const Task::TaskCallback &  cb,
DataObjectPtr  p_pbj 
) -> Task::TaskHandler
slot
Returns
std::tuple<QPointer<Task>, TaskTrigger>

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