Warning, file /pim/mailcommon/src/job/expiredeletejob.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /**
0002  * SPDX-FileCopyrightText: 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 ExpireDeleteJob : public QObject
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit ExpireDeleteJob(QObject *parent = nullptr);
0017     ~ExpireDeleteJob() override;
0018 
0019     [[nodiscard]] Akonadi::Item::List removedMsgs() const;
0020     void setRemovedMsgs(const Akonadi::Item::List &newRemovedMsgs);
0021 
0022     void start();
0023 
0024     [[nodiscard]] QString sourceFolderName() const;
0025     void setSourceFolderName(const QString &newSourceFolderName);
0026 
0027 Q_SIGNALS:
0028     void expireDeleteDone();
0029 
0030 private:
0031     void finished();
0032     void slotExpireDone(KJob *job);
0033     QString mSourceFolderName;
0034     Akonadi::Item::List mRemovedMsgs;
0035     QList<KJob *> mRunningJobs;
0036 };