| QGIS API Documentation
    3.22.4-Białowieża (ce8e65e95e)
    | 
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 | |
| Constructor for QgsProjectServerValidator.  More... | |
| Static Public Member Functions | |
| static QString | displayValidationError (QgsProjectServerValidator::ValidationError error) | 
| Returns a human readable string for a given error.  More... | |
| static bool | validate (QgsProject *project, QList< QgsProjectServerValidator::ValidationResult > &results) | 
| Validates a project to detect problems on QGIS Server, and returns trueif it's considered valid.  More... | |
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 46 of file qgsprojectservervalidator.h.
| 
 | default | 
Constructor for QgsProjectServerValidator.
| 
 | 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.