simple UI for tasks

This commit is contained in:
itsmattkc
2019-06-29 01:42:07 -07:00
parent 1a25a14a61
commit 84720b39cb
16 changed files with 405 additions and 6 deletions
+2
View File
@@ -58,6 +58,8 @@ protected:
signals:
void StatusChanged(Task::Status s);
void ProgressChanged(int p);
private:
void set_status(const Status& status);
+3
View File
@@ -38,6 +38,9 @@ void TaskManager::AddTask(Task* t)
// Add the Task to the queue
tasks_.append(t);
// Emit signal that a Task was added
emit TaskAdded(t);
// Scan through queue and start any Tasks that can (including this one)
StartNextWaiting();
}
+10
View File
@@ -56,6 +56,16 @@ public:
*/
void AddTask(Task *t);
signals:
/**
* @brief Signal emitted when a Task is added by AddTask()
*
* @param t
*
* Task that was added
*/
void TaskAdded(Task* t);
private:
/**
* @brief Scan through the task queue and start any Tasks that are able to start