5#ifndef CUTELYSTVALIDATORIP_H
6#define CUTELYSTVALIDATORIP_H
8#include "validatorrule.h"
12class ValidatorIpPrivate;
49 PublicOnly = NoPrivateRange | NoReservedRange |
52 Q_DECLARE_FLAGS(Constraints, Constraint)
64 Constraints constraints = NoConstraint,
80 static bool validate(
const QString &value, Constraints constraints = NoConstraint);
115Q_DECLARE_OPERATORS_FOR_FLAGS(Cutelyst::ValidatorIp::Constraints)
Checks if the field value is a valid IP address.
Constraint
Acceptable address ranges.
Base class for all validator rules.
std::function< void(ValidatorReturnType &&result)> ValidatorRtFn
Void callback function for validator rules that processes the ValidatorReturnType.
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.