Add new layer WINDOWMANAGER_LAYER_HOMESCREEN_OVERLAY.
[staging/HomeScreen.git] / interfaces / windowmanager.xml
index 67187ac..754c816 100644 (file)
                        <arg name="error" type="i" direction="out"/>
                </method>
 
+               <!--
+                 deleteLayoutById:
+                 @layoutId: The ID of the layout to delete.
+                 @error: WINDOWMANAGER_NO_ERROR or the first error that occurred.
+
+                 Deletes the layout with the given ID. This cannot be the current active layout!
+               -->
+               <method name="deleteLayoutById">
+                       <arg name="layoutId" type="i" direction="in"/>
+                       <arg name="error" type="i" direction="out"/>
+               </method>
+
                <!--
                  setLayoutById:
                  @layoutId: The ID of the layout to activate.
                        <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
                </method>
 
+               <!--
+                 getAllSurfacesOfProcess:
+                 @pid: The PID of the process.
+                 @surfaceIds: A list of surfaces that were created by the process.
+
+                 The surface IDs can be used to assign them to a layout render area.
+               -->
+               <method name="getAllSurfacesOfProcess">
+                       <arg name="pid" type="i" direction="in"/>
+                       <arg name="layoutIds" type="ai" direction="out"/>
+                       <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QList&lt;int&gt;"/>
+               </method>
+
                <!--
                  setSurfaceToLayoutArea:
                  @surfaceId: The ID of the surface that shall be positioned.
                </method>
 
                <!--
-                 homeScreenPid:
-                 The PID of the Home Screen app. The Home Screen app requires a special handling.
-                 It will always be visible in the background. So it will be placed in a special layer at the lowest z-order.
+                 surfaceVisibilityChanged:
+                 @surfaceId: The surface that changed.
+                 @visible: True, if the surface is visible.
+
+                 This is emitted when the visible property of the surfaces changes.
+               -->
+               <signal name="surfaceVisibilityChanged">
+                       <arg name="surfaceId" type="i"/>
+                       <arg name="visible" type="b"/>
+               </signal>
+
+               <!--
+                 showLayer:
+                 @layer: The ID of the layer to show. POPUP=0, HOMESCREEN_OVERLAY=1, APPS=2, HOMESCREEN=3
+
+                 Show complete layers.
+                 By default, all layers are shown.
+               -->
+               <method name="showLayer">
+                       <arg name="layer" type="i" direction="in"/>
+               </method>
+               <!--
+                 hideLayer:
+                 @layer: The ID of the layer to hide. POPUP=0, HOMESCREEN_OVERLAY=1, APPS=2, HOMESCREEN=3
+
+                 Hide complete layers.
+                 By default, all layers are shown.
                -->
-               <property name="homeScreenPid" type="i" access="readwrite"/>
+               <method name="hideLayer">
+                       <arg name="layer" type="i" direction="in"/>
+               </method>
        </interface>
 </node>