File indexing completed on 2024-04-14 05:43:23

0001 /*
0002     SPDX-FileCopyrightText: 2006 Jimmy Gilles <jimmygilles@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef EMAILVALIDATOR_H
0008 #define EMAILVALIDATOR_H
0009 
0010 #include <QValidator>
0011 
0012 namespace KgpgCore
0013 {
0014 
0015 class EmailValidator : public QValidator
0016 {
0017 public:
0018     explicit EmailValidator(QObject *parent = nullptr) : QValidator(parent) { }
0019     QValidator::State validate(QString &input, int &pos) const override;
0020 };
0021 
0022 } // namespace KgpgCore
0023 
0024 #endif // EMAILVALIDATOR_H