Initial revision
[platform/core/uifw/at-spi2-atk.git] / libspi / listener.h
1 #ifndef LISTENER_H_
2 #define LISTENER_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif /* __cplusplus */
7
8 #include <bonobo/bonobo-xobject.h>
9 #include <atk/atkobject.h>
10 #include <Event.h>
11
12 #define LISTENER_TYPE        (listener_get_type ())
13 #define LISTENER(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), LISTENER_TYPE, Listener))
14 #define LISTENER_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST((k), LISTENER_TYPE, ListenerClass))
15 #define IS_LISTENER(o)       (G_TYPE_CHECK__INSTANCE_TYPE ((o), LISTENER_TYPE))
16 #define IS_LISTENER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), LISTENER_TYPE))
17
18 typedef struct {
19         BonoboXObject parent;
20 } Listener;
21
22 typedef struct {
23         BonoboXObjectClass parent_class;
24         POA_Accessibility_EventListener__epv epv;
25 } ListenerClass;
26
27 GType               listener_get_type   (void);
28 Listener            *listener_new       (void);
29
30 #ifdef __cplusplus
31 }
32 #endif /* __cplusplus */
33
34 #endif /* LISTENER_H_ */