// For license of this file, see /LICENSE.md. #ifndef NOTIFICATIONFACTORY_H #define NOTIFICATIONFACTORY_H #include #include "miscellaneous/notification.h" class Settings; class NotificationFactory : public QObject { Q_OBJECT public: explicit NotificationFactory(QObject* parent = nullptr); QList allNotifications() const; Notification notificationForEvent(Notification::Event event) const; // Determines whether balloon tips are enabled or not. bool areNotificationsEnabled() const; bool useToastNotifications() const; public slots: void load(Settings* settings); void save(const QList& new_notifications, Settings* settings); private: QList m_notifications = {}; }; #endif // NOTIFICATIONFACTORY_H