int _minictrl_provider_message_send(int event, const char *minicontrol_name,
unsigned int witdh, unsigned int height,
- minicontrol_priority_e priority)
+ minicontrol_priority_e priority, time_t create_time)
{
int ret;
bundle *event_arg_bundle;
sizeof(int));
bundle_add_byte(event_arg_bundle, "priority", (void *)&priority,
sizeof(int));
+ bundle_add_byte(event_arg_bundle, "create_time", (void *)&create_time,
+ sizeof(time_t));
ret = _minictrl_send_event(MINICTRL_DBUS_SIG_TO_VIEWER,
minicontrol_name, event, event_arg_bundle);
minictrl_sig_handle *running_sh;
minictrl_sig_handle *event_sh;
minicontrol_event_cb event_callback;
+ time_t create_time;
};
static void _minictrl_win_del_cb(void *data, Evas *e, Evas_Object *obj,
if (pd->state == MINICTRL_STATE_RUNNING) {
evas_object_geometry_get(pd->obj, NULL, NULL, &w, &h);
_minictrl_provider_message_send(MINICONTROL_EVENT_START,
- pd->name, w, h, 0);
+ pd->name, w, h, 0, pd->create_time);
}
}
INFO("width[%d] height[%d]", width, height);
_minictrl_provider_message_send(
MINICONTROL_EVENT_RESIZE, pd->name,
- width, height, 0);
+ width, height, 0, 0);
}
if (pd->event_callback)
pd->name = name_inter;
pd->state = MINICTRL_STATE_READY;
pd->obj = win;
+ pd->create_time = time(NULL);
evas_object_data_set(win, MINICTRL_DATA_KEY, pd);
elm_win_autodel_set(win, EINA_TRUE);
evas_object_geometry_get(minicontrol, NULL, NULL, &w, &h);
_minictrl_provider_proc_send(MINICONTROL_DBUS_PROC_EXCLUDE);
ret = _minictrl_provider_message_send(MINICONTROL_EVENT_START,
- pd->name, w, h, 0);
+ pd->name, w, h, 0, pd->create_time);
}
return ret;
pd->state = MINICTRL_STATE_READY;
_minictrl_provider_proc_send(MINICONTROL_DBUS_PROC_INCLUDE);
ret = _minictrl_provider_message_send(MINICONTROL_EVENT_STOP,
- pd->name, 0, 0, 0);
+ pd->name, 0, 0, 0, 0);
}
return ret;
if (pd->state == MINICTRL_STATE_RUNNING) {
evas_object_geometry_get(obj, NULL, NULL, &w, &h);
_minictrl_provider_message_send(MINICONTROL_EVENT_RESIZE,
- pd->name, w, h, 0);
+ pd->name, w, h, 0, 0);
}
}
/* send message to remove plug */
_minictrl_provider_message_send(MINICONTROL_EVENT_STOP,
- minicontrol_name, 0, 0, MINICONTROL_PRIORITY_LOW);
+ minicontrol_name, 0, 0, MINICONTROL_PRIORITY_LOW, 0);
_minictrl_provider_proc_send(MINICONTROL_DBUS_PROC_INCLUDE);
free(minicontrol_name);
}