QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Validates the server specific parts of the configuration of a QGIS project. More...
#include <qgsprojectservervalidator.h>
Classes | |
struct | ValidationResult |
Contains the parameters describing a project validation failure. More... | |
Public Types | |
enum | ValidationError { DuplicatedNames = 0 , LayerShortName = 1 , LayerEncoding = 2 , ProjectShortName = 3 , ProjectRootNameConflict = 4 } |
Errors that might be raised by the validation process. More... | |
Public Member Functions | |
QgsProjectServerValidator ()=default | |
Static Public Member Functions | |
static QString | displayValidationError (QgsProjectServerValidator::ValidationError error) |
Returns a human readable string for a given error. | |
static bool | validate (QgsProject *project, QList< QgsProjectServerValidator::ValidationResult > &results) |
Validates a project to detect problems on QGIS Server, and returns true if it's considered valid. | |
Validates the server specific parts of the configuration of a QGIS project.
Definition at line 33 of file qgsprojectservervalidator.h.
Errors that might be raised by the validation process.
Definition at line 43 of file qgsprojectservervalidator.h.
|
default |
|
static |
Returns a human readable string for a given error.
error | the error. |
Definition at line 26 of file qgsprojectservervalidator.cpp.
|
static |
Validates a project to detect problems on QGIS Server, and returns true
if it's considered valid.
If validation fails, the results list will be filled with a list of items describing why the validation failed and what needs to be rectified
project | input project to check |
results | results of the validation |
Definition at line 83 of file qgsprojectservervalidator.cpp.