Akonadi Contacts

emailaddressrequester.h
1/*
2 SPDX-FileCopyrightText: 2001 Marc Mutz <mutz@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadi-contact-widgets_export.h"
10
11#include <QWidget>
12
13#include <memory>
14
15class KLineEdit;
16
17namespace Akonadi
18{
19class EmailAddressRequesterPrivate;
20
21/**
22 * @short A widget to input one or more email addresses.
23 *
24 * @author Marc Mutz <mutz@kde.org>
25 */
26class AKONADI_CONTACT_WIDGETS_EXPORT EmailAddressRequester : public QWidget
27{
28 Q_OBJECT
29
30 Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true)
31
32public:
33 /**
34 * Creates a new email address requester.
35 *
36 * @param parent The parent widget.
37 */
38 explicit EmailAddressRequester(QWidget *parent = nullptr);
39
40 /**
41 * Destroys the email address requester.
42 */
44
45 /**
46 * Clears the text of the email address requester.
47 */
48 void clear();
49
50 /**
51 * Sets the @p text of the email address requester.
52 */
53 void setText(const QString &text);
54
55 /**
56 * Returns the text of the email address requester.
57 */
58 [[nodiscard]] QString text() const;
59
60 /**
61 * Returns the line edit that is used by the email address requester.
62 */
63 KLineEdit *lineEdit() const;
64
65Q_SIGNALS:
66 /**
67 * This signal is emitted whenever the text of the email address requester
68 * has been changed.
69 */
71
72private:
73 //@cond PRIVATE
74 std::unique_ptr<EmailAddressRequesterPrivate> const d;
75 //@endcond
76};
77}
A widget to input one or more email addresses.
~EmailAddressRequester() override
Destroys the email address requester.
void textChanged()
This signal is emitted whenever the text of the email address requester has been changed.
A widget for editing the display name of a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:36:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.