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

mailtransport

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

#include <dispatchmodeattribute.h>

Inherits Attribute.

Public Types

enum  DispatchMode { Automatic, Manual }
 

Public Member Functions

 DispatchModeAttribute (DispatchMode mode=Automatic)
 
virtual ~DispatchModeAttribute ()
 
virtual DispatchModeAttribute * clone () const
 
virtual void deserialize (const QByteArray &data)
 
DispatchMode dispatchMode () const
 
QDateTime sendAfter () const
 
virtual QByteArray serialized () const
 
void setDispatchMode (DispatchMode mode)
 
void setSendAfter (const QDateTime &date)
 
virtual QByteArray type () const
 

Detailed Description

Attribute determining how and when a message from the outbox should be dispatched.

Messages can be sent immediately, sent only when the user explicitly requests it, or sent automatically at a certain date and time.

Author
Constantin Berzan exit3.nosp@m.219@.nosp@m.gmail.nosp@m..com
Since
4.4

Definition at line 39 of file dispatchmodeattribute.h.

Member Enumeration Documentation

enum MailTransport::DispatchModeAttribute::DispatchMode

Determines how the message is sent.

Enumerator
Automatic 

Send message as soon as possible, but no earlier than specified by setSendAfter()

Manual 

Send message only when the user requests so.

Definition at line 45 of file dispatchmodeattribute.h.

Constructor & Destructor Documentation

DispatchModeAttribute::DispatchModeAttribute ( DispatchMode  mode = Automatic)
explicit

Creates a new DispatchModeAttribute.

Definition at line 36 of file dispatchmodeattribute.cpp.

DispatchModeAttribute::~DispatchModeAttribute ( )
virtual

Destroys the DispatchModeAttribute.

Definition at line 42 of file dispatchmodeattribute.cpp.

Member Function Documentation

DispatchModeAttribute::DispatchMode DispatchModeAttribute::dispatchMode ( ) const

Returns the dispatch mode for the message.

See also
DispatchMode.

Definition at line 94 of file dispatchmodeattribute.cpp.

QDateTime DispatchModeAttribute::sendAfter ( ) const

Returns the date and time when the message should be sent.

Only valid if dispatchMode() is Automatic.

Definition at line 104 of file dispatchmodeattribute.cpp.

void DispatchModeAttribute::setDispatchMode ( DispatchMode  mode)

Sets the dispatch mode for the message.

Parameters
modethe dispatch mode to set
See also
DispatchMode.

Definition at line 99 of file dispatchmodeattribute.cpp.

void DispatchModeAttribute::setSendAfter ( const QDateTime &  date)

Sets the date and time when the message should be sent.

Parameters
datethe date and time to set
See also
setDispatchMode.

Definition at line 109 of file dispatchmodeattribute.cpp.


The documentation for this class was generated from the following files:
  • dispatchmodeattribute.h
  • dispatchmodeattribute.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:49 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