1 #ifndef LAYOUTHANDLER_H
2 #define LAYOUTHANDLER_H
5 #include "windowmanager_proxy.h"
6 #include "popup_proxy.h"
8 class LayoutHandler : public QObject
12 explicit LayoutHandler(QObject *parent = 0);
18 void showAppLayer(int pid);
20 void makeMeVisible(int pid);
22 void checkToDoQueue();
24 // QList<int> requestGetAllSurfacesOfProcess(int pid);
25 int requestGetSurfaceStatus(int surfaceId);
26 void requestRenderSurfaceToArea(int surfaceId, int layoutArea);
27 bool requestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
28 void requestSurfaceIdToFullScreen(int surfaceId);
29 void setLayoutByName(QString layoutName);
31 // this will receive the surfaceVisibilityChanged signal of the windowmanager
32 void requestSurfaceVisibilityChanged(int surfaceId, bool visible);
35 void surfaceVisibilityChanged(int surfaceId, bool visible);
38 void timerEvent(QTimerEvent *e);
41 org::agl::windowmanager *mp_dBusWindowManagerProxy;
42 org::agl::popup *mp_dBusPopupProxy;
44 QList<int> m_requestsToBeVisiblePids;
45 QList<int> m_visibleSurfaces;
46 QList<int> m_invisibleSurfaces;
47 QList<int> m_requestsToBeVisibleSurfaces;
50 #endif // LAYOUTHANDLER_H