various small code cleanups and improvements

Largely refactoring work to make the code somewhat nicer to work with.
This commit is contained in:
itsmattkc
2019-12-26 19:00:08 +11:00
parent 83077c939e
commit 61c60e00d6
87 changed files with 596 additions and 567 deletions
+7 -4
View File
@@ -70,6 +70,8 @@ public:
*/
TaskManager& operator=(TaskManager&& other) = delete;
static TaskManager* instance();
/**
* @brief Add a new Task
*
@@ -165,6 +167,11 @@ private:
*/
int maximum_task_count_;
/**
* @brief TaskManager singleton instance
*/
static TaskManager instance_;
private slots:
/**
* @brief Callback when a Task's status changes
@@ -180,8 +187,4 @@ private slots:
};
namespace olive {
extern TaskManager task_manager;
}
#endif // TASKMANAGER_H