//! This class encapsulates Quassel's Qt-based GUI.
/** This is basically a wrapper around MainWin, which is necessary because we cannot derive MainWin
//! This class encapsulates Quassel's Qt-based GUI.
/** This is basically a wrapper around MainWin, which is necessary because we cannot derive MainWin
/* Notifications */
static void registerNotificationBackend(AbstractNotificationBackend *);
static void unregisterNotificationBackend(AbstractNotificationBackend *);
static void unregisterAllNotificationBackends();
static const QList<AbstractNotificationBackend *> ¬ificationBackends();
/* Notifications */
static void registerNotificationBackend(AbstractNotificationBackend *);
static void unregisterNotificationBackend(AbstractNotificationBackend *);
static void unregisterAllNotificationBackends();
static const QList<AbstractNotificationBackend *> ¬ificationBackends();
- static uint invokeNotification(BufferId bufId, const QString &sender, const QString &text);
+ static uint invokeNotification(BufferId bufId, AbstractNotificationBackend::NotificationType type, const QString &sender, const QString &text);
static void closeNotification(uint notificationId);
static void closeNotifications(BufferId bufferId = BufferId());
static const QList<AbstractNotificationBackend::Notification> &activeNotifications();
static void closeNotification(uint notificationId);
static void closeNotifications(BufferId bufferId = BufferId());
static const QList<AbstractNotificationBackend::Notification> &activeNotifications();
static QList<AbstractNotificationBackend *> _notificationBackends;
static QList<AbstractNotificationBackend::Notification> _notifications;
};
QtUi *QtUi::instance() { return _instance ? _instance.data() : new QtUi(); }
static QList<AbstractNotificationBackend *> _notificationBackends;
static QList<AbstractNotificationBackend::Notification> _notifications;
};
QtUi *QtUi::instance() { return _instance ? _instance.data() : new QtUi(); }