Akonadi Contacts

emailaddressselectionwidget.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  SPDX-FileCopyrightText: 2010 KDAB
5  SPDX-FileContributor: Tobias Koenig <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #ifndef AKONADI_EMAILADDRESSSELECTIONWIDGET_H
11 #define AKONADI_EMAILADDRESSSELECTIONWIDGET_H
12 
13 #include "akonadi-contact_export.h"
14 
15 #include "emailaddressselection.h"
16 
17 #include <item.h>
18 
19 #include <QAbstractItemView>
20 #include <QWidget>
21 
22 class QLineEdit;
23 class QAbstractItemModel;
24 class QTreeView;
25 
26 namespace Akonadi {
52 class AKONADI_CONTACT_EXPORT EmailAddressSelectionWidget : public QWidget
53 {
54  Q_OBJECT
55 
56 public:
62  explicit EmailAddressSelectionWidget(QWidget *parent = nullptr);
63 
70  explicit EmailAddressSelectionWidget(QAbstractItemModel *model, QWidget *parent = nullptr);
71 
78  explicit EmailAddressSelectionWidget(bool showOnlyContactWithEmail, QAbstractItemModel *model = nullptr, QWidget *parent = nullptr);
79 
84 
88  Q_REQUIRED_RESULT EmailAddressSelection::List selectedAddresses() const;
89 
93  QLineEdit *searchLineEdit() const;
94 
98  QTreeView *view() const;
99 
100 Q_SIGNALS:
104  void doubleClicked();
105 private:
106  //@cond PRIVATE
107  class Private;
108  Private *const d;
109  //@endcond
110 };
111 }
112 
113 #endif
A widget to select email addresses from Akonadi.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Oct 20 2020 23:13:52 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.