simple UI for tasks
This commit is contained in:
@@ -58,6 +58,8 @@ protected:
|
||||
signals:
|
||||
void StatusChanged(Task::Status s);
|
||||
|
||||
void ProgressChanged(int p);
|
||||
|
||||
private:
|
||||
void set_status(const Status& status);
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user