5#ifndef CUTELYSTVALIDATOR_H
6#define CUTELYSTVALIDATOR_H
8#include "validatorresult.h"
10#include <Cutelyst/ParamsMultiMap>
11#include <Cutelyst/cutelyst_global.h>
13#include <QScopedPointer>
46class ValidatorPrivate;
289 NoSpecialBehavior = 0,
292 FillStashOnError = 2,
302 Q_DECLARE_FLAGS(ValidatorFlags, ValidatorFlag)
307 explicit Validator(QLatin1String translationContext = QLatin1String());
314 explicit Validator(std::initializer_list<ValidatorRule *> validators,
315 QLatin1String translationContext = QLatin1String());
355 ValidatorFlags flags = NoSpecialBehavior)
const;
371 const std::unique_ptr<ValidatorPrivate> d_ptr;
379Q_DECLARE_OPERATORS_FOR_FLAGS(Cutelyst::Validator::ValidatorFlags)
The Cutelyst Application.
Provides information about performed validations.
Base class for all validator rules.
Validation processor for input data.
~Validator()
Desconstructs the Validator and all added ValidatorRule objects.
ValidatorFlag
Flags that change the behavior of the Validator.
The Cutelyst namespace holds all public Cutelyst API.
QMultiMap< QString, QString > ParamsMultiMap