• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

mailtransport

messagequeuejob.h

00001 /*
00002     Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
00003 
00004     This library is free software; you can redistribute it and/or modify it
00005     under the terms of the GNU Library General Public License as published by
00006     the Free Software Foundation; either version 2 of the License, or (at your
00007     option) any later version.
00008 
00009     This library is distributed in the hope that it will be useful, but WITHOUT
00010     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00011     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00012     License for more details.
00013 
00014     You should have received a copy of the GNU Library General Public License
00015     along with this library; see the file COPYING.LIB.  If not, write to the
00016     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00017     02110-1301, USA.
00018 */
00019 
00020 #ifndef MAILTRANSPORT_MESSAGEQUEUEJOB_H
00021 #define MAILTRANSPORT_MESSAGEQUEUEJOB_H
00022 
00023 #include <mailtransport/mailtransport_export.h>
00024 
00025 #include "dispatchmodeattribute.h"
00026 #include "sentbehaviourattribute.h"
00027 #include "transportattribute.h"
00028 
00029 #include <QtCore/QDateTime>
00030 #include <QtCore/QString>
00031 #include <QtCore/QStringList>
00032 
00033 #include <KDE/KCompositeJob>
00034 
00035 #include <akonadi/collection.h>
00036 #include <akonadi/kmime/addressattribute.h>
00037 
00038 #include <kmime/kmime_message.h>
00039 #include <boost/shared_ptr.hpp>
00040 
00041 namespace MailTransport {
00042 
00084 class MAILTRANSPORT_EXPORT MessageQueueJob : public KCompositeJob
00085 {
00086   Q_OBJECT
00087 
00088   public:
00093     explicit MessageQueueJob( QObject *parent = 0 );
00094 
00099     virtual ~MessageQueueJob();
00100 
00104     KMime::Message::Ptr message() const;
00105 
00110     DispatchModeAttribute& dispatchModeAttribute();
00111 
00117     Akonadi::AddressAttribute& addressAttribute();
00118 
00124     TransportAttribute& transportAttribute();
00125 
00130     SentBehaviourAttribute& sentBehaviourAttribute();
00131 
00135     void setMessage( KMime::Message::Ptr message );
00136 
00141     virtual void start();
00142 
00143   protected Q_SLOTS:
00149     virtual void slotResult( KJob * );
00150 
00151   private:
00152     class Private;
00153     friend class Private;
00154     Private *const d;
00155 
00156     Q_PRIVATE_SLOT( d, void outboxRequestResult( KJob* ) )
00157 
00158 };
00159 
00160 } // namespace MailTransport
00161 
00162 #endif // MAILTRANSPORT_MESSAGEQUEUEJOB_H

mailtransport

Skip menu "mailtransport"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal