Debian Codegraph @

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

raw
1 <?xml version="1.0"?>
2 <!--
3 Copyright (C) 2018 Igalia S.L.
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: Patrick Griffis <[email protected]>
21 -->
22
23 <node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
24 <!--
25 org.freedesktop.impl.portal.Settings:
26 @short_description: Settings portal backend interface
27
28 This interface provides read-only access to a small number
29 of host settings required for toolkits similar to XSettings.
30 It is not for general purpose settings.
31
32 Currently the interface provides the following keys:
33
34 * ``org.freedesktop.appearance`` ``color-scheme`` (``u``)
35
36 Indicates the system's preferred color scheme.
37 Supported values are:
38
39 - ``0``: No preference
40 - ``1``: Prefer dark appearance
41 - ``2``: Prefer light appearance
42
43 Unknown values should be treated as 0 (no preference).
44
45 * ``org.freedesktop.appearance`` ``accent-color`` (``(ddd)``)
46
47 Indicates the system's preferred accent color as a tuple of RGB values
48 in the sRGB color space, in the range [0,1].
49 Out-of-range RGB values should be treated as an unset accent color.
50
51 * ``org.freedesktop.appearance`` ``contrast`` (``u``)
52
53 Indicates the system's preferred contrast level.
54 Supported values are:
55
56 - ``0``: No preference (normal contrast)
57 - ``1``: Higher contrast
58
59 Unknown values should be treated as 0 (no preference).
60
61 Implementations can provide other keys; they are entirely
62 implementation details that are undocumented. If you are a
63 toolkit and want to use this please open an issue.
64
65 Note that the Settings portal can operate without this backend,
66 implementing it is optional.
67 -->
68 <interface name="org.freedesktop.impl.portal.Settings">
69
70 <!--
71 ReadAll:
72 @namespaces: List of namespaces to filter results by, supports simple globbing explained below.
73 @value: Dictionary of namespaces to its keys and values.
74
75 If @namespaces is an empty array or contains an empty string it matches all. Globbing is supported but only for
76 trailing sections, e.g. "org.example.*".
77 -->
78 <method name="ReadAll">
79 <arg type="as" name="namespaces" direction="in"/>
80 <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QVariantMap&gt;"/>
81 <arg type="a{sa{sv}}" name="value" direction="out"/>
82 </method>
83
84 <!--
85 Read:
86 @namespace: Namespace to look up @key in.
87 @key: The key to get.
88 @value: The value @key is set to.
89
90 Reads a single value. Returns an error on any unknown namespace or key.
91 -->
92 <method name="Read">
93 <arg type="s" name="namespace" direction="in"/>
94 <arg type="s" name="key" direction="in"/>
95 <arg type="v" name="value" direction="out"/>
96 </method>
97
98 <!--
99 SettingChanged:
100 @namespace: Namespace of changed setting.
101 @key: The key of changed setting.
102 @value: The new value.
103
104 Emitted when a setting changes.
105 -->
106 <signal name="SettingChanged">
107 <arg type="s" name="namespace" direction="out"/>
108 <arg type="s" name="key" direction="out"/>
109 <arg type="v" name="value" direction="out"/>
110 </signal>
111
112 <property name="version" type="u" access="read"/>
113 </interface>
114 </node>