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);
22 void makeMeVisible(int pid);
24 void checkToDoQueue();
26 QList<int> requestGetAllSurfacesOfProcess(int pid);
27 int requestGetSurfaceStatus(int surfaceId);
28 void requestRenderSurfaceToArea(int surfaceId, int layoutArea);
29 bool requestRenderSurfaceToAreaAllowed(int surfaceId, int layoutArea);
30 void requestSurfaceIdToFullScreen(int surfaceId);
31 void setLayoutByName(QString layoutName);
33 // this will receive the surfaceVisibilityChanged signal of the windowmanager
34 void requestSurfaceVisibilityChanged(int surfaceId, bool visible);
37 void surfaceVisibilityChanged(int surfaceId, bool visible);
40 void timerEvent(QTimerEvent *e);
43 org::agl::windowmanager *mp_dBusWindowManagerProxy;
44 org::agl::popup *mp_dBusPopupProxy;
46 QList<int> m_requestsToBeVisiblePids;
47 QList<int> m_visibleSurfaces;
48 QList<int> m_invisibleSurfaces;
49 QList<int> m_requestsToBeVisibleSurfaces;
52 #endif // LAYOUTHANDLER_H