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
E_Notification_Closed_Reason
Definition: E_Notify.h:43
char * name
Definition: E_Notification_Daemon.h:45
E_DBus_Connection * conn
Definition: E_Notification_Daemon.h:41
Definition: e_dbus_private.h:18
EAPI void e_notification_daemon_signal_notification_closed(E_Notification_Daemon *ndaemon, unsigned int id, E_Notification_Closed_Reason reason)
Definition: daemon.c:229
E_Notification_Daemon_Callback_Close_Notification close_notification
Definition: E_Notification_Daemon.h:51
Definition: E_Notification_Daemon.h:39
void(* E_Notification_Daemon_Callback_Close_Notification)(E_Notification_Daemon *daemon, unsigned int notification_id)
Definition: E_Notification_Daemon.h:34
Definition: e_dbus_object.c:48
Definition: e_notify_private.h:72
char * vendor
Definition: E_Notification_Daemon.h:46
EAPI void e_notification_daemon_callback_close_notification_set(E_Notification_Daemon *ndaemon, E_Notification_Daemon_Callback_Close_Notification func)
Definition: daemon.c:156
EAPI void e_notification_daemon_callback_notify_set(E_Notification_Daemon *ndaemon, E_Notification_Daemon_Callback_Notify func)
Definition: daemon.c:150
EAPI int e_notification_daemon_shutdown(void)
Definition: daemon.c:84
EAPI void e_notification_daemon_data_set(E_Notification_Daemon *ndaemon, void *data)
Definition: daemon.c:138
void * data
Definition: E_Notification_Daemon.h:53
Definition: e_dbus_object.c:62
EAPI void e_notification_daemon_signal_action_invoked(E_Notification_Daemon *ndaemon, unsigned int notification_id, const char *action_id)
Definition: daemon.c:239
E_DBus_Object * obj
Definition: E_Notification_Daemon.h:43
struct E_Notification_View E_Notification_View
Definition: E_Notification_Daemon.h:37
EAPI void * e_notification_daemon_data_get(E_Notification_Daemon *ndaemon)
Definition: daemon.c:144
EAPI E_Notification_Daemon * e_notification_daemon_add(const char *name, const char *vendor)
Definition: daemon.c:92
int(* E_Notification_Daemon_Callback_Notify)(E_Notification_Daemon *daemon, E_Notification *notification)
Definition: E_Notification_Daemon.h:33
#define EAPI
Definition: E_Notification_Daemon.h:25
E_DBus_Interface * iface
Definition: E_Notification_Daemon.h:42
EAPI void e_notification_daemon_free(E_Notification_Daemon *ndaemon)
Definition: daemon.c:122
int state
Definition: E_Notification_Daemon.h:55
EAPI int e_notification_daemon_init(void)
Definition: daemon.c:73
struct E_Notification_Daemon::@9 func
E_Notification_Daemon_Callback_Notify notify
Definition: E_Notification_Daemon.h:50