QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsprocessingbatch.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprocessingbatch.h
3  ------------------------
4  begin : March 2022
5  copyright : (C) 2022 by Nyall Dawson
6  email : nyall dot dawson at gmail dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSPROCESSINGBATCH_H
19 #define QGSPROCESSINGBATCH_H
20 
21 #include "qgis_core.h"
22 #include "qgis.h"
23 
24 #include "qgsprocessingfeedback.h"
25 
33 {
34  Q_OBJECT
35 
36  public:
37 
43  QgsProcessingBatchFeedback( int tasks, QgsProcessingFeedback *feedback );
44 
45  void reportError( const QString &error, bool fatalError = false ) override;
46 
50  QStringList popErrors();
51 
52  private:
53 
54  QStringList mErrors;
55 };
56 
57 
58 #endif // QGSPROCESSINGBATCH_H
59 
60 
QgsProcessingFeedback
Base class for providing feedback from a processing algorithm.
Definition: qgsprocessingfeedback.h:37
QgsProcessingMultiStepFeedback::reportError
void reportError(const QString &error, bool fatalError=false) override
Reports that the algorithm encountered an error while executing.
Definition: qgsprocessingfeedback.cpp:172
qgis.h
QgsProcessingMultiStepFeedback
Processing feedback object for multi-step operations.
Definition: qgsprocessingfeedback.h:166
qgsprocessingfeedback.h
QgsProcessingBatchFeedback
Processing feedback subclass for use when batch processing.
Definition: qgsprocessingbatch.h:32