MailTransport::TransportJob
#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.
- Deprecated
- Use MessageQueueJob for sending e-mail.
Definition at line 30 of file transportjob.h.
Constructor & Destructor Documentation
◆ ~TransportJob()
|
override |
Deletes this transport job.
Definition at line 37 of file transportjob.cpp.
◆ TransportJob()
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 29 of file transportjob.cpp.
Member Function Documentation
◆ bcc()
|
protected |
Returns the "Bcc" receiver(s) of the mail.
Definition at line 92 of file transportjob.cpp.
◆ buffer()
|
protected |
Returns a QBuffer opened on the message data.
This is useful for processing the data in smaller chunks.
Definition at line 102 of file transportjob.cpp.
◆ cc()
|
protected |
Returns the "Cc" receiver(s) of the mail.
Definition at line 87 of file transportjob.cpp.
◆ data()
|
protected |
Returns the data of the mail.
Definition at line 97 of file transportjob.cpp.
◆ deliveryStatusNotification()
|
protected |
Returns true if DSN is enabled.
Definition at line 113 of file transportjob.cpp.
◆ doStart()
Do the actual work, implement in your subclass.
Implemented in MailTransport::SmtpJob.
◆ sender()
|
protected |
Returns the sender of the mail.
Definition at line 77 of file transportjob.cpp.
◆ setBcc()
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 57 of file transportjob.cpp.
◆ setCc()
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 52 of file transportjob.cpp.
◆ setData()
void TransportJob::setData | ( | const QByteArray & | data | ) |
Sets the content of the mail.
Definition at line 62 of file transportjob.cpp.
◆ setDeliveryStatusNotification()
void TransportJob::setDeliveryStatusNotification | ( | bool | enabled | ) |
Sets the content of the mail.
Definition at line 72 of file transportjob.cpp.
◆ setSender()
Sets the sender of the mail.
sender
must be the plain email address, not including display name.
Definition at line 42 of file transportjob.cpp.
◆ setTo()
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 47 of file transportjob.cpp.
◆ start()
|
overridevirtual |
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()
Implements KJob.
Definition at line 118 of file transportjob.cpp.
◆ to()
|
protected |
Returns the "To" receiver(s) of the mail.
Definition at line 82 of file transportjob.cpp.
◆ transport()
Transport * TransportJob::transport | ( | ) | const |
Returns the Transport object containing the mail transport settings.
Definition at line 67 of file transportjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:37 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.