Make the KOrganizer plugin loading work again.
[kdepim.git] / incidenceeditor-ng / src / opencomposerjob.h
blob2461e78bc34f8f69b25f0cff6a3a280ea2629073
1 /*
2 * Copyright (c) 2014 Sandro Knauß <knauss@kolabsys.com>
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.
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.
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.
20 #ifndef INCIDENCEEDITOR_OPENCOMPOSERJOB_H
21 #define INCIDENCEEDITOR_OPENCOMPOSERJOB_H
23 #include <KIdentityManagement/Identity>
24 #include <kmime/kmime_message.h>
26 #include <KJob>
27 namespace IncidenceEditorNG
30 // Opens a Composer with a mail with one attachment (costructed my ITIPHandler)
31 class OpenComposerJob : public KJob
33 Q_OBJECT
35 public:
36 explicit OpenComposerJob(QObject *parent,
37 const QString &to, const QString &cc, const QString &bcc,
38 const KMime::Message::Ptr &message, const KIdentityManagement::Identity &identity);
39 virtual ~OpenComposerJob();
41 void start() Q_DECL_OVERRIDE;
43 private Q_SLOTS:
44 void slotServiceOwnerChanged(const QString &, const QString &, const QString &);
45 void timeout();
46 void processMail();
48 private:
49 QString mDBusService;
50 QString mError;
51 QString mTo, mCc, mBcc;
52 KMime::Message::Ptr mMessage;
53 KIdentityManagement::Identity mIdentity;
54 bool mSuccess;
58 #endif