Added methods for Component Layer and MDI Z-Order information (see
[platform/core/uifw/at-spi2-atk.git] / cspi / spi-listener-impl.h
1 #ifndef __SPI_LISTENER_IMPL_H__
2 #define __SPI_LISTENER_IMP_H__
3
4 #include <libspi/Accessibility.h>
5 #include <libspi/accessibleeventlistener.h>
6 #include <libspi/keystrokelistener.h>
7 #include <cspi/spi-impl.h>
8 #include <cspi/spi-listener.h>
9
10 G_BEGIN_DECLS
11
12 #define CSPI_KEYSTROKE_LISTENER_TYPE        (cspi_keystroke_listener_get_type ())
13 #define CSPI_KEYSTROKE_LISTENER(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), CSPI_KEYSTROKE_LISTENER_TYPE, CSpiKeystrokeListener))
14 #define CSPI_KEYSTROKE_LISTENER_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), CSPI_KEYSTROKE_LISTENER_TYPE, CSpiKeystrokeListenerClass))
15 #define IS_CSPI_KEYSTROKE_LISTENER(o)       (G_TYPE_CHECK_INSTANCE_TYPE ((o), CSPI_KEYSTROKE_LISTENER_TYPE))
16 #define IS_CSPI_KEYSTROKE_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CSPI_KEYSTROKE_LISTENER_TYPE))
17
18 typedef struct _CSpiEventListener CSpiEventListener;
19 struct _CSpiEventListener {
20         SpiEventListener parent;
21         GSList          *callbacks;
22 };
23
24 typedef SpiEventListenerClass CSpiEventListenerClass;
25
26 GType              cspi_event_listener_get_type        (void);
27 CSpiEventListener *cspi_event_listener_new             (void);
28 void               cspi_event_listener_add_callback    (CSpiEventListener        *listener,
29                                                         AccessibleEventListenerCB callback);
30 void               cspi_event_listener_remove_callback (CSpiEventListener        *listener,
31                                                         AccessibleEventListenerCB callback);
32
33 typedef struct _CSpiKeystrokeListener CSpiKeystrokeListener;
34 struct _CSpiKeystrokeListener {
35         SpiKeystrokeListener parent;
36         GSList              *callbacks;
37 };
38 typedef SpiKeystrokeListenerClass CSpiKeystrokeListenerClass;
39
40 GType                  cspi_keystroke_listener_get_type        (void);
41 CSpiKeystrokeListener *cspi_keystroke_listener_new             (void);
42 void                   cspi_keystroke_listener_add_callback    (CSpiKeystrokeListener        *listener,
43                                                                 AccessibleKeystrokeListenerCB callback);
44 void                   cspi_keystroke_listener_remove_callback (CSpiKeystrokeListener        *listener,
45                                                                 AccessibleKeystrokeListenerCB callback);
46
47 G_END_DECLS
48
49 #endif /* __SPI_LISTENER_IMPL_H__ */