void msg_ui_bubble_backup_clicked_cb(void *data, Evas_Object *obj, void *event_info);
void msg_ui_bubble_ctlbar_call_cb(void *data, Evas_Object *obj, void *event_info);
-void msg_ui_bubble_ctlbar_vcall_cb(void *data, Evas_Object *obj, void *event_info);
void msg_ui_bubble_ctlbar_email_cb(void *data, Evas_Object *obj, void *event_info);
void msg_ui_bubble_ctlbar_add_to_contact_cb(void *data, Evas_Object *obj, void *event_info);
void msg_ui_bubble_ctlbar_view_ct_detail_cb(void *data, Evas_Object *obj, void *event_info);
void msg_ui_bubble_main_layout_clicked_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
void msg_ui_bubble_launch_voice_call(const char *call_num);
-void msg_ui_bubble_launch_video_call(const char *call_num);
char *msg_ui_bubble_get_trimmed_number(const char *org_num);
void msg_ui_bubble_launch_add_to_contact_ug(PMSG_BUBBLE_DATA pData);
void msg_ui_bubble_launch_contact_list_ug(PMSG_BUBBLE_DATA pData, int type, const char *str);
if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_BODY_CALL")) == 0) {
msg_ui_bubble_launch_voice_call(addr_info->address);
- } else if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_BODY_VIDEO_CALL")) == 0) {
- msg_ui_bubble_launch_video_call(addr_info->address);
- } else if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_OPT_ADD_TO_CONTACTS")) == 0) { /* Add to contact with phone number string... */
+ } else if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_OPT_ADD_TO_CONTACTS")) == 0) { /* Add to contact with phone number string... */
msg_ui_composer_launch_contact_list_ug(cd, MSG_CT_UG_REQUEST_UPDATE_WITH_NUM, addr_info->address);
} else if (g_strcmp0(label, dgettext(MESSAGE_PKGNAME, "IDS_MSGC_OPT_VIEW_CONTACT")) == 0) {
msg_ui_composer_launch_contact_detail_ug(cd, addr_info->contact_id);
if (num_type == WORD_TYPE_NUM) {
elm_list_item_append(list, dgettext("sys_string", "IDS_COM_BODY_CALL"), NULL, NULL, __msg_ui_bubble_list_popup_selected_cb, (void *)addr_info);
- elm_list_item_append(list, dgettext("sys_string", "IDS_COM_BODY_VIDEO_CALL"), NULL, NULL, __msg_ui_bubble_list_popup_selected_cb, (void *)addr_info);
} else if (num_type == WORD_TYPE_EMAIL) {
elm_list_item_append(list, dgettext(MESSAGE_PKGNAME, "IDS_MSGF_OPT_SEND_EMAIL"), NULL, NULL, __msg_ui_bubble_list_popup_selected_cb, (void *)addr_info);
} else {
if (num_type == WORD_TYPE_NUM) {
elm_genlist_item_append(genlist, &(bubble_data->itc_title_single), dgettext("sys_string", "IDS_COM_BODY_CALL"), NULL, ELM_GENLIST_ITEM_NONE, msg_ui_bubble_ctlbar_call_cb, cd);
- elm_genlist_item_append(genlist, &(bubble_data->itc_title_single), dgettext("sys_string", "IDS_COM_BODY_VIDEO_CALL"), NULL, ELM_GENLIST_ITEM_NONE, msg_ui_bubble_ctlbar_vcall_cb, cd);
} else if (num_type == WORD_TYPE_EMAIL) {
elm_genlist_item_append(genlist, &(bubble_data->itc_title_single), dgettext(MESSAGE_PKGNAME, "IDS_MSGF_OPT_SEND_EMAIL"), NULL, ELM_GENLIST_ITEM_NONE, msg_ui_bubble_ctlbar_email_cb, cd);
} else {
msg_ui_bubble_close_title_menu_genlist(pData);
}
-void msg_ui_bubble_ctlbar_vcall_cb(void *data, Evas_Object *obj, void *event_info)
-{
- D_ENTER;
- MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, !data || !obj);
- MSG_COMPOSER_VIEW_DATA_S *cd = data;
- PMSG_BUBBLE_DATA pData = cd->bubble_data;
- MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, !pData);
-
- if (pData->addr_list.addr_cnt == 1)
- msg_ui_bubble_launch_video_call(pData->addr_list.addr_info[0].address);
-
- msg_ui_bubble_close_title_menu_genlist(pData);
-}
-
void msg_ui_bubble_ctlbar_add_to_contact_cb(void *data, Evas_Object *obj, void *event_info)
{
D_ENTER;
service_destroy(svc_handle);
}
-
- } else if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_BODY_VIDEO_CALL")) == 0) {
- msg_ui_bubble_launch_video_call(title);
} else if (g_strcmp0(label, dgettext("sys_string", "IDS_COM_OPT_ADD_TO_CONTACTS")) == 0) { /* Add to contact with phone number string... */
msg_ui_composer_launch_contact_list_ug(cd, MSG_CT_UG_REQUEST_UPDATE_WITH_NUM, title);
} else if (g_strcmp0(label, dgettext(MESSAGE_PKGNAME, "IDS_MSGC_OPT_VIEW_CONTACT")) == 0) {
MSG_UI_LEAVE(MSG_UI_LEVEL_DEBUG);
}
-void msg_ui_bubble_launch_video_call(const char *call_num)
-{
- MSG_UI_ENTER(MSG_UI_LEVEL_DEBUG);
- MSG_UI_RET_IF(MSG_UI_LEVEL_ERR, !call_num);
-
- char *num_str = msg_ui_bubble_get_trimmed_number(call_num);
-
- service_h svc_handle = NULL;
- char tel_num[DEF_BUF_LEN] = {0,};
- char contact_id[DEF_BUF_LEN_D] = {0,};
-
- if (service_create(&svc_handle) < 0 || svc_handle == NULL) {
- D_EMSG("service_create() is failed !!");
- } else {
- service_set_operation(svc_handle, "http://tizen.org/appcontrol/operation/vt");
-
- if (num_str) {
- snprintf(tel_num, sizeof(tel_num), "tel:%s", num_str);
- service_set_uri(svc_handle, tel_num);
- }
- snprintf(contact_id, sizeof(contact_id), "%d", -1);
- service_add_extra_data(svc_handle, "ctindex", contact_id);
-
- service_send_launch_request(svc_handle, NULL, NULL);
- service_destroy(svc_handle);
- }
-
- if (num_str) {
- free(num_str);
- num_str = NULL;
- }
-
- MSG_UI_LEAVE(MSG_UI_LEVEL_DEBUG);
-}
-
char *msg_ui_bubble_get_trimmed_number(const char *org_num)
{
char num_str[DEF_BUF_LEN_L] = { 0, };