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

mailtransport

  • mailtransport
messagequeuejob.h
1 /*
2  Copyright (c) 2009 Constantin Berzan <exit3219@gmail.com>
3 
4  This library is free software; you can redistribute it and/or modify it
5  under the terms of the GNU Library General Public License as published by
6  the Free Software Foundation; either version 2 of the License, or (at your
7  option) any later version.
8 
9  This library is distributed in the hope that it will be useful, but WITHOUT
10  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
12  License for more details.
13 
14  You should have received a copy of the GNU Library General Public License
15  along with this library; see the file COPYING.LIB. If not, write to the
16  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17  02110-1301, USA.
18 */
19 
20 #ifndef MAILTRANSPORT_MESSAGEQUEUEJOB_H
21 #define MAILTRANSPORT_MESSAGEQUEUEJOB_H
22 
23 #include <mailtransport/mailtransport_export.h>
24 
25 #include "dispatchmodeattribute.h"
26 #include "sentactionattribute.h"
27 #include "sentbehaviourattribute.h"
28 #include "transportattribute.h"
29 
30 #include <QtCore/QDateTime>
31 #include <QtCore/QString>
32 #include <QtCore/QStringList>
33 
34 #include <KDE/KCompositeJob>
35 
36 #include <akonadi/collection.h>
37 #include <akonadi/kmime/addressattribute.h>
38 
39 #include <kmime/kmime_message.h>
40 #include <boost/shared_ptr.hpp>
41 
42 namespace MailTransport {
43 
86 class MAILTRANSPORT_EXPORT MessageQueueJob : public KCompositeJob
87 {
88  Q_OBJECT
89 
90  public:
95  explicit MessageQueueJob( QObject *parent = 0 );
96 
101  virtual ~MessageQueueJob();
102 
106  KMime::Message::Ptr message() const;
107 
112  DispatchModeAttribute &dispatchModeAttribute();
113 
119  Akonadi::AddressAttribute &addressAttribute();
120 
126  TransportAttribute &transportAttribute();
127 
132  SentBehaviourAttribute &sentBehaviourAttribute();
133 
138  SentActionAttribute &sentActionAttribute();
139 
143  void setMessage( KMime::Message::Ptr message );
144 
149  virtual void start();
150 
151  protected Q_SLOTS:
157  virtual void slotResult( KJob * );
158 
159  private:
160  class Private;
161  friend class Private;
162  Private *const d;
163 
164  Q_PRIVATE_SLOT( d, void outboxRequestResult( KJob* ) )
165 
166 };
167 
168 } // namespace MailTransport
169 
170 #endif // MAILTRANSPORT_MESSAGEQUEUEJOB_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:26:52 by doxygen 1.8.3.1 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.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 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
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