File indexing completed on 2024-11-17 04:45:06

0001 /*
0002     SPDX-FileCopyrightText: 2010 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
0003     SPDX-FileContributor: Kevin Ottens <kevin@kdab.com>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include "resourcetask.h"
0011 
0012 class ExpungeCollectionTask : public ResourceTask
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     explicit ExpungeCollectionTask(const ResourceStateInterface::Ptr &resource, QObject *parent = nullptr);
0018     ~ExpungeCollectionTask() override;
0019 
0020 private Q_SLOTS:
0021     void onSelectDone(KJob *job);
0022     void onExpungeDone(KJob *job);
0023 
0024 protected:
0025     void doStart(KIMAP::Session *session) override;
0026 
0027 private:
0028     void triggerExpungeJob(KIMAP::Session *session);
0029 };