• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

mailtransport

  • sources
  • kde-4.14
  • kdepimlibs
  • mailtransport
sentactionattribute.h
1 /*
2  Copyright (C) 2010 Klarälvdalens Datakonsult AB,
3  a KDAB Group company, info@kdab.net,
4  author Tobias Koenig <tokoe@kdab.com>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef MAILTRANSPORT_SENTACTIONATTRIBUTE_H
23 #define MAILTRANSPORT_SENTACTIONATTRIBUTE_H
24 
25 #include <mailtransport/mailtransport_export.h>
26 
27 #include <QtCore/QSharedDataPointer>
28 #include <QtCore/QVariant>
29 
30 #include <akonadi/attribute.h>
31 
32 namespace MailTransport {
33 
43 class MAILTRANSPORT_EXPORT SentActionAttribute : public Akonadi::Attribute
44 {
45  public:
49  class MAILTRANSPORT_EXPORT Action
50  {
51  public:
55  enum Type {
56  Invalid,
57  MarkAsReplied,
58  MarkAsForwarded
59  };
60 
64  typedef QList<Action> List;
65 
69  Action();
70 
77  Action( Type type, const QVariant &value );
78 
82  Action( const Action &other );
83 
87  ~Action();
88 
92  Type type() const;
93 
97  QVariant value() const;
98 
102  Action &operator=( const Action &other );
103 
107  bool operator==( const Action &other ) const;
108 
109  private:
110  //@cond PRIVATE
111  class Private;
112  QSharedDataPointer<Private> d;
113  //@endcond
114  };
115 
119  explicit SentActionAttribute();
120 
124  virtual ~SentActionAttribute();
125 
132  void addAction( Action::Type type, const QVariant &value );
133 
137  Action::List actions() const;
138 
139  /* reimpl */
140  virtual SentActionAttribute *clone() const;
141  virtual QByteArray type() const;
142  virtual QByteArray serialized() const;
143  virtual void deserialize( const QByteArray &data );
144 
145  private:
146  //@cond PRIVATE
147  class Private;
148  Private *const d;
149  //@endcond
150 };
151 
152 }
153 
154 #endif
MailTransport::SentActionAttribute::Action
A sent action.
Definition: sentactionattribute.h:49
QByteArray
MailTransport::SentActionAttribute::Action::MarkAsReplied
The message will be marked as replied.
Definition: sentactionattribute.h:57
QList< Action >
MailTransport::SentActionAttribute::Action::List
QList< Action > List
Describes a list of sent actions.
Definition: sentactionattribute.h:64
MailTransport::SentActionAttribute::Action::Invalid
An invalid action.
Definition: sentactionattribute.h:56
MailTransport::SentActionAttribute
An Attribute that stores the action to execute after sending.
Definition: sentactionattribute.h:43
MailTransport::SentActionAttribute::Action::Type
Type
Describes the action type.
Definition: sentactionattribute.h:55
QSharedDataPointer
QVariant
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:48 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailtransport

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal