• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 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
42namespace MailTransport {
43
86class MAILTRANSPORT_EXPORT MessageQueueJob : public KCompositeJob
87{
88 Q_OBJECT
89
90 public:
96 explicit MessageQueueJob( QObject *parent = 0 );
97
102 virtual ~MessageQueueJob();
103
107 KMime::Message::Ptr message() const;
108
113 DispatchModeAttribute &dispatchModeAttribute();
114
120 Akonadi::AddressAttribute &addressAttribute();
121
127 TransportAttribute &transportAttribute();
128
133 SentBehaviourAttribute &sentBehaviourAttribute();
134
139 SentActionAttribute &sentActionAttribute();
140
144 void setMessage( KMime::Message::Ptr message );
145
150 virtual void start();
151
152 protected Q_SLOTS:
158 virtual void slotResult( KJob * );
159
160 private:
161 class Private;
162 friend class Private;
163 Private *const d;
164
165 Q_PRIVATE_SLOT( d, void outboxRequestResult( KJob* ) )
166
167};
168
169} // namespace MailTransport
170
171#endif // MAILTRANSPORT_MESSAGEQUEUEJOB_H
MailTransport::DispatchModeAttribute
Attribute determining how and when a message from the outbox should be dispatched.
Definition dispatchmodeattribute.h:40
MailTransport::MessageQueueJob
Provides an interface for sending email.
Definition messagequeuejob.h:87
MailTransport::SentActionAttribute
An Attribute that stores the action to execute after sending.
Definition sentactionattribute.h:44
MailTransport::SentBehaviourAttribute
Attribute determining what will happen to a message after it is sent.
Definition sentbehaviourattribute.h:39
MailTransport::TransportAttribute
Attribute determining which transport to use for sending a message.
Definition transportattribute.h:41
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.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.14.10 API Reference

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