Imported version 2.7.91
[platform/core/uifw/at-spi2-core.git] / registryd / de-types.h
1 /*
2  * AT-SPI - Assistive Technology Service Provider Interface
3  * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
4  *
5  * Copyright 2009  Codethink Ltd
6  * Copyright 2001, 2002 Sun Microsystems Inc.,
7  * Copyright 2001, 2002 Ximian, Inc.
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Library General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Library General Public License for more details.
18  *
19  * You should have received a copy of the GNU Library General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24
25 #ifndef SPI_DE_TYPES_H_
26 #define SPI_DE_TYPES_H_
27
28 #include <dbus/dbus.h>
29
30 typedef unsigned long Accessibility_ControllerEventMask;
31
32 typedef enum {
33     Accessibility_KEY_PRESSED_EVENT,
34     Accessibility_KEY_RELEASED_EVENT,
35     Accessibility_BUTTON_PRESSED_EVENT,
36     Accessibility_BUTTON_RELEASED_EVENT,
37 } Accessibility_EventType;
38
39 typedef enum {
40     Accessibility_KEY_PRESSED,
41     Accessibility_KEY_RELEASED,
42 } Accessibility_KeyEventType;
43
44 typedef enum {
45     Accessibility_KEY_PRESS,
46     Accessibility_KEY_RELEASE,
47     Accessibility_KEY_PRESSRELEASE,
48     Accessibility_KEY_SYM,
49     Accessibility_KEY_STRING,
50 } Accessibility_KeySynthType;
51
52 typedef struct _Accessibility_DeviceEvent Accessibility_DeviceEvent;
53 struct _Accessibility_DeviceEvent
54 {
55   Accessibility_EventType type;
56   dbus_uint32_t id;
57   dbus_uint32_t hw_code;
58   dbus_uint32_t modifiers;
59   dbus_uint32_t timestamp;
60   char * event_string;
61   dbus_bool_t is_text;
62 };
63
64 typedef struct _Accessibility_EventListenerMode Accessibility_EventListenerMode;
65 struct _Accessibility_EventListenerMode
66 {
67   dbus_bool_t synchronous;
68   dbus_bool_t preemptive;
69   dbus_bool_t global;
70 };
71
72 typedef struct _Accessibility_KeyDefinition Accessibility_KeyDefinition;
73 struct _Accessibility_KeyDefinition
74 {
75   dbus_int32_t keycode;
76   dbus_int32_t keysym;
77   char *keystring;
78   dbus_int32_t unused;
79 };
80
81 #endif /* SPI_DE_TYPES_H_ */