6 #ifndef CUTELYSTVALIDATORFILESIZE_H
7 #define CUTELYSTVALIDATORFILESIZE_H
9 #include <Cutelyst/cutelyst_global.h>
11 #include "validatorrule.h"
15 class ValidatorFileSizePrivate;
77 Option option = NoOption,
100 static bool validate(
const QString &value,
103 Option option = NoOption,
105 double *fileSize =
nullptr);
117 static void inputPattern(
Context *c,
const QString &stashKey = QStringLiteral(
"fileSizePattern"));
Checks if the input field contains a valid file size string like 1.5 GB.
Option
Options for ValidatorFileSize.
Base class for all validator rules.
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.