#define CONTACT_SELECT_UG_NAME "contacts-tabui-efl"
-#define VIDEOPLAYER_PKG_NAME "com.samsung.video-player"
-#define BLUETOOTH_PKG_NAME "com.samsung.bluetooth"
-#define BROWSER_PKG_NAME "com.samsung.browser"
-#define MESSAGE_PKG_NAME "com.samsung.message"
-#define EMAIL_PKG_NAME "com.samsung.email"
-
-
-#define FACEBOOK_PKG_NAME "com.samsung.facebook"
+#define VIDEOPLAYER_PKG_NAME "org.tizen.video-player"
+#define BLUETOOTH_PKG_NAME "org.tizen.bluetooth"
+#define BROWSER_PKG_NAME "org.tizen.browser"
+#define MESSAGE_PKG_NAME "org.tizen.message"
+#define EMAIL_PKG_NAME "org.tizen.email"
#define WIFI_FILE_TRANSFER_UG_NAME "fileshare-efl"
-#define PRINT_PKG_NAME "com.samsung.mobileprint"
+#define PRINT_PKG_NAME "org.tizen.mobileprint"
#define OPERATION_NAME_PRINT "http://tizen.org/appcontrol/operation/PRINT"
return (ret == SERVICE_ERROR_NONE ? true : false);
}
-bool ivug_ext_launch_twitter(const char *uri)
-{
- MSG_IMAGEVIEW_HIGH("%s. URI=%s", __func__, uri);
-
- int ret = -1;
- int destroy_ret = -1;
-
- service_h handle;
-
- ret = service_create(&handle);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_create failed, %d", ret);
- return false;
- }
-
- if ( ivug_is_web_uri(uri) == true)
- {
- ret = service_set_operation(handle, SERVICE_OPERATION_SEND_TEXT);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret);
- goto TWITTER_END;
- }
- ret = service_add_extra_data(handle, SERVICE_DATA_TEXT, uri);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_add_extra_data failed, %d", ret);
- goto TWITTER_END;
- }
- }
- else
- {
- ret = service_set_operation(handle, SERVICE_OPERATION_SEND);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret);
- goto TWITTER_END;
- }
- ret = service_set_uri (handle, uri);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto TWITTER_END;
- }
- }
-
- const char *pkgname = "com.samsung.twitter";
-
- ret = service_set_package(handle, pkgname);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto TWITTER_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 TWITTER_END;
- }
-
-TWITTER_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);
-}
-
-bool ivug_ext_launch_facebook(const char *uri)
-{
- MSG_IMAGEVIEW_HIGH("%s. URI=%s", __func__, uri);
-
- int ret = -1;
- int destroy_ret = -1;
-
- service_h handle;
-
- ret = service_create(&handle);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_create failed, %d", ret);
- return false;
- }
-
- if ( ivug_is_web_uri(uri) == true)
- {
- ret = service_set_operation(handle, SERVICE_OPERATION_SEND_TEXT);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret);
- goto FACEBOOK_END;
- }
- ret = service_add_extra_data(handle, SERVICE_DATA_TEXT, uri);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_add_extra_data failed, %d", ret);
- goto FACEBOOK_END;
- }
- }
- else
- {
- ret = service_set_operation(handle, SERVICE_OPERATION_SEND);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret);
- goto FACEBOOK_END;
- }
- ret = service_set_uri (handle, uri);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto FACEBOOK_END;
- }
- }
-
- const char *pkgname = "com.samsung.facebook";
-
- ret = service_set_package(handle, pkgname);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto FACEBOOK_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 FACEBOOK_END;
- }
-
-FACEBOOK_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);
-}
-
-bool ivug_ext_launch_picasa(const char *uri)
-{
- MSG_IMAGEVIEW_HIGH("%s. URI=%s", __func__, uri);
-
- int ret = -1;
- int destroy_ret = -1;
- char xwin_id_str[12] = {0,};
-
- 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, SERVICE_OPERATION_SEND);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_operation failed, %d", ret);
- goto PICASA_END;
- }
- ret = service_set_uri (handle, uri);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto PICASA_END;
- }
-
- const char *pkgname = "com.samsung.picasa";
-
- ret = service_set_package(handle, pkgname);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_set_uri failed, %d", ret);
- goto PICASA_END;
- }
-
- Ecore_X_Window xwin_id = elm_win_xwindow_get(ug_get_window());
- eina_convert_itoa(xwin_id, xwin_id_str);
- ret = service_add_extra_data(handle, "XWINDOW_ID", xwin_id_str);
- if(ret != SERVICE_ERROR_NONE)
- {
- MSG_IMAGEVIEW_ERROR("service_add_extra_data failed, %d", ret);
- goto PICASA_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 PICASA_END;
- }
-
-PICASA_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);
-}
-
bool ivug_ext_launch_browser(const char *uri)
{
MSG_IMAGEVIEW_HIGH("%s. URI=%s", __func__, uri);