rssguard/src/librssguard/gui/notifications/singlenotificationeditor.h

36 lines
817 B
C
Raw Normal View History

2021-06-15 15:02:14 +02:00
// For license of this file, see <project-root-folder>/LICENSE.md.
#ifndef SINGLENOTIFICATIONEDITOR_H
#define SINGLENOTIFICATIONEDITOR_H
2024-03-19 10:31:49 +01:00
#include "miscellaneous/notification.h"
2021-06-15 15:02:14 +02:00
#include "ui_singlenotificationeditor.h"
2024-03-19 10:31:49 +01:00
#include <QGroupBox>
2021-06-15 15:02:14 +02:00
class SingleNotificationEditor : public QGroupBox {
2024-03-19 10:31:49 +01:00
Q_OBJECT
2021-06-15 15:02:14 +02:00
public:
explicit SingleNotificationEditor(const Notification& notification, QWidget* parent = nullptr);
Notification notification() const;
2021-06-17 07:07:51 +02:00
signals:
void notificationChanged();
2021-06-15 15:02:14 +02:00
private slots:
void selectSoundFile();
2021-06-15 15:02:14 +02:00
void playSound();
private:
void loadNotification(const Notification& notification);
private:
Ui::SingleNotificationEditor m_ui;
Notification::Event m_notificationEvent;
};
#endif // SINGLENOTIFICATIONEDITOR_H