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

mailtransport

  • MailTransport
  • SentBehaviourAttribute
Public Types | Public Member Functions | List of all members
MailTransport::SentBehaviourAttribute Class Reference

#include <sentbehaviourattribute.h>

Inherits Akonadi::Attribute.

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 exit3.nosp@m.219@.nosp@m.gmail.nosp@m..com
Since
4.4

Definition at line 38 of file sentbehaviourattribute.h.

Member Enumeration Documentation

◆ SentBehaviour

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

◆ SentBehaviourAttribute()

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

Creates a new SentBehaviourAttribute.

Definition at line 35 of file sentbehaviourattribute.cpp.

◆ ~SentBehaviourAttribute()

SentBehaviourAttribute::~SentBehaviourAttribute ( )
virtual

Destroys the SentBehaviourAttribute.

Definition at line 42 of file sentbehaviourattribute.cpp.

Member Function Documentation

◆ clone()

SentBehaviourAttribute * SentBehaviourAttribute::clone ( ) const
virtual

Definition at line 47 of file sentbehaviourattribute.cpp.

◆ deserialize()

void SentBehaviourAttribute::deserialize ( const QByteArray & data)
virtual

Definition at line 70 of file sentbehaviourattribute.cpp.

◆ moveToCollection()

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 96 of file sentbehaviourattribute.cpp.

◆ sentBehaviour()

SentBehaviourAttribute::SentBehaviour SentBehaviourAttribute::sentBehaviour ( ) const

Returns the sent-behaviour of the message.

See also
SentBehaviour.

Definition at line 86 of file sentbehaviourattribute.cpp.

◆ serialized()

QByteArray SentBehaviourAttribute::serialized ( ) const
virtual

Definition at line 58 of file sentbehaviourattribute.cpp.

◆ setMoveToCollection()

void 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.

Parameters
moveToCollectiontarget collection for "move to" operation
See also
setSentBehaviour.

Definition at line 101 of file sentbehaviourattribute.cpp.

◆ setSentBehaviour()

void SentBehaviourAttribute::setSentBehaviour ( SentBehaviour beh)

Sets the sent-behaviour of the message.

Parameters
behthe sent-behaviour to set
See also
SentBehaviour.

Definition at line 91 of file sentbehaviourattribute.cpp.

◆ type()

QByteArray SentBehaviourAttribute::type ( ) const
virtual

Definition at line 52 of file sentbehaviourattribute.cpp.


The documentation for this class was generated from the following files:
  • sentbehaviourattribute.h
  • sentbehaviourattribute.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 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