blob: bd2d7e50dfd9e6f348726bc85cf5fb0d23510f74 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
A library to allow applictions to provide simple indications of
information to be displayed to users of the application through the
interface shell.
Copyright 2009 Canonical Ltd.
Authors:
Ted Gould <ted@canonical.com>
This program is free software: you can redistribute it and/or modify it
under the terms of either or both of the following licenses:
1) the GNU Lesser General Public License version 3, as published by the
Free Software Foundation; and/or
2) the GNU Lesser General Public License version 2.1, as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranties of
MERCHANTABILITY, SATISFACTORY QUALITY or FITNESS FOR A PARTICULAR
PURPOSE. See the applicable version of the GNU Lesser General Public
License for more details.
You should have received a copy of both the GNU Lesser General Public
License version 3 and version 2.1 along with this program. If not, see
<http://www.gnu.org/licenses/>
-->
<node name="/">
<interface name="org.freedesktop.dbusmenu">
<!-- Functions -->
<!--
Returns the list of items which are children of @a parentId.
@param parentid unsigned the parent id for the list. If it is 0, returns the root
item list;
@param propertyNames list of string the list of item properties we are interested in
An item is represented as a struct following this format:
@li id unsigned the item id
@li properties map(string => variant) the requested item properties
-->
<method name="GetChildren">
<arg type="u" name="parentId" direction="in" />
<arg type="as" name="propertyNames" direction="in" />
<arg type="a(ua{sv})" name="children" direction="out" />
</method>
<!--
Each menu item has a set of properties. Property keys are in menuitem.h:
@li type string Type of the item (see below)
@li label string Text of the item
@li icon-data binary Raw data of the icon (TODO: define format)
@li icon string Icon name of the item, following icon spec
@li sensitive boolean Whether the item can be activated or not
@li visible boolean Whether the item is visible or not (XXX: Is this necessary?)
@li checked boolean Whether a checkbox or radio item is checked
@li shortcut string The keyboard shortcut
@c type property is an enum which can take the following values (client.h):
@li action An item which can be clicked to trigger an action
@li checkbox An item which can be checked or unchecked
@li radio An item which can be checked or unchecked as part of a group
@li separator A separator
@li menu An item which contains more items
-->
<method name="GetProperty">
<arg type="u" name="id" direction="in" />
<arg type="s" name="name" direction="in" />
<arg type="v" name="value" direction="out" />
</method>
<!--
Returns multiple properties in one call. This is more efficient than
GetProperty.
@param id unsigned the item whose properties we want to retrieve.
@param propertyNames list of string name of the properties we want.
-->
<method name="GetProperties">
<annotation name="com.trolltech.QtDBus.QtTypeName.Out0" value="QVariantMap"/>
<arg type="u" name="id" direction="in" />
<arg type="as" name="propertyNames" direction="in" />
<arg type="a{sv}" name="properties" direction="out" />
</method>
<!--
This is called by the applet to notify the application an event happened on a
menu item.
@param id the id of the item which received the event
@param type the type of event
@param data event-specific data
@a type can be one of the following:
@li "clicked"
@li "hovered"
Vendor specific events can be added by prefixing them with "x-<vendor>-"
-->
<method name="Event">
<arg type="u" name="id" direction="in" />
<arg type="s" name="eventId" direction="in" />
<arg type="v" name="data" direction="in" />
</method>
<!-- Signals -->
<!--
Triggered by the application to notify the applet that the property @a property
from item @a id has changed to @a value.
-->
<signal name="ItemPropertyUpdated">
<arg type="u" name="id" direction="out" />
<arg type="s" name="prop" direction="out" />
<arg type="v" name="value" direction="out" />
</signal>
<!--
Triggered by the application to notify the applet that all properties of item
@a id should be considered outdated
-->
<signal name="ItemUpdated">
<arg type="u" name="id" direction="out" />
</signal>
<!--
Triggered by the application to notify applet it should retrieve the children
for item @a id.
-->
<signal name="ChildrenUpdated">
<arg type="u" name="id" direction="out" />
</signal>
<!-- End of interesting stuff -->
</interface>
</node>
|