File indexing completed on 2024-05-12 05:11:11

0001 /*
0002     SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company, <info@kdab.com>
0003     SPDX-FileCopyrightText: 2010 Andras Mantia <andras@kdab.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include "akonadi-mime_export.h"
0011 #include "commandbase.h"
0012 #include <Akonadi/Collection>
0013 #include <Akonadi/Item>
0014 
0015 #include <memory>
0016 
0017 class KJob;
0018 namespace Akonadi
0019 {
0020 class MoveCommandPrivate;
0021 class AKONADI_MIME_EXPORT MoveCommand : public CommandBase
0022 {
0023     Q_OBJECT
0024 public:
0025     MoveCommand(const Akonadi::Collection &destFolder, const Akonadi::Item::List &msgList, QObject *parent = nullptr);
0026     ~MoveCommand() override;
0027     void execute() override;
0028 
0029 private:
0030     AKONADI_MIME_NO_EXPORT void slotMoveResult(KJob *job);
0031     std::unique_ptr<MoveCommandPrivate> const d;
0032 };
0033 }