2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (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.
19 #include <dpl/assert.h>
23 namespace WebAppCommonSetting {
25 void delCb(void *data,
32 v = static_cast<View *>(data);
38 void View::resetBase(Evas_Object *base)
41 evas_object_event_callback_del_full(m_base, EVAS_CALLBACK_DEL, delCb, this);
46 evas_object_event_callback_add(base, EVAS_CALLBACK_DEL, delCb, this);
49 void View::setUnloadCb(ViewUnloadCb cb, void *data)
52 m_viewUnloadCbData = data;
55 void View::unsetUnloadCb(void)
57 m_viewUnloadCb = NULL;
58 m_viewUnloadCbData = NULL;
61 void View::invokeUnloadCb(void)
64 m_viewUnloadCb(m_viewUnloadCbData);
72 evas_object_event_callback_del_full(m_base, EVAS_CALLBACK_DEL, delCb, this);
73 evas_object_del(m_base);
77 } /* WebAppCommonSetting */