Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qdbussettings_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QDBUSSETTINGS_P_H
6#define QDBUSSETTINGS_P_H
7
8#include <QtCore/qnamespace.h>
9#include <QtCore/qstring.h>
11
12//
13// W A R N I N G
14// -------------
15//
16// This file is not part of the Qt API. It exists purely as an
17// implementation detail. This header file may change from version to
18// version without notice, or even be removed.
19//
20// We mean it.
21//
22
23QT_BEGIN_NAMESPACE
24
25namespace QDBusSettings {
26// XDG Desktop Portal Settings (Preferred)
27// https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.Settings.html
28namespace XdgSettings {
29static constexpr QLatin1StringView AppearanceNamespace{ "org.freedesktop.appearance" };
30static constexpr QLatin1StringView ColorSchemeKey{ "color-scheme" };
31static constexpr QLatin1StringView ContrastKey{ "contrast" };
32Qt::ContrastPreference convertContrastPreference(const QVariant &value);
33Qt::ColorScheme convertColorScheme(const QVariant &value);
34} // namespace XdgSettings
35
36namespace GnomeSettings {
37// GNOME Destop Settings (Alternative)
38// https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2069
39// https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas/-/commit/0e97f1f571c495184f80d875c68f241261a50e30
40static constexpr QLatin1StringView AllyNamespace{ "org.gnome.desktop.a11y.interface" };
41static constexpr QLatin1StringView ContrastKey{ "high-contrast" };
42Qt::ContrastPreference convertContrastPreference(const QVariant &value);
43} // namespace GnomeSettings
44} // namespace QDBusSettings
45
46QT_END_NAMESPACE
47#endif // QDBUSSETTINGS_P_H
\inmodule QtCore\reentrant
static constexpr QLatin1StringView ContrastKey
static constexpr QLatin1StringView AllyNamespace
Qt::ContrastPreference convertContrastPreference(const QVariant &value)
static constexpr QLatin1StringView ContrastKey
Qt::ColorScheme convertColorScheme(const QVariant &value)
static constexpr QLatin1StringView ColorSchemeKey
static constexpr QLatin1StringView AppearanceNamespace
Qt::ContrastPreference convertContrastPreference(const QVariant &value)
#define CHECK(cvref)
Q_STATIC_LOGGING_CATEGORY(lcAccessibilityCore, "qt.accessibility.core")
#define LOG
#define PARSE(var, enumeration, string)
QT_REQUIRE_CONFIG(thread)