19 #ifndef CUTELYSTVALIDATORFILESIZE_H 20 #define CUTELYSTVALIDATORFILESIZE_H 22 #include <Cutelyst/cutelyst_global.h> 23 #include "validatorrule.h" 27 class ValidatorFileSizePrivate;
89 Option option = NoOption,
112 static bool validate(
const QString &value,
115 Option option = NoOption,
117 double *fileSize =
nullptr);
129 static void inputPattern(
Context *c,
const QString &stashKey = QStringLiteral(
"fileSizePattern"));
160 #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.