File indexing completed on 2024-11-24 04:43:49

0001 /*
0002     SPDX-FileCopyrightText: 2015-2016 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ewscreateitemjob.h"
0010 
0011 class EwsCreateMailJob : public EwsCreateItemJob
0012 {
0013     Q_OBJECT
0014 public:
0015     EwsCreateMailJob(EwsClient &client, const Akonadi::Item &item, const Akonadi::Collection &collection, EwsTagStore *tagStore, EwsResource *parent);
0016     ~EwsCreateMailJob() override;
0017     bool setSend(bool send = true) override;
0018 
0019 protected:
0020     void doStart() override;
0021 private Q_SLOTS:
0022     void mailCreateFinished(KJob *job);
0023     void mailCreateWorkaroundFinished(KJob *job);
0024     void mailMoveWorkaroundFinished(KJob *job);
0025 
0026 private:
0027     bool mSend = false;
0028 };