File indexing completed on 2024-10-27 04:50:49

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <Akonadi/Item>
0010 #include <QObject>
0011 
0012 class KJob;
0013 
0014 class SendLaterRemoveMessageJob : public QObject
0015 {
0016     Q_OBJECT
0017 public:
0018     explicit SendLaterRemoveMessageJob(const QList<Akonadi::Item::Id> &listItem, QObject *parent = nullptr);
0019     ~SendLaterRemoveMessageJob() override;
0020 
0021     void start();
0022 
0023 private:
0024     void slotItemDeleteDone(KJob *job);
0025     void removeMessageItem();
0026     const QList<Akonadi::Item::Id> mListItems;
0027     int mIndex = 0;
0028 };