4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
6 * Contact: MyoungJune Park <mj2004.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
22 *@defgroup setting-common-view
23 *each UG is able to have multiple views.
25 #ifndef __SETTING_COMMON_VIEW_H__
26 #define __SETTING_COMMON_VIEW_H__
28 typedef struct _setting_view {
29 int (*create) (void *cb);
30 int (*destroy) (void *cb);
31 int (*update) (void *cb);
32 int (*cleanup) (void *cb);
34 int is_create; /* 1:exist */
38 int setting_view_node_set_cur_view(setting_view *view);
39 setting_view *setting_view_node_get_cur_view();
40 int setting_view_node_table_intialize();
41 int setting_view_node_table_register(setting_view *view,
42 setting_view *topview);
43 int setting_view_cb_at_endKey(void *cb);
44 setting_view *setting_view_get_topview(setting_view *view);
45 extern void setting_view_update_topview(setting_view *view, setting_view *topview);
46 extern int setting_view_create(setting_view *view, void *cb);
47 extern int setting_view_update(setting_view *view, void *cb);
48 extern int setting_view_destroy(setting_view *view, void *cb);
49 extern int setting_view_cleanup(setting_view *view, void *cb);
50 extern int setting_view_change(setting_view *from_view, setting_view *to_view,
53 #endif /* __SETTING_COMMON_VIEW_H__ */