• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

mailtransport

sentactionattribute.h
00001 /*
00002     Copyright (C) 2010 Klarälvdalens Datakonsult AB,
00003         a KDAB Group company, info@kdab.net,
00004         author Tobias Koenig <tokoe@kdab.com>
00005 
00006     This library is free software; you can redistribute it and/or modify it
00007     under the terms of the GNU Library General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or (at your
00009     option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful, but WITHOUT
00012     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014     License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to the
00018     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019     02110-1301, USA.
00020 */
00021 
00022 #ifndef MAILTRANSPORT_SENTACTIONATTRIBUTE_H
00023 #define MAILTRANSPORT_SENTACTIONATTRIBUTE_H
00024 
00025 #include <mailtransport/mailtransport_export.h>
00026 
00027 #include <QtCore/QSharedDataPointer>
00028 #include <QtCore/QVariant>
00029 
00030 #include <akonadi/attribute.h>
00031 
00032 namespace MailTransport {
00033 
00043 class MAILTRANSPORT_EXPORT SentActionAttribute : public Akonadi::Attribute
00044 {
00045   public:
00049     class MAILTRANSPORT_EXPORT Action
00050     {
00051       public:
00055         enum Type
00056         {
00057           Invalid,         
00058           MarkAsReplied,   
00059           MarkAsForwarded  
00060         };
00061 
00065         typedef QList<Action> List;
00066 
00070         Action();
00071 
00078         Action( Type type, const QVariant &value );
00079 
00083         Action( const Action &other );
00084 
00088         ~Action();
00089 
00093         Type type() const;
00094 
00098         QVariant value() const;
00099 
00103         Action& operator=( const Action &other );
00104 
00108         bool operator==( const Action &other ) const;
00109 
00110       private:
00111         //@cond PRIVATE
00112         class Private;
00113         QSharedDataPointer<Private> d;
00114         //@endcond
00115     };
00116 
00120     explicit SentActionAttribute();
00121 
00125     virtual ~SentActionAttribute();
00126 
00133     void addAction( Action::Type type, const QVariant &value );
00134 
00138     Action::List actions() const;
00139 
00140     /* reimpl */
00141     virtual SentActionAttribute *clone() const;
00142     virtual QByteArray type() const;
00143     virtual QByteArray serialized() const;
00144     virtual void deserialize( const QByteArray &data );
00145 
00146   private:
00147     //@cond PRIVATE
00148     class Private;
00149     Private *const d;
00150     //@endcond
00151 };
00152 
00153 }
00154 
00155 #endif

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal