MMI_API int MMI_VISION_EVENT_PROPAGATE = -1;
MMI_API int MMI_VISION_EVENT_DROP = -1;
MMI_API int MMI_VISION_EVENT_FINISH = -1;
+MMI_API int MMI_EVENT_REFRESH_SCREEN_INFORM = -1;
MMI_API extern int MMI_VISION_EVENT_PROPAGATE;
MMI_API extern int MMI_VISION_EVENT_DROP;
MMI_API extern int MMI_VISION_EVENT_FINISH;
+MMI_API extern int MMI_EVENT_REFRESH_SCREEN_INFORM;
//TODO. not use mmi_vision_state, use mmi_event_vision_type
typedef enum {
typedef struct
{
+ double seconds; // refresh timer seconds value
+} mmi_event_refresh_screen_inform;
+
+
+typedef struct
+{
int mode;// tooltip, grid
int timestamp;
const char *object_id;
ecore_event_type_flush_internal(MMI_PROVIDER_EVENT_VISION);
ecore_event_type_flush_internal(MMI_VISION_EVENT_PROPAGATE);
ecore_event_type_flush_internal(MMI_VISION_EVENT_FINISH);
+ ecore_event_type_flush_internal(MMI_EVENT_REFRESH_SCREEN_INFORM);
}
void
MMI_VISION_EVENT_PROPAGATE = ecore_event_type_new();
MMI_VISION_EVENT_DROP = ecore_event_type_new();
MMI_VISION_EVENT_FINISH = ecore_event_type_new();
+ MMI_EVENT_REFRESH_SCREEN_INFORM = ecore_event_type_new();
LOGD("MMI_PROVIDER_EVENT_KEY=%d\n", MMI_PROVIDER_EVENT_KEY);
LOGD("MMI_PROVIDER_EVENT_GESTURE=%d\n", MMI_PROVIDER_EVENT_GESTURE);
#include "TouchModule.h"
#include "mmi-manager-dbg.h"
#include "mmi_output_modality.h"
+#include <Ecore.h>
static TouchModule *g_touch_module = nullptr;
+static void __refresh_screen_inform_event_free(void *data EINA_UNUSED, void *event)
+{
+ mmi_event_refresh_screen_inform *ev = (mmi_event_refresh_screen_inform *)event;
+ free(ev);
+}
+
EXPORT_API void output_modality_initialize()
{
LOGD("initialize output modality");
LOGD("voice touch by grid");
ret = g_touch_module->ClickByCoordinate(modality.coord_x, modality.coord_y);
} else {
+ LOGE("mode(%d) is not supported", mode);
return 0;
}
LOGD("voice touch done");
+ mmi_event_refresh_screen_inform *ev = (mmi_event_refresh_screen_inform *)calloc(1, sizeof(mmi_event_refresh_screen_inform));
+ if (ev == NULL) {
+ LOGE("mmi_event_refresh_screen_inform malloc failed");
+ return -1;
+ }
+
+ ev->seconds = 2.0;
+ ecore_event_add(MMI_EVENT_REFRESH_SCREEN_INFORM, ev, __refresh_screen_inform_event_free, NULL);
+
return ret;
}