6#ifndef CUTELYSTVALIDATORDOMAIN_H
7#define CUTELYSTVALIDATORDOMAIN_H
9#include "validatorrule.h"
13class ValidatorDomainPrivate;
77 CheckDNS = CheckARecord | CheckAAAARecord
80 Q_DECLARE_FLAGS(Options, Option)
93 Options options = NoOption,
95 const QString &defValKey = {});
114 static bool validate(
const QString &value,
116 QString *extractedValue =
nullptr);
128 validateCb(
const QString &value,
130 std::function<
void(
Diagnose diagnose,
const QString &extractedValue)> cb);
140 static QString diagnoseString(
Context *c,
Diagnose diagnose,
const QString &label = {});
167 QString genericValidationError(
Context *c,
168 const QVariant &errorData = QVariant())
const override;
177Q_DECLARE_OPERATORS_FOR_FLAGS(Cutelyst::ValidatorDomain::Options);
Checks if the value of the input field contains a FQDN according to RFC 1035.
Option
Options for the domain validation.
~ValidatorDomain() override
Diagnose
Possible diagnose information for the checked domain.
Base class for all validator rules.
QMultiMap< QString, QString > ParamsMultiMap
The Cutelyst namespace holds all public Cutelyst API.
Stores custom error messages and the input field label.
Contains the result of a single input parameter validation.