Fix tray icon behavior for non-KDE StatusNotifier
[quassel.git] / src / qtui / systraynotificationbackend.h
index c96958d..319942b 100644 (file)
@@ -37,14 +37,16 @@ public:
   void close(uint notificationId);
   virtual SettingsPage *createConfigWidget() const;
 
+protected:
+  virtual bool eventFilter(QObject *obj, QEvent *event);
+
 private slots:
-  void showBubble();
-  void closeBubble();
-  void notificationActivated();
+  void notificationActivated(uint notificationId);
   void notificationActivated(SystemTray::ActivationReason);
 
   void animateChanged(const QVariant &);
   void showBubbleChanged(const QVariant &);
+  void updateToolTip();
 
 private:
   class ConfigWidget;
@@ -52,6 +54,7 @@ private:
   bool _showBubble;
   bool _animate;
   QList<Notification> _notifications;
+  bool _blockActivation;
 };
 
 class SystrayNotificationBackend::ConfigWidget : public SettingsPage {
@@ -68,8 +71,8 @@ private slots:
   void widgetChanged();
 
 private:
-  QCheckBox *_showBubbleBox, *_animateBox;
-  bool _showBubble, _animate;
+  QCheckBox *_showBubbleBox;
+  bool _showBubble;
 };
 
 #endif