| 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 |
This documentation describes version 2 of this interface. |
| 66 |
--> |
| 67 |
<interface name="org.freedesktop.portal.Settings"> |
| 68 |
|
| 69 |
<!-- |
| 70 |
ReadAll: |
| 71 |
@namespaces: List of namespaces to filter results by, supports simple globbing explained below. |
| 72 |
@value: Dictionary of namespaces to its keys and values. |
| 73 |
|
| 74 |
If @namespaces is an empty array or contains an empty string it matches all. Globbing is supported but only for |
| 75 |
trailing sections, e.g. "org.example.*". |
| 76 |
--> |
| 77 |
<method name="ReadAll"> |
| 78 |
<arg type="as" name="namespaces" direction="in"/> |
| 79 |
<annotation name="org.qtproject.QtDBus.QtTypeName.Out0" value="QMap<QString,QVariantMap>"/> |
| 80 |
<arg type="a{sa{sv}}" name="value" direction="out"/> |
| 81 |
</method> |
| 82 |
|
| 83 |
<!-- |
| 84 |
Read: |
| 85 |
@namespace: Namespace to look up @key in. |
| 86 |
@key: The key to get. |
| 87 |
@value: The value @key is set to. |
| 88 |
|
| 89 |
Reads a single value. Returns an error on any unknown namespace or key. |
| 90 |
|
| 91 |
Deprecated, use ReadOne instead. The value argument was intended to have |
| 92 |
the value inside one layer of variant as it is in ReadOne, for example |
| 93 |
`<string "hello">` in GVariant text notation; but it is actually |
| 94 |
returned inside two layers of variant, for example |
| 95 |
`<<string "hello">>`. |
| 96 |
--> |
| 97 |
<method name="Read"> |
| 98 |
<annotation name="org.freedesktop.DBus.Deprecated" value="true"/> |
| 99 |
<arg type="s" name="namespace" direction="in"/> |
| 100 |
<arg type="s" name="key" direction="in"/> |
| 101 |
<arg type="v" name="value" direction="out"/> |
| 102 |
</method> |
| 103 |
|
| 104 |
<!-- |
| 105 |
ReadOne: |
| 106 |
@namespace: Namespace to look up @key in. |
| 107 |
@key: The key to get. |
| 108 |
@value: The value @key is set to. |
| 109 |
|
| 110 |
Reads a single value which may be any valid DBus type. Returns an error on any unknown namespace or key. |
| 111 |
|
| 112 |
This method was added in version 2. |
| 113 |
--> |
| 114 |
<method name="ReadOne"> |
| 115 |
<arg type="s" name="namespace" direction="in"/> |
| 116 |
<arg type="s" name="key" direction="in"/> |
| 117 |
<arg type="v" name="value" direction="out"/> |
| 118 |
</method> |
| 119 |
|
| 120 |
<!-- |
| 121 |
SettingChanged: |
| 122 |
@namespace: Namespace of changed setting. |
| 123 |
@key: The key of changed setting. |
| 124 |
@value: The new value. |
| 125 |
|
| 126 |
Emitted when a setting changes. |
| 127 |
--> |
| 128 |
<signal name="SettingChanged"> |
| 129 |
<arg type="s" name="namespace" direction="out"/> |
| 130 |
<arg type="s" name="key" direction="out"/> |
| 131 |
<arg type="v" name="value" direction="out"/> |
| 132 |
</signal> |
| 133 |
|
| 134 |
<property name="version" type="u" access="read"/> |
| 135 |
</interface> |
| 136 |
</node> |