Debian Codegraph @

data/org.freedesktop.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.portal.Settings:
26 @short_description: Settings interface
27
28 This interface provides read-only access to a small number of standardized
29 host settings required for toolkits similar to XSettings. It is not for
30 general purpose settings.
31
32 Implementations can provide keys not listed below; they are entirely
33 implementation details that are undocumented. If you are a toolkit and want
34 to use this please open an issue.
35
36 Currently the interface provides the following standardized keys:
37
38 * ``org.freedesktop.appearance`` ``color-scheme`` (``u``)
39
40 Indicates the system's preferred color scheme.
41 Supported values are:
42
43 * ``0``: No preference
44 * ``1``: Prefer dark appearance
45 * ``2``: Prefer light appearance
46
47 Unknown values should be treated as ``0`` (no preference).
48
49 * ``org.freedesktop.appearance`` ``accent-color`` (``(ddd)``)
50
51 Indicates the system's preferred accent color as a tuple of RGB values in
52 the sRGB color space, in the range [0,1]. Out-of-range RGB values should
53 be treated as an unset accent color.
54
55 * ``org.freedesktop.appearance`` ``contrast`` (``u``)
56
57 Indicates the system's preferred contrast level.
58 Supported values are:
59
60 * ``0``: No preference (normal contrast)
61 * ``1``: Higher contrast
62
63 Unknown values should be treated as ``0`` (no preference).
64
65 * ``org.freedesktop.appearance`` ``reduced-motion`` (``u``)
66
67 Indicates the system's preferred reduced motion setting.
68 Supported values are:
69
70 * ``0``: No preference
71 * ``1``: Reduced motion
72
73 Unknown values should be treated as ``0`` (no preference).
74
75 This documentation describes version 2 of this interface.
76 -->
77 <interface name="org.freedesktop.portal.Settings">
78
79 <!--
80 ReadAll:
81 @namespaces: List of namespaces to filter results by, supports simple globbing explained below.
82 @value: Dictionary of namespaces to its keys and values.
83
84 If @namespaces is an empty array or contains an empty string it matches all. Globbing is supported but only for
85 trailing sections, e.g. "org.example.*".
86 -->
87 <method name="ReadAll">
88 <arg type="as" name="namespaces" direction="in"/>
89 <annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap&lt;QString,QVariantMap&gt;"/>
90 <arg type="a{sa{sv}}" name="value" direction="out"/>
91 </method>
92
93 <!--
94 Read:
95 @namespace: Namespace to look up @key in.
96 @key: The key to get.
97 @value: The value @key is set to.
98
99 Reads a single value. Returns an error on any unknown namespace or key.
100
101 Deprecated, use ReadOne instead. The value argument was intended to have
102 the value inside one layer of variant as it is in ReadOne, for example
103 `&lt;string "hello"&gt;` in GVariant text notation; but it is actually
104 returned inside two layers of variant, for example
105 `&lt;&lt;string "hello"&gt;&gt;`.
106 -->
107 <method name="Read">
108 <annotation name="org.freedesktop.DBus.Deprecated" value="true"/>
109 <arg type="s" name="namespace" direction="in"/>
110 <arg type="s" name="key" direction="in"/>
111 <arg type="v" name="value" direction="out"/>
112 </method>
113
114 <!--
115 ReadOne:
116 @namespace: Namespace to look up @key in.
117 @key: The key to get.
118 @value: The value @key is set to.
119
120 Reads a single value which may be any valid DBus type. Returns an error on any unknown namespace or key.
121
122 This method was added in version 2.
123 -->
124 <method name="ReadOne">
125 <arg type="s" name="namespace" direction="in"/>
126 <arg type="s" name="key" direction="in"/>
127 <arg type="v" name="value" direction="out"/>
128 </method>
129
130 <!--
131 SettingChanged:
132 @namespace: Namespace of changed setting.
133 @key: The key of changed setting.
134 @value: The new value.
135
136 Emitted when a setting changes.
137 -->
138 <signal name="SettingChanged">
139 <arg type="s" name="namespace" direction="out"/>
140 <arg type="s" name="key" direction="out"/>
141 <arg type="v" name="value" direction="out"/>
142 </signal>
143
144 <property name="version" type="u" access="read"/>
145 </interface>
146 </node>