2017-04-02 17:04:47 +10:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingfeedback.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProcessingFeedback : QgsFeedback
|
2017-01-06 20:04:00 +10:00
|
|
|
{
|
2017-04-02 17:04:47 +10:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Base class for providing feedback from a processing algorithm.
|
|
|
|
|
|
|
|
This base class implementation silently ignores all feedback reported by algorithms.
|
|
|
|
Subclasses of QgsProcessingFeedback can be used to log this feedback or report
|
|
|
|
it to users via the GUI.
|
2017-04-02 17:04:47 +10:00
|
|
|
|
2017-04-02 20:52:50 +10:00
|
|
|
.. versionadded:: 3.0
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
2017-01-06 20:04:00 +10:00
|
|
|
%TypeHeaderCode
|
2017-04-02 17:04:47 +10:00
|
|
|
#include "qgsprocessingfeedback.h"
|
2017-01-06 20:04:00 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-04-02 17:04:47 +10:00
|
|
|
virtual void setProgressText( const QString &text );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets a progress report text string. This can be used in conjunction with
|
|
|
|
setProgress() to provide detailed progress reports, such as "Transformed
|
|
|
|
4 of 5 layers".
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`setProgress`
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
2018-03-14 18:23:04 +10:00
|
|
|
virtual void reportError( const QString &error, bool fatalError = false );
|
2017-04-02 17:04:47 +10:00
|
|
|
%Docstring
|
2018-03-14 18:23:04 +10:00
|
|
|
Reports that the algorithm encountered an ``error`` while executing.
|
|
|
|
|
|
|
|
If ``fatalError`` is true then the error prevented the algorithm from executing.
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void pushInfo( const QString &info );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Pushes a general informational message from the algorithm. This can
|
|
|
|
be used to report feedback which is neither a status report or an
|
|
|
|
error, such as "Found 47 matching features".
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushCommandInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushDebugInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushConsoleInfo`
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void pushCommandInfo( const QString &info );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Pushes an informational message containing a command from the algorithm.
|
|
|
|
This is usually used to report commands which are executed in an external
|
|
|
|
application or as subprocesses.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushDebugInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushConsoleInfo`
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void pushDebugInfo( const QString &info );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Pushes an informational message containing debugging helpers from
|
|
|
|
the algorithm.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushCommandInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushConsoleInfo`
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void pushConsoleInfo( const QString &info );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Pushes a console feedback message from the algorithm. This is used to
|
|
|
|
report the output from executing an external command or subprocess.
|
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushDebugInfo`
|
2017-12-15 10:36:55 -04:00
|
|
|
|
2018-01-09 17:26:37 -04:00
|
|
|
.. seealso:: :py:func:`pushCommandInfo`
|
2017-04-02 17:04:47 +10:00
|
|
|
%End
|
2017-01-06 20:04:00 +10:00
|
|
|
|
|
|
|
};
|
2017-04-02 17:04:47 +10:00
|
|
|
|
|
|
|
|
2017-11-16 10:26:06 +10:00
|
|
|
class QgsProcessingMultiStepFeedback : QgsProcessingFeedback
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
Processing feedback object for multi-step operations.
|
2017-11-16 10:26:06 +10:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
A processing feedback object which proxies its calls to an underlying
|
|
|
|
feedback object, but scales overall progress reports to account
|
|
|
|
for a number of child steps which each report their own feedback.
|
2017-11-16 10:26:06 +10:00
|
|
|
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingfeedback.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
|
|
|
QgsProcessingMultiStepFeedback( int steps, QgsProcessingFeedback *feedback );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Constructor for QgsProcessingMultiStepFeedback, for a process with the specified
|
|
|
|
number of ``steps``. This feedback object will proxy calls
|
|
|
|
to the specified ``feedback`` object.
|
2017-11-16 10:26:06 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
void setCurrentStep( int step );
|
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the ``step`` which is being executed. This is used
|
|
|
|
to scale the current progress to account for progress through the overall process.
|
2017-11-16 10:26:06 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
virtual void setProgressText( const QString &text );
|
|
|
|
|
2018-03-14 18:23:04 +10:00
|
|
|
virtual void reportError( const QString &error, bool fatalError );
|
2017-11-16 10:26:06 +10:00
|
|
|
|
|
|
|
virtual void pushInfo( const QString &info );
|
|
|
|
|
|
|
|
virtual void pushCommandInfo( const QString &info );
|
|
|
|
|
|
|
|
virtual void pushDebugInfo( const QString &info );
|
|
|
|
|
|
|
|
virtual void pushConsoleInfo( const QString &info );
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2017-04-02 17:04:47 +10:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/core/processing/qgsprocessingfeedback.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|