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

mailtransport

  • MailTransport
  • SmtpJob
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
MailTransport::SmtpJob Class Reference

#include <smtpjob.h>

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

Public Member Functions

 SmtpJob (Transport *transport, QObject *parent=0)
 
virtual ~SmtpJob ()
 
- Public Member Functions inherited from MailTransport::TransportJob
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 Slots

void slaveError (KIO::Slave *slave, int errorCode, const QString &errorMsg)
 
virtual void slotResult (KJob *job)
 

Protected Member Functions

virtual bool doKill ()
 
virtual void doStart ()
 
- Protected Member Functions inherited from MailTransport::TransportJob
 TransportJob (Transport *transport, QObject *parent=0)
 
QStringList bcc () const
 
QBuffer * buffer ()
 
QStringList cc () const
 
QByteArray data () const
 
QString sender () const
 
QStringList to () const
 

Detailed Description

Mail transport job for SMTP.

Internally, all jobs for a specific transport are queued to use the same KIO::Slave. This avoids multiple simultaneous connections to the server, which is not always allowed. Also, re-using an already existing connection avoids the login overhead and can improve performance.

Precommands are automatically executed, once per opening a connection to the server (not necessarily once per message).

Deprecated:
Use MessageQueueJob for sending e-mail.

Definition at line 51 of file smtpjob.h.

Constructor & Destructor Documentation

SmtpJob::SmtpJob ( Transport *  transport,
QObject *  parent = 0 
)
explicit

Creates a SmtpJob.

Parameters
transportThe transport settings.
parentThe parent object.

Definition at line 94 of file smtpjob.cpp.

SmtpJob::~SmtpJob ( )
virtual

Deletes this job.

Definition at line 107 of file smtpjob.cpp.

Member Function Documentation

void SmtpJob::doStart ( )
protectedvirtual

Do the actual work, implement in your subclass.

Implements MailTransport::TransportJob.

Definition at line 124 of file smtpjob.cpp.


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