Added simple scanning to the virtual keyboard demo, to show one way to
[platform/core/uifw/at-spi2-atk.git] / registryd / deviceeventcontroller.h
index 985a36e..e3e8c97 100644 (file)
 #ifndef SPI_DEVICE_EVENT_CONTROLLER_H_
 #define SPI_DEVICE_EVENT_CONTROLLER_H_
 
-#ifdef __cplusplus
-extern "C" {
-#endif /* __cplusplus */
-
 #include <bonobo/bonobo-object.h>
 #include <libspi/Accessibility.h>
-#include "keystrokelistener.h"
+#include <libspi/keystrokelistener.h>
+#include <libspi/registry.h>
+
+G_BEGIN_DECLS
 
 #define SPI_DEVICE_EVENT_CONTROLLER_TYPE        (spi_device_event_controller_get_type ())
 #define SPI_DEVICE_EVENT_CONTROLLER(o)          (G_TYPE_CHECK_INSTANCE_CAST ((o), SPI_DEVICE_EVENT_CONTROLLER_TYPE, SpiDeviceEventController))
@@ -40,6 +39,7 @@ extern "C" {
 
 typedef struct {
         BonoboObject parent;
+       void  *registry;
         GList *key_listeners;
         GList *mouse_listeners;
        GList *keymask_list;
@@ -47,14 +47,13 @@ typedef struct {
 
 typedef struct {
         BonoboObjectClass parent_class;
-        POA_Accessibility_SpiDeviceEventController__epv epv;
+        POA_Accessibility_DeviceEventController__epv epv;
        gboolean (*check_key_event) (SpiDeviceEventController *controller);
 } SpiDeviceEventControllerClass;
 
-GType               spi_device_event_controller_get_type   (void);
+GType                     spi_device_event_controller_get_type   (void);
+SpiDeviceEventController *spi_device_event_controller_new        (void *registry);
 
-#ifdef __cplusplus
-}
-#endif /* __cplusplus */
+G_END_DECLS
 
 #endif /* DEVICEEVENTCONTROLLER_H_ */