File indexing completed on 2024-10-27 04:50:59

0001 /*
0002    SPDX-FileCopyrightText: 2022 Sandro Knauß <knauss@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 #include "kmail_private_export.h"
0009 #include <KMessageWidget>
0010 
0011 class KMAILTESTS_TESTS_EXPORT NearExpiryWarning : public KMessageWidget
0012 {
0013     Q_OBJECT
0014 public:
0015     explicit NearExpiryWarning(QWidget *parent = nullptr);
0016     ~NearExpiryWarning() override;
0017 
0018     void addInfo(const QString &msg);
0019     void setWarning(bool warning);
0020     void clearInfo();
0021 };