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

0001 /*
0002    SPDX-FileCopyrightText: 2011-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <QDialog>
0010 class QComboBox;
0011 class KNotifyConfigWidget;
0012 
0013 namespace KMail
0014 {
0015 class KMKnotify : public QDialog
0016 {
0017     Q_OBJECT
0018 public:
0019     explicit KMKnotify(QWidget *parent = nullptr);
0020     ~KMKnotify() override;
0021 
0022     void setCurrentNotification(const QString &name);
0023 
0024 private:
0025     void slotComboChanged(int);
0026     void slotOk();
0027     void slotConfigChanged(bool changed);
0028 
0029     void initCombobox();
0030     void writeConfig();
0031     void readConfig();
0032     QComboBox *const m_comboNotify;
0033     KNotifyConfigWidget *const m_notifyWidget;
0034     bool m_changed = false;
0035 };
0036 }