ActionCollection *QtUi::_actionCollection = 0;
MainWin *QtUi::_mainWin = 0;
-QSet<AbstractNotificationBackend *> QtUi::_notificationBackends;
+QList<AbstractNotificationBackend *> QtUi::_notificationBackends;
QList<AbstractNotificationBackend::Notification> QtUi::_notifications;
QtUiStyle *QtUi::_style = 0;
void QtUi::registerNotificationBackend(AbstractNotificationBackend *backend) {
if(!_notificationBackends.contains(backend)) {
- _notificationBackends.insert(backend);
+ _notificationBackends.append(backend);
}
}
void QtUi::unregisterNotificationBackend(AbstractNotificationBackend *backend) {
- _notificationBackends.remove(backend);
+ _notificationBackends.removeAll(backend);
}
void QtUi::unregisterAllNotificationBackends() {
_notificationBackends.clear();
}
-const QSet<AbstractNotificationBackend *> &QtUi::notificationBackends() {
+const QList<AbstractNotificationBackend *> &QtUi::notificationBackends() {
return _notificationBackends;
}
static void registerNotificationBackend(AbstractNotificationBackend *);
static void unregisterNotificationBackend(AbstractNotificationBackend *);
static void unregisterAllNotificationBackends();
- static const QSet<AbstractNotificationBackend *> ¬ificationBackends();
+ static const QList<AbstractNotificationBackend *> ¬ificationBackends();
static uint invokeNotification(BufferId bufId, const QString &sender, const QString &text);
static void closeNotification(uint notificationId);
static void closeNotifications(BufferId bufferId = BufferId());
static MainWin *_mainWin;
static ActionCollection *_actionCollection;
static QtUiStyle *_style;
- static QSet<AbstractNotificationBackend *> _notificationBackends;
+ static QList<AbstractNotificationBackend *> _notificationBackends;
static QList<AbstractNotificationBackend::Notification> _notifications;
};