Akonadi Contacts

emailaddressselection.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_EMAILADDRESSSELECTION_H
24 #define AKONADI_EMAILADDRESSSELECTION_H
25 
26 #include "akonadi-contact_export.h"
27 
28 #include <QVector>
29 #include <QSharedDataPointer>
30 #include <QString>
31 
32 namespace Akonadi {
33 class Item;
34 
48 class AKONADI_CONTACT_EXPORT EmailAddressSelection
49 {
50 public:
55 
60 
65 
69  EmailAddressSelection &operator=(const EmailAddressSelection &other);
70 
75 
79  Q_REQUIRED_RESULT bool isValid() const;
80 
84  Q_REQUIRED_RESULT QString name() const;
85 
92  Q_REQUIRED_RESULT QString email() const;
93 
100  Q_REQUIRED_RESULT QString quotedEmail() const;
101 
105  Q_REQUIRED_RESULT Akonadi::Item item() const;
106 
107 private:
108  //@cond PRIVATE
109  friend class EmailAddressSelectionWidget;
110 
111  class Private;
113  //@endcond
114 };
115 }
116 
117 Q_DECLARE_TYPEINFO(Akonadi::EmailAddressSelection, Q_MOVABLE_TYPE);
118 
119 #endif
An selection of an email address and corresponding name.
A widget to select email addresses from Akonadi.
QVector< EmailAddressSelection > List
A list of email address selection objects.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Aug 3 2020 23:07:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.