static Ecore_Event_Handler* g_focus_out_handler = NULL;
static Ecore_Timer* g_w_start_timer = NULL;
+static Ecore_Timer* g_w_notify_error_timer = NULL;
+static Ecore_Timer* g_w_notify_state_timer = NULL;
+static Ecore_Timer* g_w_notify_result_timer = NULL;
static int g_daemon_pid = 0;
return;
}
+static void __vc_widget_delete_timer()
+{
+ SLOG(LOG_DEBUG, TAG_VCW, "@@@ [Widget] timers are deleted");
+ if (NULL != g_w_start_timer) {
+ ecore_timer_del(g_w_start_timer);
+ g_w_start_timer = NULL;
+ }
+ if (NULL != g_w_notify_error_timer) {
+ ecore_timer_del(g_w_notify_error_timer);
+ g_w_notify_error_timer = NULL;
+ }
+ if (NULL != g_w_notify_state_timer) {
+ ecore_timer_del(g_w_notify_state_timer);
+ g_w_notify_state_timer = NULL;
+ }
+ if (NULL != g_w_notify_result_timer) {
+ ecore_timer_del(g_w_notify_result_timer);
+ g_w_notify_result_timer = NULL;
+ }
+ return;
+}
+
int vc_widget_deinitialize(vc_h vc_w)
{
SLOG(LOG_DEBUG, TAG_VCW, "@@@ [Widget] Deinitialize");
break;
}
+ __vc_widget_delete_timer();
+
SLOG(LOG_DEBUG, TAG_VCW, "Success: destroy");
if (0 == vc_widget_client_get_count()) {
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to initialize : %s", __vc_widget_get_error_code(ret));
vc_widget_client_set_error(vc_w, VC_ERROR_ENGINE_NOT_FOUND);
- ecore_timer_add(0, __vc_widget_notify_error, vc_w);
+ g_w_notify_error_timer = ecore_timer_add(0, __vc_widget_notify_error, vc_w);
SLOG(LOG_DEBUG, TAG_VCW, "@@@");
return EINA_FALSE;
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Fail to initialize : %s", __vc_widget_get_error_code(ret));
vc_widget_client_set_error(vc_w, VC_ERROR_TIMED_OUT);
- ecore_timer_add(0, __vc_widget_notify_error, vc_w);
+ g_w_notify_error_timer = ecore_timer_add(0, __vc_widget_notify_error, vc_w);
SLOG(LOG_DEBUG, TAG_VCW, "@@@");
return EINA_FALSE;
}
vc_widget_client_set_state(vc_w, VC_STATE_READY);
- ecore_timer_add(0, __vc_widget_notify_state_changed, vc_w);
+ g_w_notify_state_timer = ecore_timer_add(0, __vc_widget_notify_state_changed, vc_w);
SLOG(LOG_DEBUG, TAG_VCW, "@@@");
__vc_widget_internal_unprepare(vc_w);
vc_widget_client_set_state(vc_w, VC_STATE_INITIALIZED);
- ecore_timer_add(0, __vc_widget_notify_state_changed, vc_w);
+ g_w_notify_state_timer = ecore_timer_add(0, __vc_widget_notify_state_changed, vc_w);
SLOG(LOG_DEBUG, TAG_VCW, "@@@");
SLOG(LOG_ERROR, TAG_VCW, "[ERROR] Error reason(%d), msg(%s)", reason, msg);
vc_widget_client_set_error(vc_w, reason);
- ecore_timer_add(0, __vc_widget_notify_error, vc_w);
+ g_w_notify_error_timer = ecore_timer_add(0, __vc_widget_notify_error, vc_w);
}
}
void __vc_widget_cb_result()
{
- ecore_timer_add(0, __vc_widget_notify_result, NULL);
+ g_w_notify_result_timer = ecore_timer_add(0, __vc_widget_notify_result, NULL);
return;
}