akonadi
emailaddressselection.h
00001 /* 00002 This file is part of Akonadi Contact. 00003 00004 Copyright (c) 2010 KDAB 00005 Author: Tobias Koenig <tokoe@kde.org> 00006 00007 This library is free software; you can redistribute it and/or modify it 00008 under the terms of the GNU Library General Public License as published by 00009 the Free Software Foundation; either version 2 of the License, or (at your 00010 option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, but WITHOUT 00013 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00014 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public 00015 License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to the 00019 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00020 02110-1301, USA. 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 //@cond PRIVATE 00110 friend class EmailAddressSelectionWidget; 00111 00112 class Private; 00113 QSharedDataPointer<Private> d; 00114 //@endcond 00115 }; 00116 00117 } 00118 00119 Q_DECLARE_TYPEINFO( Akonadi::EmailAddressSelection, Q_MOVABLE_TYPE ); 00120 00121 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:22 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Aug 27 2012 22:09:22 by doxygen 1.7.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.