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

mailtransport

smtpjob.h
00001 /*
00002     Copyright (c) 2007 Volker Krause <vkrause@kde.org>
00003 
00004     Based on KMail code by:
00005     Copyright (c) 1996-1998 Stefan Taferner <taferner@kde.org>
00006 
00007     This library is free software; you can redistribute it and/or modify it
00008     under the terms of the GNU Library General Public License as published by
00009     the Free Software Foundation; either version 2 of the License, or (at your
00010     option) any later version.
00011 
00012     This library is distributed in the hope that it will be useful, but WITHOUT
00013     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00014     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00015     License for more details.
00016 
00017     You should have received a copy of the GNU Library General Public License
00018     along with this library; see the file COPYING.LIB.  If not, write to the
00019     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020     02110-1301, USA.
00021 */
00022 
00023 #ifndef MAILTRANSPORT_SMTPJOB_H
00024 #define MAILTRANSPORT_SMTPJOB_H
00025 
00026 #include <mailtransport/transportjob.h>
00027 
00028 namespace KIO {
00029   class Job;
00030   class Slave;
00031 }
00032 
00033 class SmtpJobPrivate;
00034 
00035 namespace MailTransport {
00036 
00037 class SmtpSession;
00038 
00051 class MAILTRANSPORT_EXPORT_DEPRECATED SmtpJob : public TransportJob
00052 {
00053   Q_OBJECT
00054   public:
00060     explicit SmtpJob( Transport *transport, QObject *parent = 0 );
00061 
00065     virtual ~SmtpJob();
00066 
00067   protected:
00068     virtual void doStart();
00069     virtual bool doKill();
00070 
00071   protected Q_SLOTS:
00072     virtual void slotResult( KJob *job );
00073     void slaveError( KIO::Slave *slave, int errorCode, const QString &errorMsg );
00074 
00075   private:
00076     void startSmtpJob();
00077 
00078   private Q_SLOTS:
00079     void dataRequest( KIO::Job *job, QByteArray &data );
00080 
00081   private:
00082     friend class ::SmtpJobPrivate;
00083     SmtpJobPrivate *const d;
00084     Q_PRIVATE_SLOT( d, void smtpSessionResult( MailTransport::SmtpSession* ) )
00085 };
00086 
00087 } // namespace MailTransport
00088 
00089 #endif // MAILTRANSPORT_SMTPJOB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Thu May 10 2012 22:18:05 by doxygen 1.8.0 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-4.8.3 API Reference

Skip menu "kdepimlibs-4.8.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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