Add org.agl.homescreen function renderSurfaceToAreaAllowed.
[staging/HomeScreen.git] / HomeScreen / src / homescreencontrolinterface.cpp
index 45c3cbd..faf4b99 100644 (file)
@@ -24,6 +24,18 @@ HomeScreenControlInterface::~HomeScreenControlInterface()
     delete mp_homeScreenAdaptor;
 }
 
+QList<int> HomeScreenControlInterface::getAllSurfacesOfProcess(int pid)
+{
+    qDebug("getAllSurfacesOfProcess %d", pid);
+    return newRequestGetAllSurfacesOfProcess(pid);
+}
+
+int HomeScreenControlInterface::getSurfaceStatus(int surfaceId)
+{
+    qDebug("getSurfaceStatus %d", surfaceId);
+    return newRequestGetSurfaceStatus(surfaceId);
+}
+
 void HomeScreenControlInterface::hardKeyPressed(int key)
 {
     int pid = -1;
@@ -42,7 +54,20 @@ void HomeScreenControlInterface::hardKeyPressed(int key)
     }
 }
 
-void HomeScreenControlInterface::setToFullscreen(int pid)
+void HomeScreenControlInterface::renderSurfaceToArea(int surfaceId, int layoutArea)
+{
+    qDebug("renderSurfaceToArea %d %d", surfaceId, layoutArea);
+    newRequestRenderSurfaceToArea(surfaceId, layoutArea);
+}
+
+bool HomeScreenControlInterface::renderSurfaceToAreaAllowed(int surfaceId, int layoutArea)
+{
+    qDebug("renderSurfaceToAreaAllowed %d %d", surfaceId, layoutArea);
+    return renderSurfaceToAreaAllowed(surfaceId, layoutArea);
+}
+
+void HomeScreenControlInterface::requestSurfaceIdToFullScreen(int surfaceId)
 {
-    qDebug("setToFullscreen %d", pid);
+    qDebug("requestSurfaceIdToFullScreen %d", surfaceId);
+    newRequestSurfaceIdToFullScreen(surfaceId);
 }