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

mailtransport

  • MailTransport
  • TransportJob
Public Member Functions | Protected Member Functions | List of all members
MailTransport::TransportJob Class Referenceabstract

#include <transportjob.h>

Inheritance diagram for MailTransport::TransportJob:
Inheritance graph
[legend]

Public Member Functions

virtual ~TransportJob ()
 
void setBcc (const QStringList &bcc)
 
void setCc (const QStringList &cc)
 
void setData (const QByteArray &data)
 
void setSender (const QString &sender)
 
void setTo (const QStringList &to)
 
virtual void start ()
 
Transport * transport () const
 

Protected Member Functions

 TransportJob (Transport *transport, QObject *parent=0)
 
QStringList bcc () const
 
QBuffer * buffer ()
 
QStringList cc () const
 
QByteArray data () const
 
virtual void doStart ()=0
 
QString sender () const
 
QStringList to () const
 

Detailed Description

Abstract base class for all mail transport jobs.

This is a job that is supposed to send exactly one mail.

Deprecated:
Use MessageQueueJob for sending e-mail.

Definition at line 41 of file transportjob.h.

Constructor & Destructor Documentation

TransportJob::~TransportJob ( )
virtual

Deletes this transport job.

Definition at line 48 of file transportjob.cpp.

TransportJob::TransportJob ( Transport *  transport,
QObject *  parent = 0 
)
explicitprotected

Creates a new mail transport job.

Parameters
transportThe transport configuration. This must be a deep copy of a Transport object, the job takes the ownership of this object.
parentThe parent object.
See also
TransportManager::createTransportJob()

Definition at line 41 of file transportjob.cpp.

Member Function Documentation

QStringList TransportJob::bcc ( ) const
protected

Returns the "Bcc" receiver(s) of the mail.

Definition at line 99 of file transportjob.cpp.

QBuffer * TransportJob::buffer ( )
protected

Returns a QBuffer opened on the message data.

This is useful for processing the data in smaller chunks.

Definition at line 109 of file transportjob.cpp.

QStringList TransportJob::cc ( ) const
protected

Returns the "Cc" receiver(s) of the mail.

Definition at line 94 of file transportjob.cpp.

QByteArray TransportJob::data ( ) const
protected

Returns the data of the mail.

Definition at line 104 of file transportjob.cpp.

virtual void MailTransport::TransportJob::doStart ( )
protectedpure virtual

Do the actual work, implement in your subclass.

Implemented in MailTransport::SmtpJob, MailTransport::ResourceSendJob, and MailTransport::SendmailJob.

QString TransportJob::sender ( ) const
protected

Returns the sender of the mail.

Definition at line 84 of file transportjob.cpp.

void TransportJob::setBcc ( const QStringList &  bcc)

Sets the "Bcc" receiver(s) of the mail.

bcc must be the plain email address(es), not including display name.

Definition at line 69 of file transportjob.cpp.

void TransportJob::setCc ( const QStringList &  cc)

Sets the "Cc" receiver(s) of the mail.

cc must be the plain email address(es), not including display name.

Definition at line 64 of file transportjob.cpp.

void TransportJob::setData ( const QByteArray &  data)

Sets the content of the mail.

Definition at line 74 of file transportjob.cpp.

void TransportJob::setSender ( const QString &  sender)

Sets the sender of the mail.

sender must be the plain email address, not including display name.

Definition at line 54 of file transportjob.cpp.

void TransportJob::setTo ( const QStringList &  to)

Sets the "To" receiver(s) of the mail.

to must be the plain email address(es), not including display name.

Definition at line 59 of file transportjob.cpp.

void TransportJob::start ( )
virtual

Starts this job.

It is recommended to not call this method directly but use TransportManager::schedule() to execute the job instead.

See also
TransportManager::schedule()

Definition at line 120 of file transportjob.cpp.

QStringList TransportJob::to ( ) const
protected

Returns the "To" receiver(s) of the mail.

Definition at line 89 of file transportjob.cpp.

Transport * TransportJob::transport ( ) const

Returns the Transport object containing the mail transport settings.

Definition at line 79 of file transportjob.cpp.


The documentation for this class was generated from the following files:
  • transportjob.h
  • transportjob.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