Fix for Bug [#6295] Application polls vlc server even when the UI is not visible...
[vlc-remote] / src / playermainwindow.h
index 063508d..16ee1fe 100644 (file)
 #include "browsemainwindow.h"
 #include "favouritesmainwindow.h"
 #include "vlcstatus.h"
+#if defined(Q_WS_S60) || defined(Q_WS_MAEMO_5)
+  #include <mce/dbus-names.h>
+  #include <mce/mode-names.h>
+  #include <QDBusConnection>
+  #include <QDBusMessage>
+  #include <QDBusInterface>
+#endif
 
 namespace Ui {
     class PlayerMainWindow;
@@ -38,6 +45,7 @@ public:
     ~PlayerMainWindow();
 
 public slots:
+    void displayStateChanged(const QDBusMessage &message);
     void askStatus();
     void showSettings();
     void showConfig();
@@ -92,7 +100,8 @@ private:
     bool mIsLandscape;
     bool mHasImage;
     bool mIsFirstStatusCall;
-
+    static QDBusConnection dBusConnection;
+    static QDBusInterface* dBusInterface;
 };
 
 #endif // PLAYERMAINWINDOW_H