Fix and improve switching applications
[staging/HomeScreen.git] / HomeScreen / src / layouthandler.h
index 7487be5..e3c0246 100644 (file)
@@ -12,23 +12,28 @@ public:
     explicit LayoutHandler(QObject *parent = 0);
     ~LayoutHandler();
 
-    void setUpLayouts();
-
 signals:
 
 public slots:
-    void showAppLayer();
+    void showAppLayer(int pid);
     void hideAppLayer();
     void makeMeVisible(int pid);
 private:
     void checkToDoQueue();
 public slots:
-    QList<int> requestGetAllSurfacesOfProcess(int pid);
+  //    QList<int> requestGetAllSurfacesOfProcess(int pid);
     int requestGetSurfaceStatus(int surfaceId);
-    void requestRenderSurfaceToArea(int surfaceId, const QRect &renderArea);
+    void requestRenderSurfaceToArea(int surfaceId, int layoutArea);
+    bool requestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
     void requestSurfaceIdToFullScreen(int surfaceId);
     void setLayoutByName(QString layoutName);
 
+    // this will receive the surfaceVisibilityChanged signal of the windowmanager
+    void requestSurfaceVisibilityChanged(int surfaceId, bool visible);
+
+Q_SIGNALS: // SIGNALS
+    void surfaceVisibilityChanged(int surfaceId, bool visible);
+
 protected:
     void timerEvent(QTimerEvent *e);
 private: