16 #ifndef QGSSERVERQUERYSTRINGPARAMETER_H
17 #define QGSSERVERQUERYSTRINGPARAMETER_H
20 #include "qgis_server.h"
27 #include "nlohmann/json_fwd.hpp"
30 using namespace nlohmann;
62 String = QVariant::String,
63 Integer = QVariant::LongLong,
64 Double = QVariant::Double,
65 Boolean = QVariant::Bool,
66 List = QVariant::StringList,
81 bool required =
false,
83 const QString &description = QString(),
84 const QVariant &defaultValue = QVariant() );
114 void setCustomValidator(
const customValidator &customValidator );
126 QString description()
const;
131 static QString
typeName(
const Type type );
136 QString name()
const;
141 void setDescription(
const QString &description );
146 bool mRequired =
false;
147 Type mType = Type::String;
148 customValidator mCustomValidator =
nullptr;
149 QString mDescription;
150 QVariant mDefaultValue;
152 friend class TestQgsServerQueryStringParameter;
156 #endif // QGSSERVERQUERYSTRINGPARAMETER_H