From: Nibha Sharma Date: Mon, 6 Apr 2020 06:55:15 +0000 (+0530) Subject: [TBT][ui-viewmanager][ACR-1521][Removed deprecated api of ui-viewmanager] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad025e513801653806ab743e693dcb2ea40b2cce;p=test%2Ftct%2Fnative%2Fbehavior.git [TBT][ui-viewmanager][ACR-1521][Removed deprecated api of ui-viewmanager] Change-Id: If31edd10b9f8a380e283651f57dd65d99267e348 Signed-off-by: Nibha Sharma --- diff --git a/release/binary-armv7l/install.sh b/release/binary-armv7l/install.sh index 06be261..e1b9889 100755 --- a/release/binary-armv7l/install.sh +++ b/release/binary-armv7l/install.sh @@ -37,7 +37,6 @@ sdb push org.tizen.tbt-ime-1.0.0-arm.tpk /tmp sdb push org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk /tmp sdb push org.tizen.tbtcoreapp-1.0.0-arm.tpk /tmp sdb push org.tizen.tbt_pushtestapp-1.0.0-arm.tpk /tmp -sdb push org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk /tmp sdb push org.example.multiclass-1.0.0-arm.tpk /tmp sdb push org.example.widget-1.0.0-arm.tpk /tmp sdb push org.tizen.coretbtwidgetapp-dali-1.0.0-arm.tpk /tmp @@ -64,7 +63,6 @@ sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-arm.tpk" $E sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-arm.tpk sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-arm.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.multiclass-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.widget-1.0.0-arm.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-dali-1.0.0-arm.tpk" $EXECUTION_USER diff --git a/release/binary-armv7l/org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk deleted file mode 100755 index a595b6c..0000000 Binary files a/release/binary-armv7l/org.tizen.tbt_ui_viewmgr-1.0.0-arm.tpk and /dev/null differ diff --git a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk index 4dffae7..7a2e1fe 100755 Binary files a/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk and b/release/binary-armv7l/org.tizen.tbtcoreapp-1.0.0-arm.tpk differ diff --git a/release/binary-x86/install.sh b/release/binary-x86/install.sh index 62dc134..a14ba92 100755 --- a/release/binary-x86/install.sh +++ b/release/binary-x86/install.sh @@ -36,7 +36,6 @@ sdb push org.tizen.tbt-ime-1.0.0-x86.tpk /tmp sdb push org.tizen.tbtcoreapp-dali-1.0.0-x86.tpk /tmp sdb push org.tizen.tbtcoreapp-1.0.0-x86.tpk /tmp sdb push org.tizen.tbt_pushtestapp-1.0.0-x86.tpk /tmp -sdb push org.tizen.tbt_ui_viewmgr-1.0.0-x86.tpk /tmp sdb push org.example.widget-1.0.0-x86.tpk /tmp sdb push org.example.multiclass-1.0.0-x86.tpk /tmp sdb push org.tizen.coretbtwidgetapp-dali-1.0.0-x86.tpk /tmp @@ -55,7 +54,6 @@ sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-1.0.0-x86.tpk" $E sdb shell pkgcmd -i -t tpk -p /tmp/org.tizen.tbt-ime-1.0.0-x86.tpk sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbtcoreapp-dali-1.0.0-x86.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_pushtestapp-1.0.0-x86.tpk" $EXECUTION_USER -sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.tbt_ui_viewmgr-1.0.0-x86.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.widget-1.0.0-x86.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.example.multiclass-1.0.0-x86.tpk" $EXECUTION_USER sdb shell su -c "pkgcmd -i -t tpk -p /tmp/org.tizen.coretbtwidgetapp-dali-1.0.0-x86.tpk" $EXECUTION_USER diff --git a/release/binary-x86/org.tizen.tbt_ui_viewmgr-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbt_ui_viewmgr-1.0.0-x86.tpk deleted file mode 100755 index e5ad976..0000000 Binary files a/release/binary-x86/org.tizen.tbt_ui_viewmgr-1.0.0-x86.tpk and /dev/null differ diff --git a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk index b85caad..ea73879 100755 Binary files a/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk and b/release/binary-x86/org.tizen.tbtcoreapp-1.0.0-x86.tpk differ diff --git a/scripts_tpk/tpkbuild.sh b/scripts_tpk/tpkbuild.sh index 6e0f042..58f7414 100755 --- a/scripts_tpk/tpkbuild.sh +++ b/scripts_tpk/tpkbuild.sh @@ -131,7 +131,7 @@ elif [ "$ARCH_TYPE" == "aarch64" ]; then elif [ "$ARCH_TYPE" == "x86_64" ]; then ARCH="x86_64" fi -modulearray=(org.tizen.coretbt_dataprovider org.tizen.coretbt_uiapp org.tizen.operationpickviewapp org.tizen.coretbtwidgetapp org.tizen.tbtcoreapp org.tizen.tbt-ime org.tizen.tbtcoreapp-dali org.tizen.tbt_pushtestapp org.tizen.tbt_ui_viewmgr org.example.multiclass org.tizen.coretbtwidgetapp-dali org.tizen.tbtcoreapp-widget-new-dali) +modulearray=(org.tizen.coretbt_dataprovider org.tizen.coretbt_uiapp org.tizen.operationpickviewapp org.tizen.coretbtwidgetapp org.tizen.tbtcoreapp org.tizen.tbt-ime org.tizen.tbtcoreapp-dali org.tizen.tbt_pushtestapp org.example.multiclass org.tizen.coretbtwidgetapp-dali org.tizen.tbtcoreapp-widget-new-dali) echo $TC_TYPE echo $MOD_NAME sdb root on diff --git a/tbt_ui_viewmgr/.cproject b/tbt_ui_viewmgr/.cproject deleted file mode 100644 index b6224ce..0000000 --- a/tbt_ui_viewmgr/.cproject +++ /dev/null @@ -1,611 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tbt_ui_viewmgr/.exportMap b/tbt_ui_viewmgr/.exportMap deleted file mode 100644 index 43e310e..0000000 --- a/tbt_ui_viewmgr/.exportMap +++ /dev/null @@ -1,4 +0,0 @@ -{ - global: main; - local: *; -}; diff --git a/tbt_ui_viewmgr/.gitignore b/tbt_ui_viewmgr/.gitignore deleted file mode 100644 index ffab4a7..0000000 --- a/tbt_ui_viewmgr/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -/SA_Report -/Debug -/.sign diff --git a/tbt_ui_viewmgr/.package-stamp b/tbt_ui_viewmgr/.package-stamp deleted file mode 100644 index 40cbe59..0000000 --- a/tbt_ui_viewmgr/.package-stamp +++ /dev/null @@ -1 +0,0 @@ -TPK \ No newline at end of file diff --git a/tbt_ui_viewmgr/.project b/tbt_ui_viewmgr/.project deleted file mode 100644 index 0ea8f3a..0000000 --- a/tbt_ui_viewmgr/.project +++ /dev/null @@ -1,26 +0,0 @@ - - - tbt_ui_viewmgr - - - - - - org.eclipse.cdt.managedbuilder.core.genmakebuilder - - - - - org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder - full,incremental, - - - - - - org.eclipse.cdt.core.cnature - org.eclipse.cdt.core.ccnature - org.eclipse.cdt.managedbuilder.core.managedBuildNature - org.eclipse.cdt.managedbuilder.core.ScannerConfigNature - - diff --git a/tbt_ui_viewmgr/.rds_delta b/tbt_ui_viewmgr/.rds_delta deleted file mode 100644 index 8ec6125..0000000 --- a/tbt_ui_viewmgr/.rds_delta +++ /dev/null @@ -1,6 +0,0 @@ -#delete -#add -#modify -author-signature.xml -signature1.xml -bin/tbt_ui_viewmgr diff --git a/tbt_ui_viewmgr/.sdk_delta.info b/tbt_ui_viewmgr/.sdk_delta.info deleted file mode 100644 index 175c80c..0000000 Binary files a/tbt_ui_viewmgr/.sdk_delta.info and /dev/null differ diff --git a/tbt_ui_viewmgr/.tproject b/tbt_ui_viewmgr/.tproject deleted file mode 100644 index 658e81b..0000000 --- a/tbt_ui_viewmgr/.tproject +++ /dev/null @@ -1,12 +0,0 @@ - - - - - mobile-5.0 - - - - - - - diff --git a/tbt_ui_viewmgr/inc/logger.h b/tbt_ui_viewmgr/inc/logger.h deleted file mode 100644 index 772ceab..0000000 --- a/tbt_ui_viewmgr/inc/logger.h +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *******************************************************************************/ - -/** - * @file logger.h - * @brief This file provide necessary macro for logging information. - * @since_tizen 2.3 - * @author Amlan Chowdhury (amlan.c@samsung.com) - * @date October, 2014 - * @bug - * @credit - */ -#ifndef __LOGGER_H__ -#define __LOGGER_H__ - -#include - -#define LOG_TAG_CORE "[TBT_CORE]_" - -#define DLOG(prio, fmt, arg...) dlog_print(prio, LOG_TAG_CORE, "%s (Line: %d) > " fmt, __func__, __LINE__, ##arg) -#define DBG(fmt, arg...) DLOG(DLOG_DEBUG, fmt, ##arg) -#define ERR(fmt, arg...) DLOG(DLOG_ERROR, fmt, ##arg) - -#define RETM_IF(expr, fmt, arg...) \ -{ \ - if (expr) \ - { \ - ERR(fmt, ##arg); \ - return; \ - } \ -} - -#define RETVM_IF(expr, val, fmt, arg...) \ -{ \ - if (expr) \ - { \ - ERR(fmt, ##arg); \ - return (val); \ - } \ -} - -#define SAFE_DELETE(a) if( (a) != NULL ) free (a); (a) = NULL; - -#endif /* __LOGGER_H__ */ diff --git a/tbt_ui_viewmgr/inc/tbt_ui_viewmgr.h b/tbt_ui_viewmgr/inc/tbt_ui_viewmgr.h deleted file mode 100644 index 8dc143b..0000000 --- a/tbt_ui_viewmgr/inc/tbt_ui_viewmgr.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef __tbt_ui_viewmgr_H__ -#define __tbt_ui_viewmgr_H__ - -#include -#include -#include -#include "logger.h" - -#ifdef LOG_TAG -#undef LOG_TAG -#endif -#define LOG_TAG "tbt_ui_viewmgr" - -#if !defined(PACKAGE) -#define PACKAGE "org.tizen.tbt_ui_viewmgr" -#endif - -void create_view1(); - -#endif /* __tbt_ui_viewmgr_H__ */ diff --git a/tbt_ui_viewmgr/shared/res/tbt_ui_viewmgr.png b/tbt_ui_viewmgr/shared/res/tbt_ui_viewmgr.png deleted file mode 100644 index 9765b1b..0000000 Binary files a/tbt_ui_viewmgr/shared/res/tbt_ui_viewmgr.png and /dev/null differ diff --git a/tbt_ui_viewmgr/src/tbt_ui_viewmgr.c b/tbt_ui_viewmgr/src/tbt_ui_viewmgr.c deleted file mode 100644 index e22bf5e..0000000 --- a/tbt_ui_viewmgr/src/tbt_ui_viewmgr.c +++ /dev/null @@ -1,73 +0,0 @@ -#include "tbt_ui_viewmgr.h" - -static bool -app_create(void *user_data, void *event_info) -{ - /* Hook to take necessary actions before main event loop starts. - Initialize Application base resources. - If this function returns true, the main loop of application starts. */ - - create_view1(); - - return true; -} - -static bool -app_control(void *user_data, void *event_info) -{ - //app_control_h app_control = (app_control_h) event_info; - - /* Handle the launch request. */ - - return true; -} - -static bool -app_terminate(void *data, void *event_info) -{ - /* Release all application base resources. */ - - return true; -} - -int -main(int argc, char *argv[]) -{ - /* Application event callbacks. */ - ui_application_event_s events[]= { - {UI_APPLICATION_EVENT_CREATE, app_create}, - {UI_APPLICATION_EVENT_TERMINATE, app_terminate}, - {UI_APPLICATION_EVENT_CONTROL, app_control}, - }; - - int ret; - - //Initialize ui_app. - ret = ui_application_init(); - - if (ret != UI_VIEWMGR_ERROR_NONE) - { - dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_init() is failed, ret = %d", ret); - return ret; - } - - //Run ui_app. It runs application mainloop. - ret = ui_application_run(argc, argv, events, 2, NULL); - - if (ret != UI_VIEWMGR_ERROR_NONE) - { - dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_run() is failed, ret = %d", ret); - return ret; - } - - //Terminate ui_app. - ret = ui_application_term(); - - if (ret != UI_VIEWMGR_ERROR_NONE) - { - dlog_print(DLOG_ERROR, LOG_TAG, "ui_app_term() is failed ret = %d", ret); - return ret; - } - - return 0; -} diff --git a/tbt_ui_viewmgr/src/view1.c b/tbt_ui_viewmgr/src/view1.c deleted file mode 100644 index fb6ff4e..0000000 --- a/tbt_ui_viewmgr/src/view1.c +++ /dev/null @@ -1,348 +0,0 @@ -#include "tbt_ui_viewmgr.h" -static Eo *content = NULL; -static bool is_change_ctxpopup; -static char* get_viewmgr_error(ui_viewmgr_error_e err); -Evas_Object* label; -Elm_Layout *layout; - -static bool -view1_back(ui_view *view, void *user_data) -{ - /* Page back is requested. */ - - return true; -} - -static void -ctxpopup_item_select_cb(void *data, Eo *obj, void *event_info) -{ - ui_view* view = (ui_view*)data; - ui_menu *menu = ui_view_get_menu(view); - ui_view* menu_view = ui_menu_get_view(menu); - Elm_Object_Item *it = (Elm_Object_Item *) event_info; - DBG("Item (%s) is selected", elm_object_item_text_get(it)); - char str[256]; - snprintf(str,256,"%s",elm_object_item_text_get(it)); - elm_object_text_set(layout,str); - int ret = ui_menu_deactivate(menu); - RETM_IF(ret != UI_VIEWMGR_ERROR_NONE, "ui_menu_deactivate error %s", get_viewmgr_error(ret)); - elm_ctxpopup_dismiss(obj); - -} - -static Elm_Ctxpopup* create_ctx_popup(Eo *base, void* data) -{ - ui_view* view = (ui_view*)data; - Elm_Ctxpopup *ctxpopup = NULL; - ctxpopup = elm_ctxpopup_add(base); - if (!ctxpopup) - { - DBG("failed to create a ctxpopup."); - return false; - } - - if(!is_change_ctxpopup) - { - elm_ctxpopup_item_append(ctxpopup, "Phone calls", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Favorites", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Search", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Dialer", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Add contact", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Phone calls", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Favorites", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Search", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Dialer", NULL, ctxpopup_item_select_cb, view); - } - else - { - elm_ctxpopup_item_append(ctxpopup, "Chnaged Item 1", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Chnaged Item 2", NULL, ctxpopup_item_select_cb, view); - elm_ctxpopup_item_append(ctxpopup, "Chnaged Item 3", NULL, ctxpopup_item_select_cb, view); - } - - return ctxpopup; -} - -static bool -view1_menu(ui_view *view, void *user_data) -{ - /* Page menu is requested. */ - //ui_menu *menu = ui_view_get_menu(view); - int ret; - Eo *base = NULL; - Elm_Ctxpopup *ctxpopup = NULL; - ui_menu *menu = ui_view_get_menu(view); - - -//Get a base object from menu. - base = ui_menu_get_base(menu); - if (!base) { - DBG("failed to get a menu base object"); - return false; - } - - ctxpopup = create_ctx_popup(base, view); - - Elm_Ctxpopup* exist_ctxpopup = ui_menu_get_content(menu); - if(exist_ctxpopup) - { - Elm_Ctxpopup *ctx = ui_menu_unset_content(menu); - RETVM_IF(NULL==ctx, false, "ui_menu_unset_content return NULL") - } - - ret = ui_menu_set_content(menu, ctxpopup); - if (ret != UI_VIEWMGR_ERROR_NONE) - { - DBG("ui_menu_set_content() is failed. err = %d", ret); - return false; - } - - return true; - -} - -static bool -view1_rotate(ui_view *view, void *user_data) -{ - /* Page is rotated. */ - ui_menu *menu = ui_view_get_menu(view); - int rotation; - - if (ui_view_get_orientation_mode(view) == UI_VIEW_ORIENTATION_MODE_PORTRAIT) - { - /* Portrait mode. */ - rotation = ui_menu_get_degree(menu); - } - else - { - /* Landscape mode. */ - rotation = ui_menu_get_degree(menu); - } - - DBG("rotation %d", rotation); - char str[256]; - snprintf(str, 256, "Rotation: %d",rotation); - elm_object_text_set(label, str); - return true; -} - -static bool -view1_destroy(ui_view *view, void *user_data) -{ - /* This page is destroyed. Free page resources here. */ - - return true; -} - -static bool -view1_unload(ui_view *view, void *user_data) -{ - /* Hook to take necessary actions when page is unloaded. */ - - return true; -} - -static void -prev_btn_clicked_cb(void *data, Eo *obj, void *event_info) -{ - int ret; - DBG("prev_btn_clicked_cb"); - ui_view* view = (ui_view*) data; - ui_menu *menu = ui_view_get_menu(view); - if(!ui_menu_get_activated(menu)) - { - ret = ui_menu_activate(menu); - RETM_IF(ret != UI_VIEWMGR_ERROR_NONE, "ui_menu_activate err %s", get_viewmgr_error(ret)); - } -} - -static void -next_btn_clicked_cb(void *data, Eo *obj, void *event_info) -{ - DBG("next_btn_clicked_cb"); - - is_change_ctxpopup ^= 1; -} - -Eo* -create_content(ui_view* view, const char *text, Evas_Smart_Cb prev_btn_clicked_cb, Evas_Smart_Cb next_btn_clicked_cb) -{ - Elm_Grid *grid; - Elm_Box *box; - Elm_Scroller *scroller; - Elm_Button *btn; - - Eo *parent = NULL; - //Get a base object from view. - parent = ui_view_get_base(view); - - /* Scroller */ - scroller = elm_scroller_add(parent); - elm_scroller_bounce_set(scroller, EINA_FALSE, EINA_TRUE); - elm_scroller_policy_set(scroller, ELM_SCROLLER_POLICY_OFF, ELM_SCROLLER_POLICY_AUTO); - - /* Grid */ - grid = elm_grid_add(scroller); - evas_object_size_hint_weight_set(grid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(grid, EVAS_HINT_FILL, EVAS_HINT_FILL); - evas_object_show(grid); - - /* NoContent Layout */ - layout = elm_layout_add(grid); - elm_layout_theme_set(layout, "layout", "nocontents", "default"); - elm_object_part_text_set(layout, "elm.text", text); - evas_object_show(layout); - elm_grid_pack(grid, layout, 0, 0, 100, 100); - - label = elm_label_add(grid); - evas_object_size_hint_weight_set(label, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(label, EVAS_HINT_FILL, 1.0); - elm_object_text_set(label, "Rotation"); - evas_object_show(label); - elm_grid_pack(grid, label, 0, 0, 100, 100); - - - /* Box */ - box = elm_box_add(grid); - elm_box_horizontal_set(box, EINA_TRUE); - evas_object_size_hint_weight_set(box, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(box, EVAS_HINT_FILL, EVAS_HINT_FILL); - elm_box_padding_set(box, ELM_SCALE_SIZE(50), 0); - evas_object_show(box); - elm_grid_pack(grid, box, 0, 0, 100, 100); - - /* Previous Page Button */ - btn = elm_button_add(grid); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, 1.0); - elm_object_text_set(btn, "Show Menu"); - evas_object_smart_callback_add(btn, "clicked", prev_btn_clicked_cb, view); - evas_object_show(btn); - elm_box_pack_end(box, btn); - - /* Next Page Button */ - btn = elm_button_add(grid); - evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); - evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, 1.0); - elm_object_text_set(btn, "Toggle Menu"); - evas_object_smart_callback_add(btn, "clicked", next_btn_clicked_cb, view); - evas_object_show(btn); - elm_box_pack_end(box, btn); - - - - elm_object_content_set(scroller, grid); - - return scroller; -} - -static bool -view1_load(ui_view *view, void *user_data) -{ - /* Hook to take necessary actions when page is loaded. - Create page contents here. */ - int ret; - - - content = create_content(view, "ViewMgr Test", prev_btn_clicked_cb, next_btn_clicked_cb); - - //Set Main Content - ret = ui_view_set_content(view, content); - if (ret != UI_VIEWMGR_ERROR_NONE) - { - DBG("ui_view_set_content() is failed. err = %d", ret); - ui_view_destroy(view); - return false; - } - - return true; -} - -void -create_view1() -{ - int ret = 0; - ui_view *view = NULL; - int i; - - ui_view_event_type_e events[6] = { - UI_VIEW_EVENT_LOAD, - UI_VIEW_EVENT_UNLOAD, - UI_VIEW_EVENT_DESTROY, - UI_VIEW_EVENT_ROTATE, - UI_VIEW_EVENT_MENU, - UI_VIEW_EVENT_BACK - }; - - ui_view_event_cb event_cbs[6] = { - view1_load, - view1_unload, - view1_destroy, - view1_rotate, - view1_menu, - view1_back - }; - - is_change_ctxpopup = false; - //Create a view. - view = ui_view_create("view1"); - if (!view) - { - DBG("failed to create a view"); - return; - } - - //Set view event callbacks. - for (i = 0; i < 6; i++) - { - ret = ui_view_set_event_cb(view, events[i], event_cbs[i], NULL); - if (ret != UI_VIEWMGR_ERROR_NONE) - { - DBG("ui_view_set_event_cb() idx = %d is failed. err = %d", i, ret); - ui_view_destroy(view); - return; - } - } - - //Push a view. - ret = ui_viewmgr_push_view(view); - - if (ret != UI_VIEWMGR_ERROR_NONE) - { - DBG("ui_viewmgr_push_view() is failed. err = %d", ret); - ui_view_destroy(view); - } -} - -static char* get_viewmgr_error(ui_viewmgr_error_e err) -{ - char* err_msg = NULL; - switch(err) - { - case UI_VIEWMGR_ERROR_NONE: - err_msg = "UI_VIEWMGR_ERROR_NONE"; - break; - case UI_VIEWMGR_ERROR_NOT_PERMITTED: - err_msg = "UI_VIEWMGR_ERROR_NOT_PERMITTED"; - break; - case UI_VIEWMGR_ERROR_OUT_OF_MEMORY: - err_msg = "UI_VIEWMGR_ERROR_OUT_OF_MEMORY"; - break; - case UI_VIEWMGR_ERROR_INVALID_PARAMETER: - err_msg = "UI_VIEWMGR_ERROR_INVALID_PARAMETER"; - break; - case UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE: - err_msg = "UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE"; - break; - case UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS: - err_msg = "UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS"; - break; - case UI_VIEWMGR_ERROR_UNKNOWN: - err_msg = "UI_VIEWMGR_ERROR_UNKNOWN"; - break; - default: - err_msg = "UNKNOWN"; - break; - } - return err_msg; -} diff --git a/tbt_ui_viewmgr/tizen-manifest.xml b/tbt_ui_viewmgr/tizen-manifest.xml deleted file mode 100644 index 49ab7d9..0000000 --- a/tbt_ui_viewmgr/tizen-manifest.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - tbt_ui_viewmgr.png - - true - diff --git a/tbtcoreapp/inc/model/tbt-info.h b/tbtcoreapp/inc/model/tbt-info.h index e8de125..17fb754 100755 --- a/tbtcoreapp/inc/model/tbt-info.h +++ b/tbtcoreapp/inc/model/tbt-info.h @@ -250,7 +250,6 @@ typedef enum { TBT_APP_IOTCON_BASIC_SERVER, TBT_APP_IOTCON_BASIC_CLIENT, - TBT_APP_UI_VIEWMGR_MENU, TBT_APP_DALI_ACTOR, //DALi APP include here diff --git a/tbtcoreapp/inc/utils/app_module_config.h b/tbtcoreapp/inc/utils/app_module_config.h index 9cb8c33..64ae619 100755 --- a/tbtcoreapp/inc/utils/app_module_config.h +++ b/tbtcoreapp/inc/utils/app_module_config.h @@ -248,8 +248,6 @@ #define TBT_MODULE_APP_IOTCON_BASIC_SERVER #define TBT_MODULE_APP_IOTCON_BASIC_CLIENT -#define TBT_MODULE_UI_VIEWMGR -#define TBT_MODULE_APP_UI_VIEWMGR_MENU #define TBT_MODULE_DALI #define TBT_MODULE_APP_DALI_APP diff --git a/tbtcoreapp/inc/utils/config.h b/tbtcoreapp/inc/utils/config.h index 24e6f2a..187f1d2 100644 --- a/tbtcoreapp/inc/utils/config.h +++ b/tbtcoreapp/inc/utils/config.h @@ -86,7 +86,6 @@ extern bool __is_efl_test_running; #define PICK_VIEW_APP_PACKAGE_NAME "org.tizen.coretbt_uiapp" #define PICK_VIEW_SERVICEAPP_PACKAGE_NAME "org.tizen.coretbt_serviceapp" -#define UI_VIEWMGR_APP_PACKAGE_NAME "org.tizen.tbt_ui_viewmgr" #define PICK_VIEW_URL_HTTP "http://www.tizen.org" diff --git a/tbtcoreapp/inc/view/tbt-ui-viewmgr-view.h b/tbtcoreapp/inc/view/tbt-ui-viewmgr-view.h deleted file mode 100644 index 8d786e6..0000000 --- a/tbtcoreapp/inc/view/tbt-ui-viewmgr-view.h +++ /dev/null @@ -1,57 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - *******************************************************************************/ -/** - * @file tbt-ui_viewmgr-view.h - * @brief covers location retrieval - * starts location service using ui_viewmgr method and continuously updates the current location - * @since_tizen 2.3 - * @author golam kayes(g.kayes@samsung.com) and salman rahman(salman.ran) - * @date October, 2014 - * @bug location manager does not start in device - * @credit - * - */ - -#ifndef __TBT_UI_VIEWMGR_VIEW_H__ -#define __TBT_UI_VIEWMGR_VIEW_H__ - -#include "utils/app_module_config.h" -#ifdef TBT_MODULE_UI_VIEWMGR - -#include -#include "model/tbt-list.h" - - -/** - * @typedef ui_viewmgr_viewer_view - * @since_tizen 2.3 - * @brief A ui_viewmgr viewer view handle. - */ -typedef struct _ui_viewmgr_view ui_viewmgr_view; - -/** - * @brief Create ui_viewmgr camera view - * @since_tizen 2.3 - * @param[in] navi Parent naviframe - * @param[in] custom structute to hold tbt application information - * @param[in] item of the main tbt menu - * @return Pointer of ui_viewmgr on success, otherwise NULL - */ -ui_viewmgr_view *ui_viewmgr_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item); - -#endif -#endif // __TBT_UI_VIEWMGR_VIEW_H__ diff --git a/tbtcoreapp/project_def.prop b/tbtcoreapp/project_def.prop index b160a81..34a5708 100644 --- a/tbtcoreapp/project_def.prop +++ b/tbtcoreapp/project_def.prop @@ -9,7 +9,7 @@ type = app profile = mobile-5.0 # C/CPP Sources -USER_SRCS = src/view/tbt-mock-view.c src/utils/gl-types.c src/view/tbt-mtp-view.c src/view/tbt-sound-view.c src/view/tbt-bluetoothle-view.c src/view/tbt-wifidirect-info-view.c src/view/tbt-dali-view.c src/view/tbt-sound-manager-view.c src/view/tbt-touch-view.c src/view/tbt-cbhm-view.c src/view/tbt-systemsettings-view.c src/view/tbt-voice-control-view.c src/view/tbt-gps-view.c src/view/tbt-stt-view.c src/view/tbt-event-view.c src/utils/gl-utils.c src/view/tbt-radio-view.c src/view/tbt-datacontrol-view.c src/view/tbt-display-view.c src/main.c src/view/tbt-nsd-dns-sd-view.c src/view/tbt-wifi-view.c src/window.c src/view/tbt-connection-view.c src/view/tbt-shortcut-view.c src/view/tbt-input-view.c src/view/tbt-usb-host-view.c src/view/tbt-camera-view.c src/view/tbt-bluetoothoob-view.c src/utils/xml-util.c src/view/tbt-oauth2-view.c src/view/tbt-package-manager-view.c src/view/tbt-multiclass-view.c src/model/tbt-list.c src/view/tbt-oauth2-info-view.c src/view/tbt-graphics-view.c src/view/tbt-wifidirect-view.c src/view/tbt-efl-callbacks.c src/view/tbt-animation-view.c src/view/tbt-screenmirrorsink-view.c src/view/tbt-ui-view.c src/view/tbt-nfc-view.c src/view/tbt-attachpanel-view.c src/view/tbt-widget-view.c src/view/tbt-image-view.c src/view/tbt-bluetooth-callback-view.c src/view/tbt-autofill-view.c src/view/tbt-nsd-ssdp-view.c src/view/tbt-dali-custom-view.c src/view/tbt-motion-detection-view.c src/view/tbt-ui-viewmgr-view.c src/view/tbt-ime-view.c src/view/tbt-iotcon-view.c src/view/tbt-contacts-view.c src/utils/util_state_object.c src/view/tbt-runtimeinfo-view.c src/utils/ui-utils.c src/view/tbt-tts-view.c src/view/tbt-bluetooth-view.c src/view/tbt-feature-view.c src/view/tbt-sensor-view.c src/view/tbt-list-view.c src/view/tbt-local-view.c src/view/tbt-storage-view.c src/view/tbt-push-view.c src/view/tbt-nfc-hce-preferred-view.c src/view/tbt-common-view.c src/view/tbt-notification-view.c src/main-app.c src/view/tbt-genlist-view.c src/view/tbt-pick-view.c src/view/tbt-media-key-view.c +USER_SRCS = src/view/tbt-mock-view.c src/utils/gl-types.c src/view/tbt-mtp-view.c src/view/tbt-sound-view.c src/view/tbt-bluetoothle-view.c src/view/tbt-wifidirect-info-view.c src/view/tbt-dali-view.c src/view/tbt-sound-manager-view.c src/view/tbt-touch-view.c src/view/tbt-cbhm-view.c src/view/tbt-systemsettings-view.c src/view/tbt-voice-control-view.c src/view/tbt-gps-view.c src/view/tbt-stt-view.c src/view/tbt-event-view.c src/utils/gl-utils.c src/view/tbt-radio-view.c src/view/tbt-datacontrol-view.c src/view/tbt-display-view.c src/main.c src/view/tbt-nsd-dns-sd-view.c src/view/tbt-wifi-view.c src/window.c src/view/tbt-connection-view.c src/view/tbt-shortcut-view.c src/view/tbt-input-view.c src/view/tbt-usb-host-view.c src/view/tbt-camera-view.c src/view/tbt-bluetoothoob-view.c src/utils/xml-util.c src/view/tbt-oauth2-view.c src/view/tbt-package-manager-view.c src/view/tbt-multiclass-view.c src/model/tbt-list.c src/view/tbt-oauth2-info-view.c src/view/tbt-graphics-view.c src/view/tbt-wifidirect-view.c src/view/tbt-efl-callbacks.c src/view/tbt-animation-view.c src/view/tbt-screenmirrorsink-view.c src/view/tbt-ui-view.c src/view/tbt-nfc-view.c src/view/tbt-attachpanel-view.c src/view/tbt-widget-view.c src/view/tbt-image-view.c src/view/tbt-bluetooth-callback-view.c src/view/tbt-autofill-view.c src/view/tbt-nsd-ssdp-view.c src/view/tbt-dali-custom-view.c src/view/tbt-motion-detection-view.c src/view/tbt-ime-view.c src/view/tbt-iotcon-view.c src/view/tbt-contacts-view.c src/utils/util_state_object.c src/view/tbt-runtimeinfo-view.c src/utils/ui-utils.c src/view/tbt-tts-view.c src/view/tbt-bluetooth-view.c src/view/tbt-feature-view.c src/view/tbt-sensor-view.c src/view/tbt-list-view.c src/view/tbt-local-view.c src/view/tbt-storage-view.c src/view/tbt-push-view.c src/view/tbt-nfc-hce-preferred-view.c src/view/tbt-common-view.c src/view/tbt-notification-view.c src/main-app.c src/view/tbt-genlist-view.c src/view/tbt-pick-view.c src/view/tbt-media-key-view.c # EDC Sources USER_EDCS = diff --git a/tbtcoreapp/src/model/tbt-list.c b/tbtcoreapp/src/model/tbt-list.c index 2fec5f1..7be61b8 100755 --- a/tbtcoreapp/src/model/tbt-list.c +++ b/tbtcoreapp/src/model/tbt-list.c @@ -2468,27 +2468,6 @@ static tbt_info tbtapps[] = #endif #endif -#ifdef TBT_MODULE_UI_VIEWMGR - #ifdef TBT_MODULE_APP_UI_VIEWMGR_MENU - //ui viewmgr Menu - { - .name = "Menu", - .parent = "UI Viewmgr", - .apptype = TBT_APP_UI_VIEWMGR_MENU, - .icon_name = "dummy", - .info = "1. Press Run Launch UI Viewmgr button, UI viewmgr app will be opened.
" - "2. After ui viewmgr app opened press H/W Menu button, then a popup Menu will be shown.
" - "3. Select each list item and corresponding text will be shown in ui viewmgr app.
" - "4. Press Toggle Menu button then press H/W menu button, menu will changed.
" - "5. Press Show Menu button then Menu will be shown.
" - "4. Press back button to exit from ui viewmgr app.
" - "5. Press H/W menu button to launch menu again, then rotate device, rotation angle will be shown in label at top.
" - "5. If everything works as above then Pass, Otherwise Fail. ", - .result = 0, - .required_features_count = 0, - }, - #endif -#endif #ifdef TBT_MODULE_DALI #ifdef TBT_MODULE_APP_DALI_ACTOR diff --git a/tbtcoreapp/src/view/tbt-genlist-view.c b/tbtcoreapp/src/view/tbt-genlist-view.c index f9fc742..b7fd6fa 100755 --- a/tbtcoreapp/src/view/tbt-genlist-view.c +++ b/tbtcoreapp/src/view/tbt-genlist-view.c @@ -97,7 +97,6 @@ #include "view/tbt-stt-view.h" #include "view/tbt-voice-control-view.h" #include "view/tbt-iotcon-view.h" -#include "view/tbt-ui-viewmgr-view.h" #include "view/tbt-dali-view.h" #include "view/tbt-multiclass-view.h" #include "view/tbt-usb-host-view.h" @@ -1162,13 +1161,6 @@ static void _gl_item_selected_cb(void *data, Evas_Object *obj EINA_UNUSED, void break; #endif #endif - #ifdef TBT_MODULE_UI_VIEWMGR - #ifdef TBT_MODULE_APP_UI_VIEWMGR_MENU - case TBT_APP_UI_VIEWMGR_MENU: - ui_viewmgr_view_add(view->navi, info, it); - break; - #endif - #endif #ifdef TBT_MODULE_DALI case TBT_APP_DALI_ACTOR: dali_view_add(view->navi, info, it, "TBT_APP_DALI_ACTOR"); diff --git a/tbtcoreapp/src/view/tbt-local-view.c b/tbtcoreapp/src/view/tbt-local-view.c index 8873bc3..d5f30c9 100644 --- a/tbtcoreapp/src/view/tbt-local-view.c +++ b/tbtcoreapp/src/view/tbt-local-view.c @@ -39,7 +39,7 @@ #include "view/tbt-common-view.h" #ifdef DEVICE_TYPE_MOBILE - #include +// #include #endif struct _local_view diff --git a/tbtcoreapp/src/view/tbt-ui-viewmgr-view.c b/tbtcoreapp/src/view/tbt-ui-viewmgr-view.c deleted file mode 100644 index c0d31fe..0000000 --- a/tbtcoreapp/src/view/tbt-ui-viewmgr-view.c +++ /dev/null @@ -1,210 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2014 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the License); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - *******************************************************************************/ -/** - * @file tbt-ui_viewmgr-view.c - * @brief covers locationn retrieval - * starts location service using ui_viewmgr method and continuously updates the current location - * - * @author golam kayes(g.kayes@samsung.com) and salman rahman(salman.ran) - * @date October, 2014 - * @bug location manager does not start in device - * @credit - * - */ - -#include "utils/app_module_config.h" -#ifdef TBT_MODULE_UI_VIEWMGR - -#include -#include - -#include "utils/logger.h" -#include "utils/config.h" -#include "utils/ui-utils.h" -#include "view/tbt-ui-viewmgr-view.h" -#include "view/tbt-common-view.h" - -struct _ui_viewmgr_view -{ - common_view* view; - location_manager_h manager; - app_control_h service; - - Evas_Object *label; - Evas_Object *btn_launch; -}; - -static void _view_button_pressed_cb(void *data, Evas_Object *obj, void *event_info); -static void _app_destroy_cb(void* this); -static char* get_app_control_error(int ret); -static void app_control_view_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data); - - -/** - * @function ui_viewmgr_view_add - * @since_tizen 2.3 - * @description Gps View Add - * @parameter Evas_Object*: Evas Object Pointer, tbt_info*: Tbt Info Pointer, Elm_Object_Item*: Elm Object Item Pointer - * @return ui_viewmgr_view* - */ -ui_viewmgr_view *ui_viewmgr_view_add(Evas_Object *navi, tbt_info *tbt_info, Elm_Object_Item *item) -{ - RETVM_IF(NULL == navi, NULL, "navi is null"); - - ui_viewmgr_view *this = NULL; - this = calloc(1, sizeof(ui_viewmgr_view)); - RETVM_IF(!this, NULL, "calloc failed"); - this->view = calloc(1, sizeof(common_view)); - RETVM_IF(!this->view, NULL, "calloc failed"); - - tbt_info->layout_group = "ui_viewmgr_viewer"; - tbt_info->layout_file = get_edje_path("ui_viewmgr_viewer.edj"); - - common_view_add(navi, tbt_info, item, this->view, _app_destroy_cb, this); - - RETVM_IF(NULL == this->view, NULL, "navi is null"); - - this->label = ui_utils_label_add(this->view->layout, "Press Launch UI viewmgr button"); - elm_object_part_content_set(this->view->layout, "label", this->label); - - - this->btn_launch = ui_utils_push_button_add(this, this->view->layout, "Launch UI Viewmgr", _view_button_pressed_cb); - elm_object_part_content_set(this->view->layout, "btn_launch", this->btn_launch); - - return this; -} - -static void _view_button_pressed_cb(void *data, Evas_Object *obj, void *event_info) -{ - RETM_IF(NULL == data, "data is NULL"); - - ui_viewmgr_view *view = NULL; - view = (ui_viewmgr_view*)data; - RETM_IF(NULL == view, "view is NULL"); - - char *appid = UI_VIEWMGR_APP_PACKAGE_NAME; - int ret = app_control_create(&view->service); - RETM_IF(APP_CONTROL_ERROR_NONE != ret, "app_control_create failed :%s", get_app_control_error(ret)); - RETM_IF(NULL == view->service, "Service NULL! "); - ret = app_control_set_app_id(view->service, appid); - RETM_IF(APP_CONTROL_ERROR_NONE != ret, "app_control_set_app_id failed :%s", get_app_control_error(ret)); - ret = app_control_send_launch_request(view->service , app_control_view_reply_cb, view); - RETM_IF(APP_CONTROL_ERROR_NONE != ret, "app_control_send_launch_request failed :%s", get_app_control_error(ret)); - ui_utils_label_set_text(view->label, "App launch requested.", "left"); -} - -static void app_control_view_reply_cb(app_control_h request, app_control_h reply, app_control_result_e result, void *data) -{ - RETM_IF(NULL == data, "data is NULL"); - - ui_viewmgr_view *view = NULL; - view = (ui_viewmgr_view*)data; - RETM_IF(NULL == view, "view is NULL"); - - if(result == APP_CONTROL_RESULT_SUCCEEDED) - { - int result; - char *app_id; - - if(reply != NULL) - { - result = app_control_get_app_id(reply, &app_id); - RETM_IF(APP_CONTROL_ERROR_NONE != result, "app_control_create failed :%s", get_app_control_error(result)); - DBG("app_id is %s", app_id); - - ui_utils_label_set_text(view->label, "App launched successfully.", "left"); - } - } -} - - -/* - * @function _app_destroy_cb - * @since_tizen 2.3 - * @description App Destroy Cb - * @parameter void*: Void Pointer - * @return static void - */ -static void _app_destroy_cb(void* this) -{ - RETM_IF(NULL == this, "data is NULL"); - - ui_viewmgr_view *view = NULL; - view = (ui_viewmgr_view*)this; - RETM_IF(NULL == view, "view is NULL"); - - app_control_destroy(view->service); - - SAFE_DELETE(view->view); - SAFE_DELETE(view); -} - -static char* get_app_control_error(int ret) -{ - char* error = NULL; - - switch (ret) { - case APP_CONTROL_ERROR_NONE: - error = "APP_CONTROL_ERROR_NONE"; - break; - case APP_CONTROL_ERROR_INVALID_PARAMETER: - error = "APP_CONTROL_ERROR_INVALID_PARAMETER"; - break; - case APP_CONTROL_ERROR_OUT_OF_MEMORY: - error = "APP_CONTROL_ERROR_OUT_OF_MEMORY"; - break; - case APP_CONTROL_ERROR_APP_NOT_FOUND: - error = "APP_CONTROL_ERROR_APP_NOT_FOUND"; - break; - case APP_CONTROL_ERROR_KEY_NOT_FOUND: - error = "APP_CONTROL_ERROR_KEY_NOT_FOUND"; - break; - case APP_CONTROL_ERROR_KEY_REJECTED: - error = "APP_CONTROL_ERROR_KEY_REJECTED"; - break; - case APP_CONTROL_ERROR_INVALID_DATA_TYPE: - error = "APP_CONTROL_ERROR_INVALID_DATA_TYPE"; - break; - case APP_CONTROL_ERROR_LAUNCH_REJECTED: - error = "APP_CONTROL_ERROR_LAUNCH_REJECTED"; - break; - case APP_CONTROL_ERROR_PERMISSION_DENIED: - error = "APP_CONTROL_ERROR_PERMISSION_DENIED"; - break; - case APP_CONTROL_ERROR_LAUNCH_FAILED: - error = "APP_CONTROL_ERROR_LAUNCH_FAILED"; - break; - case APP_CONTROL_ERROR_TIMED_OUT: - error = "APP_CONTROL_ERROR_TIMED_OUT"; - break; -#ifdef TIZEN_3_0 - case APP_CONTROL_ERROR_IO_ERROR: - error = "APP_CONTROL_ERROR_IO_ERROR"; - break; -#endif -#ifdef TIZEN_2_4 - case APP_CONTROL_ERROR_IO_ERROR: - error = "APP_CONTROL_ERROR_IO_ERROR"; - break; -#endif - default: - error = "Unknown Error"; - break; - } - return error; -} - -#endif