-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgtkmenutypes.h
54 lines (36 loc) · 1.25 KB
/
gtkmenutypes.h
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
#ifndef GTKMENUTYPES_H
#define GTKMENUTYPES_H
#include <QtCore/QList>
#include <QtCore/QVariant>
#include <QDBusSignature>
class QDBusArgument;
typedef QMap<QString, QVariant> SillyMap;
typedef QList<uint> SillyList;
Q_DECLARE_METATYPE(SillyList)
struct GtkMenuEntry{
uint first, second;
QList<QVariantMap> entry;
};
Q_DECLARE_METATYPE(GtkMenuEntry)
QDBusArgument &operator<<(QDBusArgument &argument, const GtkMenuEntry &item);
const QDBusArgument &operator>>(const QDBusArgument &argument, GtkMenuEntry &item);
typedef QList<GtkMenuEntry> GtkMenuEntryList;
Q_DECLARE_METATYPE(GtkMenuEntryList)
struct SimplePair{
uint first, second;
};
Q_DECLARE_METATYPE(SimplePair)
QDBusArgument &operator<<(QDBusArgument &argument, const SimplePair &item);
const QDBusArgument &operator>>(const QDBusArgument &argument, SimplePair &item);
struct GtkMenuDesc{ //FIXME: this semantic is just a guess
bool enabled;
QDBusSignature sig;
QVariantList props;
};
Q_DECLARE_METATYPE(GtkMenuDesc)
QDBusArgument &operator<<(QDBusArgument &argument, const GtkMenuDesc &item);
const QDBusArgument &operator>>(const QDBusArgument &argument, GtkMenuDesc &item);
typedef QMap<QString,GtkMenuDesc> GtkMenuDescMap;
Q_DECLARE_METATYPE(GtkMenuDescMap)
void GtkMenuTypes_register();
#endif