18#ifndef QGSPROJECTSERVERVALIDATOR_H
19#define QGSPROJECTSERVERVALIDATOR_H
95 static void browseLayerTree(
QgsLayerTreeGroup *treeGroup, QStringList &owsNames, QStringList &encodingMessages, QStringList &layerNames, QStringList &maptipTemplates );
96 static bool isOnlyMaptipEnabled(
QgsProject *project );
Layer tree group node serves as a container for layers and further groups.
QgsProjectServerValidator()=default
ValidationError
Errors that might be raised by the validation process.
@ LayerEncoding
Encoding is not correctly set on a vector layer.
@ ProjectRootNameConflict
The project root name is already used by a layer or a group.
@ ProjectShortName
The project short name is not valid.
@ DuplicatedNames
A duplicated layer/group name in the layer tree.
@ OnlyMaptipTrueButEmptyMaptip
Use only maptip for HTML GetFeatureInfo response is enabled but HTML maptip is empty.
@ LayerShortName
Layer/group short name is not valid.
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.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
ValidationResult(const QgsProjectServerValidator::ValidationError error, const QVariant &identifier)
Constructor for ValidationResult.
QVariant identifier
Identifier related to the error.
QgsProjectServerValidator::ValidationError error
Error which occurred during the validation process.