Libkdepim

emailvalidator.h
1 /*
2  Copyright (C) 2010 Casey Link <[email protected]>
3  Copyright (C) 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <[email protected]>
4 
5  This library is free software; you can redistribute it and/or modify it
6  under the terms of the GNU Library General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or (at your
8  option) any later version.
9 
10  This library is distributed in the hope that it will be useful, but WITHOUT
11  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13  License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to the
17  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18  02110-1301, USA.
19 */
20 
21 #ifndef EMAILVALIDATOR_H
22 #define EMAILVALIDATOR_H
23 
24 #include "kdepim_export.h"
25 
26 #include <QValidator>
27 
28 namespace KPIM {
33 class KDEPIM_EXPORT EmailValidator : public QValidator //krazy:exclude=dpointer
34 {
35  Q_OBJECT
36 public:
37  explicit EmailValidator(QObject *parent);
38 
39  State validate(QString &str, int &pos) const override;
40 
41  void fixup(QString &str) const override;
42 };
43 }
44 
45 #endif
A validator that enforces correct email addresses.
Class KCheckComboBox::Private.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue May 26 2020 22:39:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.