E_Notification_Daemon.h
Go to the documentation of this file.
1 #ifndef E_NOTIFICATION_DAEMON_H
2 #define E_NOTIFICATION_DAEMON_H
3 
4 #define E_NOTIFICATION_DAEMON_VERSION "0.9"
5 #define E_NOTIFICATION_DAEMON_SUPPORTS_SPEC_VERSION "1.2"
6 #include <E_Notify.h>
7 
8 #ifdef EAPI
9 #undef EAPI
10 #endif
11 #ifdef _MSC_VER
12 # ifdef BUILDING_DLL
13 # define EAPI __declspec(dllexport)
14 # else
15 # define EAPI __declspec(dllimport)
16 # endif
17 #else
18 # ifdef __GNUC__
19 # if __GNUC__ >= 4
20 # define EAPI __attribute__ ((visibility("default")))
21 # else
22 # define EAPI
23 # endif
24 # else
25 # define EAPI
26 # endif
27 #endif
28 
29 
31 
32 /* daemon callbacks */
34 typedef void (*E_Notification_Daemon_Callback_Close_Notification) (E_Notification_Daemon *daemon, unsigned int notification_id);
35 
36 /* gui */
38 
40 {
44 
45  char *name;
46  char *vendor;
47 
48  struct
49  {
52  } func;
53  void *data;
54 
55  int state;
56 };
57 
58 #ifdef __cplusplus
59 extern "C" {
60 #endif
61 
64 
65 /* daemon */
66  EAPI E_Notification_Daemon *e_notification_daemon_add(const char *name, const char *vendor);
68 /* TODO
69  void e_notification_daemon_close(E_Notification_Daemon *d,
70  E_Notification *n, unsigned int reason);
71  void e_notification_daemon_action_invoke(E_Notification_Daemon *d,
72  E_Notification *n, const char *action_id);
73 */
74 
77 
80 
82  EAPI void e_notification_daemon_signal_action_invoked(E_Notification_Daemon *daemon, unsigned int notification_id, const char *action_id);
83 
84 /***** gui *****/
85 /* TODO
86  E_Notification_View *e_notification_view_add(E_Notification_Daemon *d, E_Notification *n);
87  void e_notification_view_close(E_Notification_View *nv);
88  Evas_Object * e_notification_view_icon_get(Evas *evas, E_Notification *n);
89 */
90 
91 #ifdef __cplusplus
92 }
93 #endif
94 
95 #endif