File indexing completed on 2024-10-27 04:51:07
0001 /* 0002 SPDX-FileCopyrightText: 2014-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 0006 */ 0007 0008 #pragma once 0009 0010 #include <Akonadi/Collection> 0011 #include <KJob> 0012 #include <KMime/KMimeMessage> 0013 0014 class SaveDraftJob : public KJob 0015 { 0016 Q_OBJECT 0017 public: 0018 explicit SaveDraftJob(const KMime::Message::Ptr &msg, const Akonadi::Collection &col, QObject *parent = nullptr); 0019 ~SaveDraftJob() override; 0020 0021 void start() override; 0022 0023 private: 0024 void slotStoreDone(KJob *job); 0025 KMime::Message::Ptr mMsg = nullptr; 0026 const Akonadi::Collection mCollection; 0027 };