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://www.tizenopensource.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 *@defgroup setting-common-view
20 *each UG is able to have multiple views.
22 #ifndef __SETTING_COMMON_VIEW_H__
23 #define __SETTING_COMMON_VIEW_H__
25 typedef struct _setting_view {
26 int (*create) (void *cb);
27 int (*destroy) (void *cb);
28 int (*update) (void *cb);
29 int (*cleanup) (void *cb);
31 int is_create; /* 1:exist */
35 int setting_view_node_set_cur_view(setting_view *view);
36 setting_view *setting_view_node_get_cur_view();
37 int setting_view_node_table_intialize();
38 int setting_view_node_table_register(setting_view *view,
39 setting_view *topview);
40 int setting_view_cb_at_endKey(void *cb);
41 setting_view *setting_view_get_topview(setting_view *view);
43 extern int setting_view_create(setting_view *view, void *cb);
44 extern int setting_view_update(setting_view *view, void *cb);
45 extern int setting_view_destroy(setting_view *view, void *cb);
46 extern int setting_view_cleanup(setting_view *view, void *cb);
47 extern int setting_view_change(setting_view *from_view, setting_view *to_view,
50 #endif /* __SETTING_COMMON_VIEW_H__ */