1 <node name="/node" xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0">
3 <tp:title>AT-SPI - Assistive Technology Service Provider Interface </tp:title>
4 <tp:copyright>Copyright 2008 Novell, Inc.</tp:copyright>
5 <tp:copyright>Copyright 2001 Sun Microsystems Inc.</tp:copyright>
6 <tp:license xmlns="http://www.w3.org/1999/xhtml">
7 <p>This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version.</p>
12 <p>This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.</p>
17 <p>You should have received a copy of the GNU Library General Public
18 License along with this library; if not, write to the
19 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.</p>
22 <interface name="org.freedesktop.atspi.DeviceEventController">
23 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
24 <p>The interface via which clients request notification of device events, and
25 through which device events may be simulated.</p>
27 <method name="registerKeystrokeListener">
28 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
29 <p>Register to intercept keyboard events, and either pass them on or
32 <arg direction="in" name="listener" type="o" tp:type="DeviceEventListener">
34 a DeviceEventListener which will intercept key events.
37 <arg direction="in" name="keys" type="a(iisi)" tp:type="KeySet">
39 a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS.
42 <arg direction="in" name="mask" type="u" tp:type="ControllerEventMask">
44 a ControllerEventMask filtering the intercepted key events.
47 <arg direction="in" name="type" type="u" tp:type="KeyEventTypeSeq">
49 a KeyEventTypeSeq that may created by ORing event types together.
52 <arg direction="in" name="mode" type="(bbb)" tp:type="EventListenerMode">
54 an EventListenerMode indicating whether the listener should receive the events synchronously, potentially consuming them,or just be notified asynchronously of those events that havebeen generated.@note Some platforms have limited support for global, preemptive EventListenerMode.Such a registration may fail if another client already has priority for preemptiveaccess to one or more of the members of the KeySet. AT consumers have the optionof re-trying the request without the global flag, or without the preemptive flag,or of re-trying with a different KeySet. The best support for pre-emptiveglobal keyboard listeners is provided on platforms whose Xserver implementationprovides the XEvIE extension.
57 <arg direction="out" type="b" tp:type="boolean">
59 \c True if the DeviceEventListener was successfully registeredfor the requested KeySet, ControllerEventMask, event types, and EventListenerMode; otherwise returns \c False.
63 <method name="deregisterKeystrokeListener">
65 De-register a previously registered keyboard eventlistener.
67 <arg direction="in" name="listener" type="o" tp:type="DeviceEventListener">
69 a DeviceEventListener which will intercept key events.
72 <arg direction="in" name="keys" type="a(iisi)" tp:type="KeySet">
74 a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS.
77 <arg direction="in" name="mask" type="u" tp:type="ControllerEventMask">
79 a ControllerEventMask filtering the intercepted key events.
82 <arg direction="in" name="type" type="u" tp:type="KeyEventTypeSeq">
84 an EventType mask that may created by ORing event types together.
88 <method name="registerDeviceEventListener">
89 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
90 <p>Register to intercept events, and either pass them on or
91 consume them. To listen to keyboard events use registerKeystrokeListener
94 <arg direction="in" name="listener" type="o" tp:type="DeviceEventListener">
96 a DeviceEventListener which will intercept events.
99 <arg direction="in" name="types" type="u" tp:type="EventTypeSeq">
101 an EventTypeSeq indicating which event types to listen for.
104 <arg direction="out" type="b" tp:type="boolean">
106 \c True if successful, \c False if not
110 <method name="deregisterDeviceEventListener">
112 De-register a previously registered keyboard eventlistener.
114 <arg direction="in" name="listener" type="o" tp:type="DeviceEventListener">
116 a DeviceEventListener which will intercept events.
119 <arg direction="in" name="types" type="u" tp:type="EventTypeSeq">
121 an EventTypeSeq indicating which event types to stoplistening for.
125 <method name="notifyListenersSync">
126 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
127 <p>Notify the Registry instance that a device event has taken place, and
128 allow pre-emptive listeners the opportunity to 'consume' the event
129 and thus prevent its further issuance/forwarding. This is the
130 method used by accessibility bridges to forward "toolkit dependent"
131 device events to the Registry from the application's process space. </p>
133 <p>@note AT clients do not normally need to use this method, it is intended for use
134 by toolkit bridges and special-purpose applications. </p>
136 <arg direction="in" name="event" type="(uinnisb)" tp:type="DeviceEvent"/>
137 <arg direction="out" type="b" tp:type="boolean">
139 \c True if the event was consumed by a (pre-emptive) listener,\c False if not (in which case the device event will be forwardedas normal to any application which would normally receive it, e.g.the currently active application in the case of mouse or keyboard events).
143 <method name="notifyListenersAsync">
144 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
145 <p>Notify the Registry instance that a device event has taken place in
146 an asynchronous manner. This is the
147 method used by accessibility bridges to forward "toolkit dependent"
148 device events to the Registry from the application's process space.
149 If the event in question is potentially pre-emptible.
150 ::notifyListenersSync should be used instead. </p>
152 <p>@note AT clients do not normally need to use this method, it is intended for use
153 by toolkit bridges and special-purpose applications.</p>
155 <arg direction="in" name="event" type="(uinnisb)" tp:type="DeviceEvent"/>
157 <method name="generateKeyboardEvent">
159 Synthesize a keyboard event.
161 <arg direction="in" name="keycode" type="i">
163 a long integer indicating the keycode ofthe keypress to be synthesized.
166 <arg direction="in" name="keystring" type="s">
168 an optional UTF-8 string indicating a complexkeyboard input event.
171 <arg direction="in" name="type" type="u" tp:type="KeySynthType">
173 a KeySynthType indicating the type of event(s) to be synthesized: a key press, release, press-release pair,or a complex input string (for instance from aninternationalized or complex text input method, ora composed character).@note keycode may be truncated before beingprocessed, as keycode length may be platform-dependentand keycode ranges are generally much smaller thanCORBA_long. One or the other of keycode or keystring are generally NULL, (but not both), depending on the value of \c type.
177 <method name="generateMouseEvent">
179 Synthesize a mouse event.
181 <arg direction="in" name="x" type="i">
183 a long integer indicating the screen x coord for the mouse event.
186 <arg direction="in" name="y" type="i">
188 a long integer indicating the screen y coord for the mouse event.
191 <arg direction="in" name="eventName" type="s">
193 a string indicating the type of mouse event, e.g. "button1up"