Akonadi Contacts

emailaddressselectionwidget.h
1 /*
2  This file is part of Akonadi Contact.
3 
4  Copyright (c) 2010 KDAB
5  Author: Tobias Koenig <[email protected]>
6 
7  This library is free software; you can redistribute it and/or modify it
8  under the terms of the GNU Library General Public License as published by
9  the Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version.
11 
12  This library is distributed in the hope that it will be useful, but WITHOUT
13  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
15  License for more details.
16 
17  You should have received a copy of the GNU Library General Public License
18  along with this library; see the file COPYING.LIB. If not, write to the
19  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20  02110-1301, USA.
21 */
22 
23 #ifndef AKONADI_EMAILADDRESSSELECTIONWIDGET_H
24 #define AKONADI_EMAILADDRESSSELECTIONWIDGET_H
25 
26 #include "akonadi-contact_export.h"
27 
28 #include "emailaddressselection.h"
29 
30 #include <item.h>
31 
32 #include <QAbstractItemView>
33 #include <QWidget>
34 
35 class QLineEdit;
36 class QAbstractItemModel;
37 class QTreeView;
38 
39 namespace Akonadi {
65 class AKONADI_CONTACT_EXPORT EmailAddressSelectionWidget : public QWidget
66 {
67  Q_OBJECT
68 
69 public:
75  explicit EmailAddressSelectionWidget(QWidget *parent = nullptr);
76 
83  explicit EmailAddressSelectionWidget(QAbstractItemModel *model, QWidget *parent = nullptr);
84 
91  explicit EmailAddressSelectionWidget(bool showOnlyContactWithEmail, QAbstractItemModel *model = nullptr, QWidget *parent = nullptr);
92 
97 
101  Q_REQUIRED_RESULT EmailAddressSelection::List selectedAddresses() const;
102 
106  QLineEdit *searchLineEdit() const;
107 
111  QTreeView *view() const;
112 
113 Q_SIGNALS:
117  void doubleClicked();
118 private:
119  //@cond PRIVATE
120  class Private;
121  Private *const d;
122  //@endcond
123 };
124 }
125 
126 #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 Sat Jul 4 2020 23:08:30 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.