6 #ifndef CUTELYSTVALIDATORFILESIZE_H 7 #define CUTELYSTVALIDATORFILESIZE_H 9 #include "validatorrule.h" 11 #include <Cutelyst/cutelyst_global.h> 17 class ValidatorFileSizePrivate;
93 Option option = NoOption,
118 static bool validate(
const QString &value,
121 Option option = NoOption,
123 double *fileSize =
nullptr);
137 static void inputPattern(
Context *c,
138 const QString &stashKey = QStringLiteral(
"fileSizePattern"));
167 #endif // CUTELYSTVALIDATORFILESIZE_H Stores custom error messages and the input field label.
Option
Options for ValidatorFileSize.
The Cutelyst namespace holds all public Cutelyst API.
Base class for all validator rules.
Checks if the input field contains a valid file size string like 1.5 GB.
Contains the result of a single input parameter validation.