Mailcommon

expiredeletejob.h
1/**
2 * SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#pragma once
8
9#include <Akonadi/Item>
10#include <QObject>
11
13{
15public:
16 explicit ExpireDeleteJob(QObject *parent = nullptr);
17 ~ExpireDeleteJob() override;
18
19 [[nodiscard]] Akonadi::Item::List removedMsgs() const;
20 void setRemovedMsgs(const Akonadi::Item::List &newRemovedMsgs);
21
22 void start();
23
24 [[nodiscard]] QString sourceFolderName() const;
25 void setSourceFolderName(const QString &newSourceFolderName);
26
28 void expireDeleteDone();
29
30private:
31 void finished();
32 void slotExpireDone(KJob *job);
33 QString mSourceFolderName;
34 Akonadi::Item::List mRemovedMsgs;
35 QList<KJob *> mRunningJobs;
36};
SPDX-FileCopyrightText: 2024 Laurent Montel montel@kde.org
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.