X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=21346173abed803c38c3b6edacdc241ad3e3e0e8;hb=e472996a053e11d21ffef4a30f7d37461239cdab;hp=dc5fbb5ec013dd7442322dc3fe8b6fdd6055f86d;hpb=5c78a50fa720e5f82fcaa03c0176feab71d74c8e;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index dc5fbb5e..21346173 100644 --- a/src/qtui/systraynotificationbackend.h +++ b/src/qtui/systraynotificationbackend.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 SYSTRAYNOTIFICATIONBACKEND_H_ #define SYSTRAYNOTIFICATIONBACKEND_H_ +#include + #include "abstractnotificationbackend.h" #include "settingspage.h" @@ -32,18 +34,16 @@ class SystrayNotificationBackend : public AbstractNotificationBackend { public: SystrayNotificationBackend(QObject *parent = 0); - ~SystrayNotificationBackend(); void notify(const Notification &); void close(uint notificationId); - SettingsPage *configWidget() const; + virtual SettingsPage *createConfigWidget() const; private slots: void showBubble(); void closeBubble(); - void startAnimation(); - void stopAnimation(); - void blink(); + void notificationActivated(); + void notificationActivated(QSystemTrayIcon::ActivationReason); void animateChanged(const QVariant &); void showBubbleChanged(const QVariant &); @@ -51,11 +51,8 @@ private slots: private: class ConfigWidget; - SettingsPage *_configWidget; bool _showBubble; bool _animate; - bool _iconActive; - QTimer _animationTimer; QList _notifications; };