2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 #include <Elementary.h>
19 #include <efl_assist.h>
21 #include <dpl/wrt-dao-rw/widget_dao.h>
22 #include <dpl/foreach.h>
23 #include <dpl/assert.h>
24 #include <dpl/utils/wrt_global_settings.h>
25 #include <dpl/localization/w3c_file_localization.h>
27 #include <ui-gadget-module.h>
29 #include "detailview.h"
30 #include "advancedview.h"
33 namespace WebAppDetailSetting {
35 const int MAX_PATH_LENGTH = 255;
36 const int ERROR_READ_LINK = -1;
37 // need to move widget_config.h
38 const char* const WRT_LAUNCHER = "wrt-launcher";
39 const char* const WRT_LAUNCHER_WK_MODE_CHANGE_OPTION = "-w";
42 void DetailView::getLocalizedInfo(void)
44 m_localizedInfo = W3CFileLocalization::getLocalizedInfo(m_appID);
47 Evas_Object *DetailView::loadView(void)
53 win = static_cast<Evas_Object *>(ug_get_window());
55 ea_object_event_callback_add(m_naviframe,
59 m_dao.Reset(new WrtDB::WidgetDAO(m_appID));
62 bindtextdomain("ug-webapp-common-efl", "/usr/ug/res/locale");
65 new AdvancedView(m_naviframe,
67 m_advancedView->loadView();
69 } catch (const std::bad_alloc &) {
74 void DetailView::onBackBtnClicked(void *data,
80 This= static_cast<DetailView *>(data);
82 ug_destroy_me(This->m_ug);
85 DetailView::DetailView(Evas_Object* navi, ui_gadget_h ug, DPL::String appID) :
96 DetailView::~DetailView(void)