tizen 2.3.1 release
[apps/home/b2-clocksetting.git] / include / setting-notification.h
1 /*
2  * setting-notification.h
3  *
4  *  Created on: Feb 14, 2014
5  *      Author: min-hoyun
6  */
7
8 #ifndef SETTING_NOTIFICATION_H_
9 #define SETTING_NOTIFICATION_H_
10
11 #include <Elementary.h>
12 #include <libintl.h>
13 #include <string.h>
14
15 #include "setting_data_vconf.h"
16 #include "util.h"
17
18 #define NOTIFICATION_ITEM_COUNT                 1
19
20 #define VCONF_WMS_NOTIFICATION_KEY      "db/wms/noti_onoff_support"
21
22 struct _noti_menu_item {
23         char *name;
24         int state;
25         void (*func)(void *data, Evas_Object *obj, void *event_info);
26 };
27
28 typedef struct Noti_Item_Data {
29         int index;
30         Elm_Object_Item *item;
31 } Noti_Item_Data;
32
33
34 typedef struct _noti_data {
35         int is_enable_noti;
36
37         appdata *temp_ad;
38
39         Evas_Object *g_noti_genlist;
40
41 } Noti_Data;
42
43
44 void _initialize_noti();
45 Eina_Bool _clear_noti_cb(void *data, Elm_Object_Item *it);
46
47 char *_gl_noti_title_get(void *data, Evas_Object *obj, const char *part);
48 Evas_Object *_gl_noti_check_get(void *data, Evas_Object *obj, const char *part);
49 Evas_Object *_create_noti_list(void *data);
50
51 void noti_enabling_vconf_changed_cb(keynode_t *key, void *data);
52 void _noti_gl_enabling_noti_cb(void *data, Evas_Object *obj, void *event_info);
53
54 #endif /* SETTING_NOTIFICATION_H_ */