![]() |
Heart 1.4.918.d927d9c
Heart is base back end library for your c++ Qt projects.
|
The TaskScheduler class This class contains queue of all shedule tasks. More...
#include <taskscheduler.h>


Signals | |
| void | sigPushWork (QSharedPointer< QH::AbstractTask > work) |
| sigPushWork This signal emited when the task work neet to execute. | |
Public Member Functions | |
| TaskScheduler () | |
| ~TaskScheduler () | |
| bool | shedule (const QSharedPointer< AbstractTask > &task) |
| shedule This method shedule new task in this node. | |
| bool | remove (const QSharedPointer< AbstractTask > &task) |
| remove This method remove the task from a tasks queue. | |
| bool | remove (int task) |
| remove This method remove the task with task id. | |
| int | taskCount () const |
| taskCount This method return tasks count. | |
The TaskScheduler class This class contains queue of all shedule tasks.
Definition at line 24 of file taskscheduler.h.
| QH::TaskScheduler::TaskScheduler | ( | ) |
| QH::TaskScheduler::~TaskScheduler | ( | ) |
Definition at line 20 of file taskscheduler.cpp.
| bool QH::TaskScheduler::remove | ( | const QSharedPointer< AbstractTask > & | task | ) |
remove This method remove the task from a tasks queue.
| task | This is removed task. |
Definition at line 67 of file taskscheduler.cpp.


| bool QH::TaskScheduler::remove | ( | int | task | ) |
remove This method remove the task with task id.
| task | This is id of the removed task. |
Definition at line 71 of file taskscheduler.cpp.
| bool QH::TaskScheduler::shedule | ( | const QSharedPointer< AbstractTask > & | task | ) |
shedule This method shedule new task in this node.
| task | This is sharedpointe to taskObject. |
Definition at line 30 of file taskscheduler.cpp.
|
signal |
sigPushWork This signal emited when the task work neet to execute.
| work | This is needed to execute task. |

| int QH::TaskScheduler::taskCount | ( | ) | const |
taskCount This method return tasks count.
Definition at line 80 of file taskscheduler.cpp.