-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathDBusTypes.hxx
More file actions
54 lines (40 loc) · 1.47 KB
/
DBusTypes.hxx
File metadata and controls
54 lines (40 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
This file is part of liquidshell.
SPDX-FileCopyrightText: 2017 - 2024 Martin Koller <martin@kollix.at>
SPDX-License-Identifier: GPL-3.0-or-later
*/
#ifndef DBusTypes_h
#define DBusTypes_h
// define types used in kf5_org.kde.StatusNotifierItem.xml
#include <QPixmap>
#include <QIcon>
#include <QString>
#include <QDBusArgument>
#include <QMetaType>
typedef QPixmap KDbusImageStruct;
typedef QIcon KDbusImageVector;
struct KDbusToolTipStruct
{
QString icon;
KDbusImageVector image;
QString title;
QString subTitle;
};
Q_DECLARE_METATYPE(KDbusToolTipStruct)
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageStruct &pixmap);
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusImageVector &icon);
const QDBusArgument &operator>>(const QDBusArgument &argument, KDbusToolTipStruct &tip);
QDBusArgument &operator<<(QDBusArgument &argument, const KDbusImageStruct &);
QDBusArgument &operator<<(QDBusArgument &argument, const KDbusImageVector &);
QDBusArgument &operator<<(QDBusArgument &argument, const KDbusToolTipStruct &);
//--------------------------------------------------------------------------------
struct DBusMenuLayoutItem
{
int m_id;
QVariantMap m_properties;
QVector<DBusMenuLayoutItem> m_children;
};
Q_DECLARE_METATYPE(DBusMenuLayoutItem)
const QDBusArgument &operator<<(QDBusArgument &arg, const DBusMenuLayoutItem &item);
const QDBusArgument &operator>>(const QDBusArgument &arg, DBusMenuLayoutItem &item);
#endif