• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

mailtransport

MailTransport::SentBehaviourAttribute

MailTransport::SentBehaviourAttribute Class Reference

Attribute determining what will happen to a message after it is sent. More...

#include <sentbehaviourattribute.h>

Inherits Akonadi::Attribute.

List of all members.

Public Types

enum  SentBehaviour { Delete, MoveToCollection, MoveToDefaultSentCollection }

Public Member Functions

 SentBehaviourAttribute (SentBehaviour beh=MoveToDefaultSentCollection, Akonadi::Collection moveToCollection=Akonadi::Collection(-1))
virtual ~SentBehaviourAttribute ()
virtual SentBehaviourAttribute * clone () const
virtual void deserialize (const QByteArray &data)
Akonadi::Collection moveToCollection () const
SentBehaviour sentBehaviour () const
virtual QByteArray serialized () const
void setMoveToCollection (Akonadi::Collection moveToCollection)
void setSentBehaviour (SentBehaviour beh)
virtual QByteArray type () const

Detailed Description

Attribute determining what will happen to a message after it is sent.

The message can be deleted from the Outbox, moved to the default sent-mail collection, or moved to a custom collection.

Author:
Constantin Berzan <exit3219@gmail.com>
Since:
4.4

Definition at line 38 of file sentbehaviourattribute.h.


Member Enumeration Documentation

enum MailTransport::SentBehaviourAttribute::SentBehaviour

What to do with the item in the outbox after it has been sent successfully.

Enumerator:
Delete 

Delete the item from the outbox.

MoveToCollection 

Move the item to a custom collection.

MoveToDefaultSentCollection 

Move the item to the default sent-mail collection.

Definition at line 44 of file sentbehaviourattribute.h.


Constructor & Destructor Documentation

MailTransport::SentBehaviourAttribute::SentBehaviourAttribute ( SentBehaviour  beh = MoveToDefaultSentCollection,
Akonadi::Collection  moveToCollection = Akonadi::Collection(-1) 
) [explicit]

Creates a new SentBehaviourAttribute.

SentBehaviourAttribute::~SentBehaviourAttribute (  )  [virtual]

Destroys the SentBehaviourAttribute.

Definition at line 43 of file sentbehaviourattribute.cpp.


Member Function Documentation

Collection SentBehaviourAttribute::moveToCollection (  )  const

Returns the collection to which the item should be moved after it is sent.

Only valid if sentBehaviour() is MoveToCollection.

Definition at line 97 of file sentbehaviourattribute.cpp.

SentBehaviourAttribute::SentBehaviour SentBehaviourAttribute::sentBehaviour (  )  const

Returns the sent-behaviour of the message.

See also:
SentBehaviour.

Definition at line 87 of file sentbehaviourattribute.cpp.

void MailTransport::SentBehaviourAttribute::setMoveToCollection ( Akonadi::Collection  moveToCollection  ) 

Sets the collection to which the item should be moved after it is sent.

Make sure you set the SentBehaviour to MoveToCollection first.

See also:
setSentBehaviour.
void SentBehaviourAttribute::setSentBehaviour ( SentBehaviour  beh  ) 

Sets the sent-behaviour of the message.

See also:
SentBehaviour.

Definition at line 92 of file sentbehaviourattribute.cpp.


The documentation for this class was generated from the following files:
  • sentbehaviourattribute.h
  • sentbehaviourattribute.cpp

mailtransport

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
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