2
"-//freedesktop//DTD D-BUS Object Introspection 1.0//EN"
3
"http://www.freedesktop.org/standards/dbus/1.0/introspect.dtd">
4
<node name="/" xmlns:doc="http://www.freedesktop.org/dbus/1.0/doc.dtd">
6
<interface name="org.freedesktop.URfkill">
10
The urfkill service is available via the system message
11
bus. To access the service, use
12
the <doc:tt>org.freedesktop.URfkill</doc:tt> interface on
13
the <doc:tt>/org/freedesktop/URfkill</doc:tt> object on
14
the D-Bus system bus service with the well-known
15
name <doc:tt>org.freedesktop.URfkill</doc:tt>.
18
<doc:example language="shell" title="simple example">
21
-d org.freedesktop.URfkill \
22
-o /org/freedesktop/URfkill \
23
-m org.freedesktop.URfkill.EnumerateDevices
25
([objectpath '/org/freedesktop/URfkill/devices/0', '/org/freedesktop/URfkill/devices/1'],)
32
<!-- ************************************************************ -->
35
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
36
<arg type="u" name="type" direction="in">
37
<doc:doc><doc:summary>
38
The type of devices to be blocked/unblocked
39
</doc:summary></doc:doc>
41
<arg type="b" name="block" direction="in">
42
<doc:doc><doc:summary>
43
TRUE to block the devices, FALSE to unblock
44
</doc:summary></doc:doc>
46
<arg type="b" name="ret" direction="out">
47
<doc:doc><doc:summary>
48
TRUE for success, otherwise FALSE
49
</doc:summary></doc:doc>
55
Block or unblock the devices belonging to the type.
56
The types are defined as the followings:
60
<doc:term>0</doc:term><doc:definition>All</doc:definition>
63
<doc:term>1</doc:term><doc:definition>WLAN</doc:definition>
66
<doc:term>2</doc:term><doc:definition>Bluetooth</doc:definition>
69
<doc:term>3</doc:term><doc:definition>UWB</doc:definition>
72
<doc:term>4</doc:term><doc:definition>WIMAX</doc:definition>
75
<doc:term>5</doc:term><doc:definition>WWAN</doc:definition>
78
<doc:term>6</doc:term><doc:definition>GPS</doc:definition>
81
<doc:term>7</doc:term><doc:definition>FM</doc:definition>
85
Note: This method only changes soft block. Hard block is controlled
86
by BIOS or the hardware and there is no way to change the
87
state of hard block through kernel functions.
91
This method is restricted to the active session user.
96
<!-- ************************************************************ -->
98
<method name="BlockIdx">
99
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
100
<arg type="u" name="index" direction="in">
101
<doc:doc><doc:summary>
102
The index of the device to be blocked/unblocked
103
</doc:summary></doc:doc>
105
<arg type="b" name="block" direction="in">
106
<doc:doc><doc:summary>
107
TRUE to block the device, FALSE to unblock
108
</doc:summary></doc:doc>
110
<arg type="b" name="ret" direction="out">
111
<doc:doc><doc:summary>
112
TRUE for success, otherwise FALSE
113
</doc:summary></doc:doc>
119
Block or unblock the device by the index.
122
Note: This method only changes soft block. Hard block is controlled
123
by BIOS or the hardware and there is no way to change the
124
state of hard block through kernel functions.
128
This method is restricted to the currently active session user.
133
<!-- ************************************************************ -->
135
<method name="EnumerateDevices">
136
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
137
<arg type="ao" name="array" direction="out">
138
<doc:doc><doc:summary>
139
An array of the object pathes for the devices
140
</doc:summary></doc:doc>
146
Enumerate all rfkill objects on the system.
152
<!-- ************************************************************ -->
154
<method name="FlightMode">
155
<arg type="b" name="block" direction="in">
156
<doc:doc><doc:summary>
157
TRUE of flight mode should be enabled, otherwise FALSE
158
</doc:summary></doc:doc>
160
<arg type="b" name="ret" direction="out">
161
<doc:doc><doc:summary>
162
TRUE if successful, otherwise FALSE
163
</doc:summary></doc:doc>
169
Enable or disable flight mode.
175
<!-- ************************************************************ -->
177
<method name="IsFlightMode">
178
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
179
<arg type="b" name="is_flight_mode" direction="out">
180
<doc:doc><doc:summary>
181
TRUE if flight mode is enabled, otherwise FALSE
182
</doc:summary></doc:doc>
188
Get whether flight mode is enabled or not.
194
<!-- ************************************************************ -->
196
<method name="IsInhibited">
197
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
198
<arg type="b" name="is_inhibited" direction="out">
199
<doc:doc><doc:summary>
200
TRUE if the key control is inhibited, otherwise FALSE
201
</doc:summary></doc:doc>
207
Get whether the rfkill key handling function is inhibited or not.
213
<!-- ************************************************************ -->
215
<method name="Inhibit">
216
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
217
<arg type="s" name="reason" direction="in">
218
<doc:doc><doc:summary>
219
The reason to inhibit the key control
220
</doc:summary></doc:doc>
222
<arg type="u" name="inhibit_cookie" direction="out">
223
<doc:doc><doc:summary>
225
</doc:summary></doc:doc>
231
Inhibit the rfkill key handling function for the session.
237
<!-- ************************************************************ -->
239
<method name="Uninhibit">
240
<annotation name="org.freedesktop.DBus.GLib.Async" value=""/>
241
<arg type="u" name="inhibit_cookie" direction="in">
242
<doc:doc><doc:summary>
244
</doc:summary></doc:doc>
250
Cancel a previous call to <doc:ref type="method" to="org.freedesktop.URfkill.Inhibit">Inhibit()</doc:ref>
251
identified by the cookie.
257
<!-- ************************************************************ -->
259
<signal name="DeviceAdded">
260
<arg type="o" name="device" direction="out">
261
<doc:doc><doc:summary>
262
The object path for the device that was added
263
</doc:summary></doc:doc>
269
Emitted when a device is added.
275
<!-- ************************************************************ -->
277
<signal name="DeviceRemoved">
278
<arg type="o" name="device" direction="out">
279
<doc:doc><doc:summary>
280
The object path for the device that was removed
281
</doc:summary></doc:doc>
287
Emitted when a device is removed.
293
<!-- ************************************************************ -->
295
<signal name="DeviceChanged">
296
<arg type="o" name="device" direction="out">
297
<doc:doc><doc:summary>
298
The object path for the device that was changed
299
</doc:summary></doc:doc>
305
Emitted when a device is changed.
311
<!-- ************************************************************ -->
313
<signal name="FlightModeChanged">
314
<arg type="b" name="flight_mode" direction="out">
315
<doc:doc><doc:summary>
316
TRUE if flight mode has been enabled, otherwise FALSE
317
</doc:summary></doc:doc>
323
Emitted when flight mode is enabled or disabled.
329
<!-- ************************************************************ -->
331
<signal name="UrfkeyPressed">
332
<arg type="i" name="keycode" direction="out">
333
<doc:doc><doc:summary>
334
The keycode emitted from the input device
335
</doc:summary></doc:doc>
341
Emitted when a rfkill key is pressed. The keycode is defined in
342
<linux/input.h>.
346
<doc:term>237</doc:term><doc:definition>KEY_BLUETOOTH</doc:definition>
349
<doc:term>238</doc:term><doc:definition>KEY_WLAN</doc:definition>
352
<doc:term>239</doc:term><doc:definition>KEY_UWB</doc:definition>
355
<doc:term>246</doc:term><doc:definition>KEY_WIMAX</doc:definition>
358
<doc:term>247</doc:term><doc:definition>KEY_RFKILL</doc:definition>
365
<!-- ************************************************************ -->
367
<property name="DaemonVersion" type="s" access="read">
371
The version the running daemon. e.g. 0.2.0
377
<property name="KeyControl" type="b" access="read">
381
Whether the key control is enabled or not