File tree Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Expand file tree Collapse file tree 2 files changed +8
-16
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,6 @@ class QgsTask : QObject
86
86
*/
87
87
double progress() const;
88
88
89
- /**
90
- * Starts the task. Should only be called for tasks which are not being
91
- * handled by a QgsTaskManager. If the task is managed by a QgsTaskManager
92
- * then this method should not be called directly, instead it is left to the
93
- * task manager to start the task when appropriate.
94
- */
95
- void start();
96
-
97
89
/**
98
90
* Notifies the task that it should terminate. Calling this is not guaranteed
99
91
* to immediately end the task, rather it sets the isCancelled() flag which
Original file line number Diff line number Diff line change @@ -117,14 +117,6 @@ class CORE_EXPORT QgsTask : public QObject
117
117
*/
118
118
double progress () const { return mTotalProgress ; }
119
119
120
- /* *
121
- * Starts the task. Should only be called for tasks which are not being
122
- * handled by a QgsTaskManager. If the task is managed by a QgsTaskManager
123
- * then this method should not be called directly, instead it is left to the
124
- * task manager to start the task when appropriate.
125
- */
126
- void start ();
127
-
128
120
/* *
129
121
* Notifies the task that it should terminate. Calling this is not guaranteed
130
122
* to immediately end the task, rather it sets the isCancelled() flag which
@@ -323,13 +315,21 @@ class CORE_EXPORT QgsTask : public QObject
323
315
};
324
316
QList< SubTask > mSubTasks ;
325
317
318
+
319
+ /* *
320
+ * Starts the task. Should not be public as only QgsTaskManagers can initiate tasks.
321
+ */
322
+ void start ();
323
+
326
324
void processSubTasksForCompletion ();
327
325
328
326
void processSubTasksForTermination ();
329
327
330
328
void processSubTasksForHold ();
331
329
332
330
friend class QgsTaskManager ;
331
+ friend class QgsTaskRunnableWrapper ;
332
+ friend class TestQgsTaskManager ;
333
333
334
334
};
335
335
You can’t perform that action at this time.
0 commit comments