+
+void QtUi::closeNotifications(BufferId bufferId) {
+ QList<AbstractNotificationBackend::Notification>::iterator i = _notifications.begin();
+ while(i != _notifications.end()) {
+ if(!bufferId.isValid() || (*i).bufferId == bufferId) {
+ foreach(AbstractNotificationBackend *backend, _notificationBackends)
+ backend->close((*i).notificationId);
+ _notifications.erase(i);
+ }
+ ++i;
+ }
+}
+
+const QList<AbstractNotificationBackend::Notification> &QtUi::activeNotifications() {
+ return _notifications;
+}
+