6 #include <E_Notification_Daemon.h>
9 #define MOD_CFG_FILE_EPOCH 0x0002
10 #define MOD_CFG_FILE_GENERATION 0x0006
11 #define MOD_CFG_FILE_VERSION \
12 ((MOD_CFG_FILE_EPOCH << 16) | MOD_CFG_FILE_GENERATION)
15 #define MAX(x, y) (((x) > (y)) ? (x) : (y))
18 typedef enum _Popup_Corner Popup_Corner;
19 typedef struct _Config Config;
20 typedef struct _Config_Item Config_Item;
21 typedef struct _Instance Instance;
22 typedef struct _Popup_Data Popup_Data;
23 typedef struct _Notification_Box Notification_Box;
24 typedef struct _Notification_Box_Icon Notification_Box_Icon;
43 int ignore_replacement;
50 Eina_Bool presentation;
56 Eina_List *config_dialog;
63 Ecore_Timer *initial_mode_timer;
64 E_Notification_Daemon *daemon;
81 Notification_Box *n_box;
86 struct _Notification_Box
95 struct _Notification_Box_Icon
97 Notification_Box *n_box;
100 Evas_Object *o_holder;
102 Evas_Object *o_holder2;
103 Evas_Object *o_icon2;
105 E_Notification *notif;
108 Ecore_Timer *mouse_in_timer;
113 E_Notification *notif;
117 const char *app_name;
118 Evas_Object *app_icon;
124 int notification_popup_notify(E_Notification *n, unsigned int replaces_id, const char *appname);
125 void notification_popup_shutdown(void);
126 void notification_popup_close(unsigned int id);
128 void notification_box_notify(E_Notification *n, unsigned int replaces_id, unsigned int id);
129 void notification_box_shutdown(void);
130 void notification_box_del(const char *id);
131 void notification_box_visible_set(Notification_Box *b, Eina_Bool visible);
132 Notification_Box *notification_box_get(const char *id, Evas *evas);
133 Config_Item *notification_box_config_item_get(const char *id);
134 void notification_box_orient_set(Notification_Box *b, int horizontal);
135 void notification_box_cb_obj_moveresize(void *data, Evas *e, Evas_Object *obj, void *event_info);
136 Eina_Bool notification_box_cb_border_remove(void *data, int type, E_Event_Border_Remove *ev);
138 EAPI extern E_Module_Api e_modapi;
139 EAPI void *e_modapi_init(E_Module *m);
140 EAPI int e_modapi_shutdown(E_Module *m);
141 EAPI int e_modapi_save(E_Module *m);
143 void _gc_orient (E_Gadcon_Client *gcc, E_Gadcon_Orient orient);
145 void config_notification_box_module(Config_Item *ci);
147 E_Config_Dialog *e_int_config_notification_module(E_Container *con,
148 const char *params __UNUSED__);
150 extern E_Module *notification_mod;
151 extern Config *notification_cfg;
152 extern const E_Gadcon_Client_Class _gc_class;