Debian Codegraph @

data/org.freedesktop.impl.portal.Wallpaper.xml

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2019 Red Hat, Inc.
4
5 SPDX-License-Identifier: LGPL-2.1-or-later
6
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library. If not, see <http://www.gnu.org/licenses/>.
19
20 Author: Felipe Borges <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.impl.portal.Wallpaper:
26 @short_description: Portal for setting the desktop's Wallpaper
27
28 This simple interface lets sandboxed applications set the user's
29 desktop background picture.
30 -->
31 <interface name="org.freedesktop.impl.portal.Wallpaper">
32 <!--
33 SetWallpaperURI:
34 @handle: Object path to export the Request object at
35 @app_id: App id of the application
36 @parent_window: Identifier for the application window, see :doc:`window-identifiers`
37 @uri: The picture file URI
38 @options: Options that influence the behavior of the portal
39 @response: Numberic response
40
41 Asks to set a given picture as the desktop background picture.
42
43 The following options are supported:
44
45 * ``show-preview`` (``b``)
46
47 Whether to show a preview of the picture. Note that the portal may
48 decide to show a preview even if this option is not set
49
50 * ``set-on`` (``s``)
51
52 Where to set the wallpaper. Possible values are `background`,
53 `lockscreen` or `both`.
54 -->
55 <method name="SetWallpaperURI">
56 <arg type="o" name="handle" direction="in"/>
57 <arg type="s" name="app_id" direction="in"/>
58 <arg type="s" name="parent_window" direction="in"/>
59 <arg type="s" name="uri" direction="in"/>
60 <annotation name="org.qtproject.QtDBus.QtTypeName.In4" value="QVariantMap"/>
61 <arg type="a{sv}" name="options" direction="in"/>
62 <arg type="u" name="response" direction="out"/>
63 </method>
64 </interface>
65 </node>