QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
15 #ifndef QGSABSTRACTVALIDITYCHECK_H
16 #define QGSABSTRACTVALIDITYCHECK_H
18 #include "qgis_core.h"
101 TypeUserCheck = 10000,
116 virtual QString
id()
const = 0;
160 #endif // QGSABSTRACTVALIDITYCHECK_H
virtual bool prepareCheck(const QgsValidityCheckContext *context, QgsFeedback *feedback)
Prepares the check for execution, and returns true if the check can be run.
virtual QgsAbstractValidityCheck * create() const =0
Creates a new instance of the check and returns it.
Base class for validity check contexts.
Base class for feedback objects to be used for cancellation of something running in a worker thread.
QString checkId
ID of the check which generated the result.
virtual QList< QgsValidityCheckResult > runCheck(const QgsValidityCheckContext *context, QgsFeedback *feedback)=0
Runs the check and returns a list of results.
Abstract base class for individual validity checks.
Represents an individual result from a validity check run by a QgsAbstractValidityCheck subclass.
@ Critical
Critical error - notify user of result and prevent operation from proceeding.
virtual int checkType() const =0
Returns the type of the check.
virtual QString id() const =0
Returns the unique ID of the check.
QString title
A short, translated string summarising the result.
QString detailedDescription
Detailed description of the result (translated), giving users enough detail for them to resolve the e...
virtual ~QgsAbstractValidityCheck()=default
@ Warning
Warning only, allow operation to proceed but notify user of result.