QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
18 #ifndef QGSPROCESSINGFEEDBACK_H
19 #define QGSPROCESSINGFEEDBACK_H
21 #include "qgis_core.h"
57 virtual void setProgressText(
const QString &text );
64 virtual void reportError(
const QString &error,
bool fatalError =
false );
76 virtual void pushWarning(
const QString &warning );
87 virtual void pushInfo(
const QString &info );
98 virtual void pushCommandInfo(
const QString &info );
108 virtual void pushDebugInfo(
const QString &info );
118 virtual void pushConsoleInfo(
const QString &info );
132 virtual QString htmlLog()
const;
140 virtual QString textLog()
const;
144 void log(
const QString &htmlMessage,
const QString &textMessage );
146 bool mLogFeedback =
true;
149 int mMessageLoggedCount = 0;
183 void setCurrentStep(
int step );
186 void reportError(
const QString &error,
bool fatalError =
false )
override;
187 void pushWarning(
const QString &warning )
override;
188 void pushInfo(
const QString &info )
override;
192 QString
htmlLog()
const override;
193 QString
textLog()
const override;
196 void updateOverallProgress(
double progress );
201 int mCurrentStep = 0;
206 #endif // QGSPROCESSINGFEEDBACK_H
virtual void setProgressText(const QString &text)
Sets a progress report text string.
virtual void pushCommandInfo(const QString &info)
Pushes an informational message containing a command from the algorithm.
Base class for providing feedback from a processing algorithm.
virtual void pushInfo(const QString &info)
Pushes a general informational message from the algorithm.
virtual void reportError(const QString &error, bool fatalError=false)
Reports that the algorithm encountered an error while executing.
Abstract base class for processing providers.
virtual QString textLog() const
Returns the plain text contents of the log, which contains all messages pushed to the feedback object...
virtual void pushConsoleInfo(const QString &info)
Pushes a console feedback message from the algorithm.
Processing feedback object for multi-step operations.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
virtual void pushDebugInfo(const QString &info)
Pushes an informational message containing debugging helpers from the algorithm.
virtual QString htmlLog() const
Returns the HTML formatted contents of the log, which contains all messages pushed to the feedback ob...
virtual void pushWarning(const QString &warning)
Pushes a warning informational message from the algorithm.