18 #ifndef QGSSTOREDEXPRESSIONMANAGER_H
19 #define QGSSTOREDEXPRESSIONMANAGER_H
21 #include "qgis_core.h"
51 FilterExpression = 1 << 0,
52 DefaultValueExpression = 1 << 1,
53 All = FilterExpression | DefaultValueExpression
71 : id( QUuid::createUuid().toString() ),
73 expression( expression ),
112 QString addStoredExpression(
const QString &name,
const QString &expression,
const QgsStoredExpression::Category &tag = QgsStoredExpression::Category::FilterExpression );
119 void removeStoredExpression(
const QString &
id );
136 void addStoredExpressions(
const QList< QgsStoredExpression > &storedExpressions );
162 void clearStoredExpressions();
165 bool writeXml( QDomNode &layerNode )
const;
168 bool readXml(
const QDomNode &layerNode );
175 QList< QgsStoredExpression > mStoredExpressions;
178 #endif // QGSSTOREDEXPRESSIONMANAGER_H