summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_sys_notify_interface_eo.legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_sys_notify_interface_eo.legacy.h')
-rw-r--r--src/lib/elementary/elm_sys_notify_interface_eo.legacy.h84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_sys_notify_interface_eo.legacy.h b/src/lib/elementary/elm_sys_notify_interface_eo.legacy.h
new file mode 100644
index 0000000..89903c5
--- /dev/null
+++ b/src/lib/elementary/elm_sys_notify_interface_eo.legacy.h
@@ -0,0 +1,84 @@
1#ifndef _ELM_SYS_NOTIFY_INTERFACE_EO_LEGACY_H_
2#define _ELM_SYS_NOTIFY_INTERFACE_EO_LEGACY_H_
3
4#ifndef _ELM_SYS_NOTIFY_INTERFACE_EO_CLASS_TYPE
5#define _ELM_SYS_NOTIFY_INTERFACE_EO_CLASS_TYPE
6
7typedef Eo Elm_Sys_Notify_Interface;
8
9#endif
10
11#ifndef _ELM_SYS_NOTIFY_INTERFACE_EO_TYPES
12#define _ELM_SYS_NOTIFY_INTERFACE_EO_TYPES
13
14/** Urgency levels of a notification
15 *
16 * @since 1.8
17 *
18 * @ingroup Elm_Sys_Notify
19 */
20typedef enum
21{
22 ELM_SYS_NOTIFY_URGENCY_LOW = 0, /**< Low urgency */
23 ELM_SYS_NOTIFY_URGENCY_NORMAL, /**< Normal urgency */
24 ELM_SYS_NOTIFY_URGENCY_CRITICAL /**< Critical urgency */
25} Elm_Sys_Notify_Urgency;
26
27
28#endif
29
30/**
31 * @brief Causes a notification to be forcefully closed and removed from the
32 * user's view. It can be used, for example, in the event that what the
33 * notification pertains to is no longer relevant, or to cancel a notification
34 * with no expiration time.
35 *
36 * @param[in] obj The object.
37 * @param[in] replaces_id Notification ID that this notification replaces. The
38 * value 0 means a new notification.
39 * @param[in] icon The optional program icon of the calling application
40 * @param[in] summary The summary text briefly describing the notification
41 * @param[in] body The optional detailed body text. Can be empty
42 * @param[in] urgency The urgency level
43 * @param[in] timeout Timeout display in milliseconds
44 * @param[in] cb Callback used to retrieve the notification id returned by the
45 * Notification Server
46 * @param[in] cb_data Optional context data
47 *
48 * @since 1.8
49 *
50 * @ingroup Elm_Sys_Notify_Interface_Group
51 */
52EAPI void elm_sys_notify_interface_send(const Elm_Sys_Notify_Interface *obj, unsigned int replaces_id, const char *icon, const char *summary, const char *body, Elm_Sys_Notify_Urgency urgency, int timeout, Elm_Sys_Notify_Send_Cb cb, const void *cb_data);
53
54/**
55 * @brief Create a new notification just with Icon, Body and Summary. It is a
56 * helper that wraps the send method
57 *
58 * @param[in] obj The object.
59 * @param[in] icon The optional program icon of the calling application
60 * @param[in] summary The summary text briefly describing the notification
61 * @param[in] body The optional detailed body text. Can be empty
62 *
63 * @since 1.16
64 *
65 * @ingroup Elm_Sys_Notify_Interface_Group
66 */
67EAPI void elm_sys_notify_interface_simple_send(const Elm_Sys_Notify_Interface *obj, const char *icon, const char *summary, const char *body);
68
69/**
70 * @brief Causes a notification to be forcefully closed and removed from the
71 * user's view. It can be used, for example, in the event that what the
72 * notification pertains to is no longer relevant, or to cancel a notification
73 * with no expiration time.
74 *
75 * @param[in] obj The object.
76 * @param[in] id Notification ID
77 *
78 * @since 1.8
79 *
80 * @ingroup Elm_Sys_Notify_Interface_Group
81 */
82EAPI void elm_sys_notify_interface_close(const Elm_Sys_Notify_Interface *obj, unsigned int id);
83
84#endif