X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fknotificationbackend.h;h=d846417c9e52e6482d0be3073daca74ce38fc72f;hp=706478e61b0f6cf4b3896007600716baf5d280fe;hb=fcf721c85ec4f804d11ac1553592de860f5a3f1d;hpb=b66b1d455e0a6c8c438cf2b8ceecdd738cbfcb04 diff --git a/src/qtui/knotificationbackend.h b/src/qtui/knotificationbackend.h index 706478e6..d846417c 100644 --- a/src/qtui/knotificationbackend.h +++ b/src/qtui/knotificationbackend.h @@ -1,5 +1,5 @@ /*************************************************************************** -* 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 * @@ -21,6 +21,8 @@ #ifndef KNOTIFICATIONBACKEND_H_ #define KNOTIFICATIONBACKEND_H_ +#include + #include "abstractnotificationbackend.h" #include "settingspage.h" @@ -37,8 +39,19 @@ public: void close(uint notificationId); virtual SettingsPage *createConfigWidget() const; +private slots: + void notificationActivated(); + void notificationActivated(QSystemTrayIcon::ActivationReason); + void notificationActivated(uint notificationId); + void notificationClosed(); + private: class ConfigWidget; + + void removeNotificationById(uint id); + + QHash _notificationIds; + uint _lastNotificationId; }; class KNotificationBackend::ConfigWidget : public SettingsPage {