File indexing completed on 2025-02-02 05:08:41
0001 /* 0002 SPDX-FileCopyrightText: 2014-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 namespace FollowUpReminder 0011 { 0012 class FollowUpReminderInfo; 0013 } 0014 class FollowUpReminderInfoWidget; 0015 class FollowUpReminderNoAnswerDialog : public QDialog 0016 { 0017 Q_OBJECT 0018 public: 0019 explicit FollowUpReminderNoAnswerDialog(QWidget *parent = nullptr); 0020 ~FollowUpReminderNoAnswerDialog() override; 0021 0022 void setInfo(const QList<FollowUpReminder::FollowUpReminderInfo *> &info); 0023 0024 void wakeUp(); 0025 0026 public Q_SLOTS: 0027 void reject() override; 0028 0029 Q_SIGNALS: 0030 void needToReparseConfiguration(); 0031 0032 protected: 0033 void closeEvent(QCloseEvent *) override; 0034 0035 private: 0036 void slotDBusNotificationsPropertiesChanged(const QString &interface, const QVariantMap &changedProperties, const QStringList &invalidatedProperties); 0037 void slotSave(); 0038 void readConfig(); 0039 void writeConfig(); 0040 FollowUpReminderInfoWidget *const mWidget; 0041 };