File indexing completed on 2024-12-01 08:10:08

0001 /*
0002     SPDX-FileCopyrightText: 2018 Bruce Anderson <banderson19com@san.rr.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef WIREGUARDKEYVALIDATOR_H
0008 #define WIREGUARDKEYVALIDATOR_H
0009 
0010 #include <QValidator>
0011 
0012 class WireGuardKeyValidator : public QValidator
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit WireGuardKeyValidator(QObject *parent = nullptr);
0017     ~WireGuardKeyValidator() override;
0018 
0019     QValidator::State validate(QString &, int &) const override;
0020 
0021 private:
0022     QRegularExpressionValidator *const m_validator;
0023 };
0024 
0025 #endif // SIMPLEIPV4ADDRESSVALIDATOR_H