Akonadi Contacts

emailaddressrequester.h
1 /*
2  SPDX-FileCopyrightText: 2001 Marc Mutz <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "akonadi-contact_export.h"
10 
11 #include <QWidget>
12 
13 #include <memory>
14 
15 class KLineEdit;
16 
17 namespace Akonadi
18 {
19 class EmailAddressRequesterPrivate;
20 
21 /**
22  * @short A widget to input one or more email addresses.
23  *
24  * @author Marc Mutz <[email protected]>
25  */
26 class AKONADI_CONTACT_EXPORT EmailAddressRequester : public QWidget
27 {
28  Q_OBJECT
29 
30  Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true)
31 
32 public:
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  */
43  ~EmailAddressRequester() override;
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  Q_REQUIRED_RESULT QString text() const;
59 
60  /**
61  * Returns the line edit that is used by the email address requester.
62  */
63  KLineEdit *lineEdit() const;
64 
65 Q_SIGNALS:
66  /**
67  * This signal is emitted whenever the text of the email address requester
68  * has been changed.
69  */
70  void textChanged();
71 
72 private:
73  //@cond PRIVATE
74  std::unique_ptr<EmailAddressRequesterPrivate> const d;
75  //@endcond
76 };
77 }
A widget to input one or more email addresses.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Feb 7 2023 03:57:18 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.