Mailcommon

collectionexpiryjob.h
1 /*
2  SPDX-FileCopyrightText: 2020-2022 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include <Akonadi/Collection>
10 #include <QObject>
11 class KJob;
12 namespace MailCommon
13 {
14 class CollectionExpiryJob : public QObject
15 {
16  Q_OBJECT
17 public:
18  explicit CollectionExpiryJob(QObject *parent = nullptr);
19  ~CollectionExpiryJob() override;
20 
21  void start();
22 
23  void setCollection(const Akonadi::Collection &collection);
24 
25  void setExpireNow(bool expireNow);
26 
27 private:
28  void slotCollectionModified(KJob *job);
29  bool mExpireNow = false;
30  Akonadi::Collection mCollection;
31 };
32 }
Q_OBJECTQ_OBJECT
Q_SCRIPTABLE Q_NOREPLY void start()
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:14 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.