X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fsystraynotificationbackend.h;h=7fdf4e8e2da15bc0e115a15d474ecdc7faadb24c;hb=6330f7fe3d19113cbf29944a9b6e8b503893d4a9;hp=4ab8df0e57ac51e9dccca1faa1825f4ef0f7f912;hpb=f824db0e31b54969e0b7fa0b5405b1e9173d482c;p=quassel.git diff --git a/src/qtui/systraynotificationbackend.h b/src/qtui/systraynotificationbackend.h index 4ab8df0e..7fdf4e8e 100644 --- a/src/qtui/systraynotificationbackend.h +++ b/src/qtui/systraynotificationbackend.h @@ -21,6 +21,10 @@ #ifndef SYSTRAYNOTIFICATIONBACKEND_H_ #define SYSTRAYNOTIFICATIONBACKEND_H_ +#ifndef QT_NO_SYSTEMTRAYICON + +#include + #include "abstractnotificationbackend.h" #include "settingspage.h" @@ -40,9 +44,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,8 +55,6 @@ private: bool _showBubble; bool _animate; - bool _iconActive; - QTimer _animationTimer; QList _notifications; }; @@ -75,4 +76,6 @@ private: bool _showBubble, _animate; }; +#endif /* QT_NO_SYSTEMTRAYICON */ + #endif