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 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
 
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)
 

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)
Parameters
task

◆ PostScheduleTask()

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

◆ PostTask() [1/2]

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

◆ PostTask() [2/2]

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

◆ RegisterTask()

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

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