Initialize Tizen 2.3
[apps/home/b2-clocksetting.git] / include / setting-notification.h
1 /*
2  * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16 */
17
18 #ifndef SETTING_NOTIFICATION_H_
19 #define SETTING_NOTIFICATION_H_
20
21 #include <Elementary.h>
22 #include <libintl.h>
23 #include <string.h>
24
25 #include "setting_data_vconf.h"
26 #include "util.h"
27
28 #define NOTIFICATION_ITEM_COUNT                 1
29
30 #define VCONF_WMS_NOTIFICATION_KEY      "db/wms/noti_onoff_support"
31
32 struct _noti_menu_item
33 {
34         char *name;
35         int state;
36         void (*func)(void *data, Evas_Object *obj, void *event_info);
37 };
38
39 typedef struct Noti_Item_Data
40 {
41         int index;
42         Elm_Object_Item *item;
43 } Noti_Item_Data;
44
45
46 typedef struct _noti_data
47 {
48         int is_enable_noti;
49
50         appdata * temp_ad;
51
52         Evas_Object * g_noti_genlist;
53
54 } Noti_Data;
55
56
57 void _initialize_noti();
58 Eina_Bool _clear_noti_cb(void *data, Elm_Object_Item *it);
59
60 char * _gl_noti_title_get(void *data, Evas_Object *obj, const char *part);
61 Evas_Object * _gl_noti_check_get(void *data, Evas_Object *obj, const char *part);
62 Evas_Object* _create_noti_list(void* data);
63
64 void noti_enabling_vconf_changed_cb(keynode_t *key, void * data);
65 void _noti_gl_enabling_noti_cb(void *data, Evas_Object *obj, void *event_info);
66
67 #endif /* SETTING_NOTIFICATION_H_ */