23
23
#include < QAbstractItemModel>
24
24
#include < QFuture>
25
25
26
- /* * \ingroup core
26
+ /* *
27
+ * \ingroup core
27
28
* \class QgsTask
28
29
* \brief Interface class for long running background tasks. Tasks can be controlled directly,
29
30
* or added to a QgsTaskManager for automatic management.
30
- * \note Added in version 2.16
31
+ * \note Added in version 3.0
31
32
*/
32
33
class CORE_EXPORT QgsTask : public QObject
33
34
{
@@ -38,11 +39,11 @@ class CORE_EXPORT QgsTask : public QObject
38
39
// ! Status of tasks
39
40
enum TaskStatus
40
41
{
41
- Queued, /* !< Task is queued and has not begun */
42
- OnHold, /* !< Task is queued but on hold and will not be started */
43
- Running, /* !< Task is currently running */
44
- Complete, /* !< Task successfully completed */
45
- Terminated, /* !< Task was terminated or errored */
42
+ Queued, // !< Task is queued and has not begun
43
+ OnHold, // !< Task is queued but on hold and will not be started
44
+ Running, // !< Task is currently running
45
+ Complete, // !< Task successfully completed
46
+ Terminated, // !< Task was terminated or errored
46
47
};
47
48
48
49
// ! Task flags
@@ -173,7 +174,7 @@ typedef QList< QgsTask* > QgsTaskList;
173
174
* \class QgsTaskManager
174
175
* \brief Task manager for managing a set of long-running QgsTask tasks. This class can be created directly,
175
176
* or accessed via a global instance.
176
- * \note Added in version 2.16
177
+ * \note Added in version 3.0
177
178
*/
178
179
class CORE_EXPORT QgsTaskManager : public QObject
179
180
{
0 commit comments