Add GPL header to mpris script
[quassel.git] / src / qtui / systraynotificationbackend.h
index 4ab8df0..0895cbe 100644 (file)
@@ -21,6 +21,8 @@
 #ifndef SYSTRAYNOTIFICATIONBACKEND_H_
 #define SYSTRAYNOTIFICATIONBACKEND_H_
 
+#include <QSystemTrayIcon>
+
 #include "abstractnotificationbackend.h"
 
 #include "settingspage.h"
@@ -40,9 +42,8 @@ public:
 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 &);
@@ -52,9 +53,8 @@ private:
 
   bool _showBubble;
   bool _animate;
-  bool _iconActive;
-  QTimer _animationTimer;
   QList<Notification> _notifications;
+  uint _activeId;
 };
 
 class SystrayNotificationBackend::ConfigWidget : public SettingsPage {