Mailcommon

collectionexpirypage.h
1/*
2 SPDX-FileCopyrightText: 2009-2024 Laurent Montel <montel@kde.org>
3 SPDX-FileCopyrightText: 2013 Jonathan Marten <jjm@keelhaul.me.uk>
4
5 SPDX-License-Identifier: GPL-2.0-only
6*/
7
8#pragma once
9
10#include "mailcommon_export.h"
11
12#include <Akonadi/Collection>
13#include <Akonadi/CollectionPropertiesPage>
14
15namespace MailCommon
16{
17class CollectionExpiryWidget;
18/**
19 * @brief The CollectionExpiryPage class
20 * @author Laurent Montel <montel@kde.org>
21 */
23{
24 Q_OBJECT
25
26public:
27 explicit CollectionExpiryPage(QWidget *parent = nullptr);
28 ~CollectionExpiryPage() override;
29
30 [[nodiscard]] bool canHandle(const Akonadi::Collection &col) const override;
31 void load(const Akonadi::Collection &collection) override;
32 void save(Akonadi::Collection &collection) override;
33
34private:
35 MAILCOMMON_NO_EXPORT void saveAndExpire(Akonadi::Collection &collection, bool saveSettings, bool _expirenow);
36 MAILCOMMON_NO_EXPORT void init();
37 MAILCOMMON_NO_EXPORT void slotChanged();
38 MAILCOMMON_NO_EXPORT void slotSaveAndExpire();
39 MAILCOMMON_NO_EXPORT void slotConfigChanged(bool changed);
40 CollectionExpiryWidget *mCollectionExpiryWidget = nullptr;
41 Akonadi::Collection mCollection;
42 bool mChanged = false;
43};
44
45AKONADI_COLLECTION_PROPERTIES_PAGE_FACTORY(CollectionExpiryPageFactory, CollectionExpiryPage)
46}
The CollectionExpiryPage class.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:59:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.