File indexing completed on 2024-02-25 17:31:00

0001 /*
0002  * SPDX-FileCopyrightText: 2018-2019 Red Hat Inc
0003  * SPDX-FileCopyrightText: 2022 Aleix Pol Gonzalez <aleixpol@kde.org>
0004  *
0005  * SPDX-License-Identifier: LGPL-2.0-or-later
0006  *
0007  * SPDX-FileCopyrightText: 2018-2019 Jan Grulich <jgrulich@redhat.com>
0008  */
0009 
0010 #pragma once
0011 
0012 #include <QDBusArgument>
0013 #include <QMap>
0014 #include <QString>
0015 
0016 /// a{sa{sv}}
0017 using VariantMapMap = QMap<QString, QMap<QString, QVariant>>;
0018 
0019 /// sa{sv}
0020 using Shortcut = QPair<QString, QVariantMap>;
0021 
0022 /// a(sa{sv})
0023 using Shortcuts = QList<Shortcut>;
0024 
0025 Q_DECLARE_METATYPE(VariantMapMap)
0026 Q_DECLARE_METATYPE(Shortcuts)