KCompletion

kemailvalidator.h
1/*
2 SPDX-FileCopyrightText: 2010 Casey Link <unnamedrambler@gmail.com>
3 SPDX-FileCopyrightText: 2009-2010 Klaralvdalens Datakonsult AB, a KDAB Group company <info@kdab.net>
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef KEMAILVALIDATOR_H
8#define KEMAILVALIDATOR_H
9
10#include "kcompletion_export.h"
11
12#include <QValidator>
13
14/**
15 An input validator that checks for valid email addresses.
16 @see KEmailAddress::isValidSimpleAddress
17 @since 6.0
18*/
19class KCOMPLETION_EXPORT KEmailValidator : public QValidator
20{
22public:
23 explicit KEmailValidator(QObject *parent = nullptr);
24 ~KEmailValidator();
25
26 State validate(QString &str, int &pos) const override;
27 void fixup(QString &str) const override;
28};
29
30#endif
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
QObject * parent() const const
QValidator(QObject *parent)
virtual void fixup(QString &input) const const
virtual State validate(QString &input, int &pos) const const=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:50:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.