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

0001 /*
0002     SPDX-FileCopyrightText: 2015-2019 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "ewsabstractchunkedjob.h"
0010 #include "ewsmodifyitemjob.h"
0011 #include "ewsupdateitemrequest.h"
0012 
0013 class EwsModifyMailJob : public EwsModifyItemJob
0014 {
0015     Q_OBJECT
0016 public:
0017     EwsModifyMailJob(EwsClient &client, const Akonadi::Item::List &items, const QSet<QByteArray> &parts, QObject *parent);
0018     ~EwsModifyMailJob() override;
0019     void start() override;
0020 
0021 private:
0022     void updateItemsFinished(bool success, const QString &error);
0023 
0024     EwsAbstractChunkedJob<EwsUpdateItemRequest, EwsUpdateItemRequest::ItemChange, EwsUpdateItemRequest::Response> mChunkedJob;
0025 };