From 38162dedb15ab7e94c51c1e2c94200aa62953bd8 Mon Sep 17 00:00:00 2001 From: Jisung Ahn Date: Fri, 28 Dec 2012 16:57:38 +0900 Subject: [PATCH] remove print option Change-Id: I7578ac6ec3b26354803afff29710f766bf076b0d --- feature/src/ivug-ext-ug.c | 70 ----------------------------------- main/src/view/ivug-main-view-menu.cpp | 16 -------- 2 files changed, 86 deletions(-) diff --git a/feature/src/ivug-ext-ug.c b/feature/src/ivug-ext-ug.c index 7e418ad..4459487 100755 --- a/feature/src/ivug-ext-ug.c +++ b/feature/src/ivug-ext-ug.c @@ -877,76 +877,6 @@ BROWSER_END: return (ret == SERVICE_ERROR_NONE ? true : false); } -bool ivug_ext_launch_print(const char *uri) -{ - MSG_IMAGEVIEW_HIGH("%s. URI=%s", __func__, uri); - - int ret = -1; - int destroy_ret = -1; - const char *pkgname = PRINT_PKG_NAME; - - if(uri == NULL) - { - MSG_IMAGEVIEW_ERROR("URI is NULL"); - return false; - } - - service_h handle; - - ret = service_create(&handle); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_create failed, %d", ret); - return false; - } - - ret = service_set_operation(handle, OPERATION_NAME_PRINT); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret); - goto PRINT_END; - } - - ret = service_set_package(handle, pkgname); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_set_package failed, %d", ret); - goto PRINT_END; - } - - ret = service_set_uri (handle, uri); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret); - goto PRINT_END; - } - - ret = service_add_extra_data(handle, SERVICE_PRINT_FILES_TYPE, "IMG"); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_add_extra_data failed, %d", ret); - goto PRINT_END; - } - - ret = service_send_launch_request(handle, ivug_ext_service_reply_cb, NULL); - if(ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_send_launch_request failed, %d", ret); - goto PRINT_END; - } - -PRINT_END: - destroy_ret = service_destroy(handle); - if(destroy_ret != SERVICE_ERROR_NONE) - { - MSG_IMAGEVIEW_ERROR("service_destroy failed, %d", destroy_ret); - return false; - } - - return (ret == SERVICE_ERROR_NONE ? true : false); -} - - ui_gadget_h ivug_ext_launch_select_contact(ug_result_cb result_func, ug_destroy_cb destroy_func, void *data) { MSG_IMAGEVIEW_HIGH("%s", __func__); diff --git a/main/src/view/ivug-main-view-menu.cpp b/main/src/view/ivug-main-view-menu.cpp index ec9f17a..ae4618e 100755 --- a/main/src/view/ivug-main-view-menu.cpp +++ b/main/src/view/ivug-main-view-menu.cpp @@ -1826,21 +1826,6 @@ static void _on_more_selected(void *data, Evas_Object *obj, void *event_info) { on_btn_tag_clicked(data, obj, event_info); } - else if(strncmp(label, IDS_PRINT, strlen(label)) == 0) - { - Media_Item *WMitem = ivug_slider_get_item(pMainView->slider); - Media_Data *mdata = ivug_medialist_get_data(WMitem); - - if (mdata == NULL) - { - MSG_MAIN_ERROR("slider data is NULL"); - evas_object_del(pMainView->ctx_popup); - pMainView->ctx_popup = NULL; - ivug_main_view_set_hide_timer(pMainView); - return; - } - ivug_ext_launch_print(mdata->filepath); - } evas_object_del(pMainView->ctx_popup); pMainView->ctx_popup = NULL; @@ -1882,7 +1867,6 @@ void on_btn_more_clicked(void *data, Evas_Object *obj, void *event_info) if(pMainView->pDetailsView == NULL) ivug_listpopup_item_append(popup, NULL, IDS_DETAILS, IDS_DETAILS); ivug_listpopup_item_append(popup, NULL, IDS_ADD_TAG, IDS_ADD_TAG); - ivug_listpopup_item_append(popup, NULL, IDS_PRINT, IDS_PRINT); if(mdata->bIsDRMContent == EINA_FALSE) { -- 2.7.4