3 * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 * Licensed under the Flora License, Version 1.1 (the License);
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://floralicense.org/license/
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an AS IS BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 *@defgroup setting-common-view
19 *each UG is able to have multiple views.
21 #ifndef __SETTING_COMMON_VIEW_H__
22 #define __SETTING_COMMON_VIEW_H__
24 typedef struct _setting_view {
25 int (*create) (void *cb);
26 int (*destroy) (void *cb);
27 int (*update) (void *cb);
28 int (*cleanup) (void *cb);
30 int is_create; /* 1:exist */
34 int setting_view_node_set_cur_view(setting_view *view);
35 setting_view *setting_view_node_get_cur_view();
36 int setting_view_node_table_intialize();
37 int setting_view_node_table_register(setting_view *view,
38 setting_view *topview);
39 int setting_view_cb_at_endKey(void *cb);
40 setting_view *setting_view_get_topview(setting_view *view);
41 extern void setting_view_update_topview(setting_view *view, setting_view *topview);
42 extern int setting_view_create(setting_view *view, void *cb);
43 extern int setting_view_update(setting_view *view, void *cb);
44 extern int setting_view_destroy(setting_view *view, void *cb);
45 extern int setting_view_cleanup(setting_view *view, void *cb);
46 extern int setting_view_change(setting_view *from_view, setting_view *to_view,
49 #endif /* __SETTING_COMMON_VIEW_H__ */