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

mailtransport

  • mailtransport
sentbehaviourattribute.h
1/*
2 Copyright 2009 Constantin Berzan <exit3219@gmail.com>
3
4 This library is free software; you can redistribute it and/or modify it
5 under the terms of the GNU Library General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or (at your
7 option) any later version.
8
9 This library is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12 License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to the
16 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 02110-1301, USA.
18*/
19
20#ifndef MAILTRANSPORT_SENTBEHAVIOURATTRIBUTE_H
21#define MAILTRANSPORT_SENTBEHAVIOURATTRIBUTE_H
22
23#include <mailtransport/mailtransport_export.h>
24
25#include <akonadi/attribute.h>
26#include <akonadi/collection.h>
27
28namespace MailTransport {
29
38class MAILTRANSPORT_EXPORT SentBehaviourAttribute : public Akonadi::Attribute
39{
40 public:
44 enum SentBehaviour {
45 Delete,
46 MoveToCollection,
47 MoveToDefaultSentCollection
48 };
49
53 explicit SentBehaviourAttribute( SentBehaviour beh = MoveToDefaultSentCollection,
54 Akonadi::Collection moveToCollection = Akonadi::Collection( -1 ) );
55
59 virtual ~SentBehaviourAttribute();
60
61 /* reimpl */
62 virtual SentBehaviourAttribute *clone() const;
63 virtual QByteArray type() const;
64 virtual QByteArray serialized() const;
65 virtual void deserialize( const QByteArray &data );
66
71 SentBehaviour sentBehaviour() const;
72
78 void setSentBehaviour( SentBehaviour beh );
79
84 Akonadi::Collection moveToCollection() const;
85
92 void setMoveToCollection( Akonadi::Collection moveToCollection );
93
94 private:
95 class Private;
96 Private *const d;
97
98};
99
100} // namespace MailTransport
101
102#endif // MAILTRANSPORT_SENTBEHAVIOURATTRIBUTE_H
MailTransport::SentBehaviourAttribute
Attribute determining what will happen to a message after it is sent.
Definition: sentbehaviourattribute.h:39
MailTransport::SentBehaviourAttribute::SentBehaviour
SentBehaviour
What to do with the item in the outbox after it has been sent successfully.
Definition: sentbehaviourattribute.h:44
MailTransport::SentBehaviourAttribute::Delete
@ Delete
Delete the item from the outbox.
Definition: sentbehaviourattribute.h:45
MailTransport::SentBehaviourAttribute::MoveToCollection
@ MoveToCollection
Move the item to a custom collection.
Definition: sentbehaviourattribute.h:46
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 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-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 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
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