File indexing completed on 2025-01-05 04:49:41

0001 /*
0002    SPDX-FileCopyrightText: 2020-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "expireaccounttrashfolderconfig_private_export.h"
0010 #include <QWidget>
0011 namespace MailCommon
0012 {
0013 class CollectionExpiryWidget;
0014 }
0015 class LIBEXPIREACCOUNTTRASHFOLDERCONFIG_TESTS_EXPORT ExpireAccountTrashFolderConfigWidget : public QWidget
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit ExpireAccountTrashFolderConfigWidget(QWidget *parent = nullptr);
0020     ~ExpireAccountTrashFolderConfigWidget() override;
0021     void save();
0022 
0023 private:
0024     void save(bool saveSettings, bool expireNow);
0025     void slotSaveAndExpireRequested();
0026     MailCommon::CollectionExpiryWidget *const mCollectionExpiryWidget;
0027 };