/***************************************************************************
-* Copyright (C) 2005-08 by the Quassel Project *
+* Copyright (C) 2005-09 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
#ifndef KNOTIFICATIONBACKEND_H_
#define KNOTIFICATIONBACKEND_H_
+#include <KSystemTrayIcon>
+
#include "abstractnotificationbackend.h"
#include "settingspage.h"
void close(uint notificationId);
virtual SettingsPage *createConfigWidget() const;
+private slots:
+ void notificationActivated();
+ void notificationActivated(QSystemTrayIcon::ActivationReason);
+ void notificationActivated(uint notificationId);
+
private:
class ConfigWidget;
+
+ void removeNotificationById(uint id);
+
+ QList<QPair<uint, QPointer<KNotification> > > _notifications;
};
class KNotificationBackend::ConfigWidget : public SettingsPage {