19 #ifndef CUTELYSTVALIDATORFILESIZE_H
20 #define CUTELYSTVALIDATORFILESIZE_H
22 #include <Cutelyst/cutelyst_global.h>
24 #include "validatorrule.h"
28 class ValidatorFileSizePrivate;
90 Option option = NoOption,
113 static bool validate(
const QString &value,
116 Option option = NoOption,
118 double *fileSize =
nullptr);
130 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.