00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef AKONADI_EMAILADDRESSSELECTION_H
00024 #define AKONADI_EMAILADDRESSSELECTION_H
00025
00026 #include "akonadi-contact_export.h"
00027
00028 #include <QtCore/QList>
00029 #include <QtCore/QSharedDataPointer>
00030 #include <QtCore/QString>
00031
00032 namespace Akonadi {
00033
00034 class Item;
00035
00049 class AKONADI_CONTACT_EXPORT EmailAddressSelection
00050 {
00051 public:
00055 typedef QList<EmailAddressSelection> List;
00056
00060 EmailAddressSelection();
00061
00065 EmailAddressSelection( const EmailAddressSelection &other );
00066
00070 EmailAddressSelection &operator=( const EmailAddressSelection &other );
00071
00075 ~EmailAddressSelection();
00076
00080 bool isValid() const;
00081
00085 QString name() const;
00086
00093 QString email() const;
00094
00101 QString quotedEmail() const;
00102
00106 Akonadi::Item item() const;
00107
00108 private:
00109
00110 friend class EmailAddressSelectionWidget;
00111
00112 class Private;
00113 QSharedDataPointer<Private> d;
00114
00115 };
00116
00117 }
00118
00119 #endif