mailtransport
MailTransport::TransportJob Class Reference
#include <transportjob.h>

Detailed Description
Abstract base class for all mail transport jobs.This is a job that is supposed to send exactly one mail.
Definition at line 37 of file transportjob.h.
Public Member Functions | |
virtual | ~TransportJob () |
void | setSender (const QString &sender) |
void | setTo (const QStringList &to) |
void | setCc (const QStringList &cc) |
void | setBcc (const QStringList &bcc) |
void | setData (const QByteArray &data) |
virtual void | start () |
Transport * | transport () const |
Protected Member Functions | |
TransportJob (Transport *transport, QObject *parent=0) | |
QString | sender () const |
QStringList | to () const |
QStringList | cc () const |
QStringList | bcc () const |
QByteArray | data () const |
QBuffer * | buffer () |
virtual void | doStart ()=0 |
Friends | |
class | TransportManager |
Constructor & Destructor Documentation
TransportJob::~TransportJob | ( | ) | [virtual] |
TransportJob::TransportJob | ( | Transport * | transport, | |
QObject * | parent = 0 | |||
) | [explicit, protected] |
Creates a new mail transport job.
- Parameters:
-
transport The transport configuration. This must be a deep copy of a Transport object, the job takes the ownership of this object. parent The parent object.
Definition at line 41 of file transportjob.cpp.
Member Function Documentation
void TransportJob::setSender | ( | const QString & | sender | ) |
void TransportJob::setTo | ( | const QStringList & | to | ) |
void TransportJob::setCc | ( | const QStringList & | cc | ) |
void TransportJob::setBcc | ( | const QStringList & | bcc | ) |
void TransportJob::setData | ( | const QByteArray & | data | ) |
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 121 of file transportjob.cpp.
Transport * TransportJob::transport | ( | ) | const |
Returns the Transport object containing the mail transport settings.
Definition at line 80 of file transportjob.cpp.
QString TransportJob::sender | ( | ) | const [protected] |
QStringList TransportJob::to | ( | ) | const [protected] |
QStringList TransportJob::cc | ( | ) | const [protected] |
QStringList TransportJob::bcc | ( | ) | const [protected] |
QByteArray TransportJob::data | ( | ) | const [protected] |
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 110 of file transportjob.cpp.
virtual void MailTransport::TransportJob::doStart | ( | ) | [protected, pure virtual] |
Do the actual work, implement in your subclass.
Implemented in MailTransport::SendmailJob, and MailTransport::SmtpJob.
The documentation for this class was generated from the following files: