42 return _time > 1000 && _taskId;
44 default:
return _taskId;
48void AbstractTask::idGen() {
50 data.insert(0,
reinterpret_cast<char*
>(&_time),
sizeof (_time));
51 data.insert(0,
reinterpret_cast<char*
>(&_mode),
sizeof (_mode));
52 int code =
typeid(
this).hash_code();
53 data.insert(0,
reinterpret_cast<char*
>(&code),
sizeof (code));
56 _taskId =
qHash(data);
virtual bool isValid() const
isValid This method check task configuration and return true if task is valid else false.
void setMode(ScheduleMode newMode)
setMode This method sets new mode of this task.
ScheduleMode mode() const
mode This method retunr current mode of this task.
void setTime(quint64 newTime)
setTime This method sets new value for the AbstractTask::time property.
int taskId() const
taskId This method return id of this task.
quint64 time() const
time This is universal property. This property has its own meaning for each AbstractTask::mode....
The QH namespace - QuasarApp Heart namespace. This namespace contains all classes of the Heart librar...
uint qHash(NodeCoonectionStatus status)
qHash - Simple hash function of NodeCoonectionStatus
ScheduleMode
The ScheduleMode enum contails list of the shedule modes.
@ Repeat
In this mode AbstractTask will be executed task every time from the moment of adding this task.