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 class KLineEdit;
14 
15 namespace Akonadi
16 {
17 /**
18  * @short A widget to input one or more email addresses.
19  *
20  * @author Marc Mutz <[email protected]>
21  */
22 class AKONADI_CONTACT_EXPORT EmailAddressRequester : public QWidget
23 {
24  Q_OBJECT
25 
26  Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged USER true)
27 
28 public:
29  /**
30  * Creates a new email address requester.
31  *
32  * @param parent The parent widget.
33  */
34  explicit EmailAddressRequester(QWidget *parent = nullptr);
35 
36  /**
37  * Destroys the email address requester.
38  */
39  ~EmailAddressRequester() override;
40 
41  /**
42  * Clears the text of the email address requester.
43  */
44  void clear();
45 
46  /**
47  * Sets the @p text of the email address requester.
48  */
49  void setText(const QString &text);
50 
51  /**
52  * Returns the text of the email address requester.
53  */
54  Q_REQUIRED_RESULT QString text() const;
55 
56  /**
57  * Returns the line edit that is used by the email address requester.
58  */
59  KLineEdit *lineEdit() const;
60 
61 Q_SIGNALS:
62  /**
63  * This signal is emitted whenever the text of the email address requester
64  * has been changed.
65  */
66  void textChanged();
67 
68 private:
69  //@cond PRIVATE
70  class Private;
71  Private *const d;
72  //@endcond
73 };
74 }
75 
A widget to input one or more email addresses.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jun 23 2021 23:09:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.