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
20 #ifndef INCIDENCEEDITOR_OPENCOMPOSERJOB_H
21 #define INCIDENCEEDITOR_OPENCOMPOSERJOB_H
23 #include <KIdentityManagement/Identity>
24 #include <kmime/kmime_message.h>
27 namespace IncidenceEditorNG
30 // Opens a Composer with a mail with one attachment (costructed my ITIPHandler)
31 class OpenComposerJob
: public KJob
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
;
44 void slotServiceOwnerChanged(const QString
&, const QString
&, const QString
&);
51 QString mTo
, mCc
, mBcc
;
52 KMime::Message::Ptr mMessage
;
53 KIdentityManagement::Identity mIdentity
;