- virtual void notify(const Notification &) = 0;
- virtual void close(uint notificationId) { Q_UNUSED(notificationId); }
- virtual SettingsPage *configWidget() const = 0;
+ virtual void notify(const Notification &) = 0;
+ virtual void close(uint notificationId) { Q_UNUSED(notificationId); }
+
+ //! Factory to create a configuration widget suitable for a specific notification backend
+ /**
+ * AbstractNotification will not take ownership of that configWidget!
+ * In case you need to communicate with the configWidget directly, make your connections here
+ */
+ virtual SettingsPage *createConfigWidget() const = 0;
+
+signals:
+ //! May be emitted by the notification to tell the MainWin to raise itself
+ void activated();