|
using | TaskRunnable = std::function< int(DataObjectPtr)> |
|
using | TaskCallback = std::function< void(int, DataObjectPtr)> |
|
|
void | SafelyRun () |
| shouldn't be overwrite by subclass
|
|
|
void | SignalRun () |
|
void | SignalTaskShouldEnd (int) |
|
void | SignalTaskEnd () |
|
|
| Task (QString name) |
| Construct a new Task object.
|
|
| Task (TaskRunnable runnable, QString name, DataObjectPtr data_object=nullptr) |
| Construct a new Task object. More...
|
|
| Task (TaskRunnable runnable, QString name, DataObjectPtr data, TaskCallback callback) |
| Construct a new Task object. More...
|
|
| ~Task () override |
| Destroy the Task object.
|
|
auto | GetUUID () const -> QString |
|
auto | GetFullID () const -> QString |
| Get the Full I D object. More...
|
|
void | HoldOnLifeCycle (bool hold_on) |
|
virtual auto | Run () -> int |
| can be overwrite by subclass More...
|
|
auto | GetRTN () |
|
|
void | slot_exception_safe_run () noexcept |
|
|
SecureUniquePtr< Impl > | p_ |
|
◆ Task() [1/2]
GpgFrontend::Thread::Task::Task |
( |
TaskRunnable |
runnable, |
|
|
QString |
name, |
|
|
DataObjectPtr |
data_object = nullptr |
|
) |
| |
|
explicit |
Construct a new Task object.
- Parameters
-
callback | The callback function to be executed. |
◆ Task() [2/2]
GpgFrontend::Thread::Task::Task |
( |
TaskRunnable |
runnable, |
|
|
QString |
name, |
|
|
DataObjectPtr |
data, |
|
|
TaskCallback |
callback |
|
) |
| |
|
explicit |
Construct a new Task object.
- Parameters
-
◆ GetFullID()
QString GpgFrontend::Thread::Task::GetFullID |
( |
| ) |
const -> QString |
Get the Full I D object.
- Returns
- QString
◆ GetRTN()
auto GpgFrontend::Thread::Task::GetRTN |
( |
| ) |
|
◆ GetUUID()
QString GpgFrontend::Thread::Task::GetUUID |
( |
| ) |
const -> QString |
◆ HoldOnLifeCycle()
void GpgFrontend::Thread::Task::HoldOnLifeCycle |
( |
bool |
hold_on | ) |
|
◆ Run()
int GpgFrontend::Thread::Task::Run |
( |
| ) |
-> int |
|
virtual |
◆ setRTN()
void GpgFrontend::Thread::Task::setRTN |
( |
int |
rtn | ) |
|
|
protected |
The documentation for this class was generated from the following files:
- src/core/thread/Task.h
- src/core/thread/Task.cpp