Herunterladen als
root/src/validators/filevalidator.h @ 9e2d71d6
ec6a9500 | Christian Ehringfeld | #ifndef FILEVALIDATOR_H
|
|
#define FILEVALIDATOR_H
|
|||
#include "validator.h"
|
|||
519b2fe3 | Christian Ehringfeld | #include <QFileInfo>
|
|
ec6a9500 | Christian Ehringfeld | namespace CuteEntityManager {
|
|
class FileValidator : public Validator {
|
|||
Q_OBJECT
|
|||
public:
|
|||
FileValidator();
|
|||
28d2f01a | Christian Ehringfeld | protected:
|
|
ec6a9500 | Christian Ehringfeld | virtual ErrorMsg validateParam(QVariant value, Param param) const override;
|
|
519b2fe3 | Christian Ehringfeld | virtual ErrorMsg validateMIMEType(const QFileInfo &file,
|
|
const Param ¶m) const;
|
|||
virtual ErrorMsg validateExtension(const QFileInfo &file,
|
|||
const Param ¶m) const;
|
|||
ec6a9500 | Christian Ehringfeld | };
|
|
}
|
|||
#endif // FILEVALIDATOR_H
|