/* * SPDX-License-Identifier: GPL-3.0-or-later * SPDX-FileCopyrightText: 2019 Johan Ouwerkerk */ #ifndef SECRET_VALIDATOR_H #define SECRET_VALIDATOR_H #include #include namespace validators { class Base32Validator : public QValidator { Q_OBJECT public: explicit Base32Validator(QObject *parent = nullptr); QValidator::State validate(QString &input, int &pos) const override; void fixup(QString &input) const override; private: const QRegularExpressionValidator m_pattern; }; } #endif