diff options
author | yunju06lee <yunju06.lee@samsung.com> | 2013-04-12 20:54:34 +0900 |
---|---|---|
committer | yunju06lee <yunju06.lee@samsung.com> | 2013-04-12 20:54:34 +0900 |
commit | 6ab11b77d38d9b3cd509e42b4d17706168f38f6b (patch) | |
tree | cd27616c27b3c974f95d042e7cbf2d52b332232c | |
parent | 57a2c3a16d83ce182a0bbd4e5fcde98209b4be9f (diff) | |
download | phone-contacts-6ab11b77d38d9b3cd509e42b4d17706168f38f6b.tar.gz phone-contacts-6ab11b77d38d9b3cd509e42b4d17706168f38f6b.tar.bz2 phone-contacts-6ab11b77d38d9b3cd509e42b4d17706168f38f6b.zip |
add mime type for tizen2.1
Change-Id: I0072469895adc75c839791db2bff37d50c6ea96c
-rwxr-xr-x | lib/common/ph-common.c | 3 | ||||
-rw-r--r-- | lib/details/contacts-details-efl.xml | 3 | ||||
-rwxr-xr-x | lib/details/ct-detail-main.c | 5 | ||||
-rwxr-xr-x | lib/details/ct-input-utils.c | 2 | ||||
-rwxr-xr-x | lib/list/ct-list-main.c | 4 |
5 files changed, 8 insertions, 9 deletions
diff --git a/lib/common/ph-common.c b/lib/common/ph-common.c index adbc85d..317a306 100755 --- a/lib/common/ph-common.c +++ b/lib/common/ph-common.c @@ -1044,7 +1044,7 @@ void phone_ug_return_value(service_h service, int person_id, int num_id, int ema if (person_id) { snprintf(buf, sizeof(buf), "%d", person_id); PH_DBG("person id %s", buf); - service_add_extra_data(reply, CT_OPERATION_RESULT_TYPE_ITEM_ID, buf); + service_add_extra_data(reply, CT_OPERATION_ITEM_ID, buf); service_reply_to_launch_request(reply, service, SERVICE_RESULT_SUCCEEDED); @@ -1063,7 +1063,6 @@ void phone_ug_return_value(service_h service, int person_id, int num_id, int ema service_add_extra_data(reply, CT_OPERATION_RESULT_TYPE_PHONE, number); - //ug_send_result(ug, service); service_reply_to_launch_request(reply, service, SERVICE_RESULT_SUCCEEDED); err = contacts_record_destroy(number_record, true); diff --git a/lib/details/contacts-details-efl.xml b/lib/details/contacts-details-efl.xml index 1c4fb6e..d040d6c 100644 --- a/lib/details/contacts-details-efl.xml +++ b/lib/details/contacts-details-efl.xml @@ -27,12 +27,15 @@ </application-service> <application-service> <operation name="http://tizen.org/appcontrol/operation/social/view"/> + <mime name="vnd.tizen.item.type/vnd.tizen.contact"/> </application-service> <application-service> <operation name="http://tizen.org/appcontrol/operation/social/add"/> + <mime name="vnd.tizen.item.type/vnd.tizen.contact"/> </application-service> <application-service> <operation name="http://tizen.org/appcontrol/operation/social/edit"/> + <mime name="vnd.tizen.item.type/vnd.tizen.contact"/> </application-service> </ui-application> </manifest> diff --git a/lib/details/ct-detail-main.c b/lib/details/ct-detail-main.c index 6f5d616..d91ea66 100755 --- a/lib/details/ct-detail-main.c +++ b/lib/details/ct-detail-main.c @@ -221,6 +221,7 @@ static int __detail_parse_bundle_by_operation(service_h service, char* operation service_get_extra_data(service, CT_OPERATION_ITEM_ID, &val1); if(val1) { + PH_DBG("person id %s", val1); cdetail_d->person_id = atoi(val1); free(val1); @@ -310,9 +311,7 @@ static void *detail_on_create(ui_gadget_h ug, enum ug_mode mode, free(operation); if(request < 0) { ERR("__detail_parse_bundle_by_operation invalid parameter"); - err = contacts_disconnect2(); - p_warn_if(CONTACTS_ERROR_NONE != err, "contacts_disconnect2() Failed(%d)", err); - return NULL; + request = ct_detail_parse_bundle(service, cdetail_d, &ret); } } else diff --git a/lib/details/ct-input-utils.c b/lib/details/ct-input-utils.c index 311ae68..925ee56 100755 --- a/lib/details/ct-input-utils.c +++ b/lib/details/ct-input-utils.c @@ -555,7 +555,7 @@ void ct_input_save_cb(void *data, Evas_Object *obj, void *event_info) else { cinput_d->saved = true; if(cdetail_d->service_operation) - phone_service_reply_simple(cdetail_d->service_operation, SERVICE_RESULT_SUCCEEDED); + phone_ug_return_value(cdetail_d->service_operation, cdetail_d->person_id, 0, 0); } } else { diff --git a/lib/list/ct-list-main.c b/lib/list/ct-list-main.c index 8e2d3ee..c746788 100755 --- a/lib/list/ct-list-main.c +++ b/lib/list/ct-list-main.c @@ -304,9 +304,7 @@ static void *list_on_create(ui_gadget_h ug, enum ug_mode mode, free(operation); if(ret < 0) { ERR("__list_parse_bundle_by_operation invalid parameter"); - err = contacts_disconnect2(); - p_warn_if(CONTACTS_ERROR_NONE != err, "contacts_disconnect2() Failed(%d)", err); - return NULL; + ret = ct_list_parse_bundle(service, clist_d); } } else { |