From 003bdb4fc33e206d8c14898ed804a6c3b2b1a854 Mon Sep 17 00:00:00 2001 From: Soonmin Jung Date: Tue, 22 Jan 2013 20:44:12 +0900 Subject: [PATCH] Fix N_SE-22522, uri of filepath is supported Change-Id: I4f3665aabe05bb452ef650547e5ddfa9bd61ea45 --- composer/src/ui-composer/msg-ui-composer-main.c | 6 +++++- main/message.c | 10 +++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/composer/src/ui-composer/msg-ui-composer-main.c b/composer/src/ui-composer/msg-ui-composer-main.c index f88fe60..33ef138 100755 --- a/composer/src/ui-composer/msg-ui-composer-main.c +++ b/composer/src/ui-composer/msg-ui-composer-main.c @@ -390,8 +390,12 @@ static void __msgc_get_service_app_svc_op(MSG_COMPOSER_VIEW_DATA_S *cd, service_ __msgc_ui_parse_mmsto_uri(cd, svc_handle, (const char *)uri); } else if (g_str_has_prefix(uri, MSG_BUNDLE_VALUE_FILE_URI)) { /* URI : file */ __msgc_ui_parse_file_uri(cd, svc_handle, (const char *)uri); + } else if (g_str_has_prefix(uri, "/")) { + cd->attachlist = make_tokenize_list((const char *)uri, COMPOSER_BUNDLE_ATTACH_TOKEN); + if (cd->attachlist) + msg_ui_composer_body_items_add(cd); } else { - D_EMSG("Not supported mime type"); + D_EMSG("Not supported URI type"); return; } } else { diff --git a/main/message.c b/main/message.c index 80ea57c..9cb04c9 100755 --- a/main/message.c +++ b/main/message.c @@ -348,8 +348,16 @@ static service_h __get_service_app_svc_op(const char *operation, service_h servi D_MSG("cb is NULL"); return NULL; } + } else if (g_str_has_prefix(uri, "/")) { + if (service_create(&svc_handle) < 0 || svc_handle == NULL) { + D_EMSG("service_create() is failed !!"); + return NULL; + } + + D_MSG("APPSVC ATTACHMENT = [%s]", uri); + service_add_extra_data(svc_handle, MSG_BUNDLE_KEY_ATTACHFILE, uri); } else { - D_MSG("Not supported mime type"); + D_MSG("Not supported URI type"); return NULL; } } else { -- 2.7.4