summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_systray_eo.legacy.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_systray_eo.legacy.h')
-rw-r--r--src/lib/elementary/elm_systray_eo.legacy.h229
1 files changed, 229 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_systray_eo.legacy.h b/src/lib/elementary/elm_systray_eo.legacy.h
new file mode 100644
index 0000000..485ced5
--- /dev/null
+++ b/src/lib/elementary/elm_systray_eo.legacy.h
@@ -0,0 +1,229 @@
1#ifndef _ELM_SYSTRAY_EO_LEGACY_H_
2#define _ELM_SYSTRAY_EO_LEGACY_H_
3
4#ifndef _ELM_SYSTRAY_EO_CLASS_TYPE
5#define _ELM_SYSTRAY_EO_CLASS_TYPE
6
7typedef Eo Elm_Systray;
8
9#endif
10
11#ifndef _ELM_SYSTRAY_EO_TYPES
12#define _ELM_SYSTRAY_EO_TYPES
13
14/** Category of the Status Notifier Item.
15 *
16 * @since 1.8
17 *
18 * @ingroup Elm_Systray
19 */
20typedef enum
21{
22 ELM_SYSTRAY_CATEGORY_APP_STATUS = 0, /**< Indicators of application status */
23 ELM_SYSTRAY_CATEGORY_COMMUNICATIONS, /**< Communications apps */
24 ELM_SYSTRAY_CATEGORY_SYS_SERVICES, /**< System Service apps */
25 ELM_SYSTRAY_CATEGORY_HARDWARE, /**< Hardware indicators */
26 ELM_SYSTRAY_CATEGORY_OTHER /**< Undefined category */
27} Elm_Systray_Category;
28
29/** Application status information.
30 *
31 * @since 1.8
32 *
33 * @ingroup Elm_Systray
34 */
35typedef enum
36{
37 ELM_SYSTRAY_STATUS_PASSIVE = 0, /**< Passive (normal) */
38 ELM_SYSTRAY_STATUS_ACTIVE, /**< Active */
39 ELM_SYSTRAY_STATUS_ATTENTION /**< Needs Attention */
40} Elm_Systray_Status;
41
42
43#endif
44
45/**
46 * @brief Set the id of the Status Notifier Item.
47 *
48 * @param[in] obj The object.
49 * @param[in] id Status notifier item ID
50 *
51 * @ingroup Elm_Systray_Group
52 */
53EAPI void elm_systray_id_set(Elm_Systray *obj, const char *id);
54
55/**
56 * @brief Get the id of the Status Notifier Item.
57 *
58 * @param[in] obj The object.
59 *
60 * @return Status notifier item ID
61 *
62 * @ingroup Elm_Systray_Group
63 */
64EAPI const char *elm_systray_id_get(const Elm_Systray *obj);
65
66/**
67 * @brief Set the category of the Status Notifier Item.
68 *
69 * @param[in] obj The object.
70 * @param[in] cat Category
71 *
72 * @ingroup Elm_Systray_Group
73 */
74EAPI void elm_systray_category_set(Elm_Systray *obj, Elm_Systray_Category cat);
75
76/**
77 * @brief Get the category of the Status Notifier Item.
78 *
79 * @param[in] obj The object.
80 *
81 * @return Category
82 *
83 * @ingroup Elm_Systray_Group
84 */
85EAPI Elm_Systray_Category elm_systray_category_get(const Elm_Systray *obj);
86
87/**
88 * @brief Set the path to the theme where the icons can be found. Set this
89 * value to "" to use the default path.
90 *
91 * @param[in] obj The object.
92 * @param[in] icon_theme_path Icon theme path
93 *
94 * @ingroup Elm_Systray_Group
95 */
96EAPI void elm_systray_icon_theme_path_set(Elm_Systray *obj, const char *icon_theme_path);
97
98/**
99 * @brief Get the path to the icon's theme currently in use.
100 *
101 * @param[in] obj The object.
102 *
103 * @return Icon theme path
104 *
105 * @ingroup Elm_Systray_Group
106 */
107EAPI const char *elm_systray_icon_theme_path_get(const Elm_Systray *obj);
108
109/**
110 * @brief Set the object path of the D-Bus Menu that is to be show when the
111 * Status Notifier Item is activated by the user.
112 *
113 * @param[in] obj The object.
114 * @param[in] menu Object path for DBus menu
115 *
116 * @ingroup Elm_Systray_Group
117 */
118EAPI void elm_systray_menu_set(Elm_Systray *obj, const Efl_Object *menu);
119
120/**
121 * @brief Get the object path of the D-Bus Menu currently in use.
122 *
123 * @param[in] obj The object.
124 *
125 * @return Object path for DBus menu
126 *
127 * @ingroup Elm_Systray_Group
128 */
129EAPI const Efl_Object *elm_systray_menu_get(const Elm_Systray *obj);
130
131/**
132 * @brief Set the name of the attention icon to be used by the Status Notifier
133 * Item.
134 *
135 * @param[in] obj The object.
136 * @param[in] att_icon_name Attention icon name
137 *
138 * @ingroup Elm_Systray_Group
139 */
140EAPI void elm_systray_att_icon_name_set(Elm_Systray *obj, const char *att_icon_name);
141
142/**
143 * @brief Get the name of the attention icon used by the Status Notifier Item.
144 *
145 * @param[in] obj The object.
146 *
147 * @return Attention icon name
148 *
149 * @ingroup Elm_Systray_Group
150 */
151EAPI const char *elm_systray_att_icon_name_get(const Elm_Systray *obj);
152
153/**
154 * @brief Set the status of the Status Notifier Item.
155 *
156 * @param[in] obj The object.
157 * @param[in] st Status
158 *
159 * @ingroup Elm_Systray_Group
160 */
161EAPI void elm_systray_status_set(Elm_Systray *obj, Elm_Systray_Status st);
162
163/**
164 * @brief Get the status of the Status Notifier Item.
165 *
166 * @param[in] obj The object.
167 *
168 * @return Status
169 *
170 * @ingroup Elm_Systray_Group
171 */
172EAPI Elm_Systray_Status elm_systray_status_get(const Elm_Systray *obj);
173
174/**
175 * @brief Set the name of the icon to be used by the Status Notifier Item.
176 *
177 * @param[in] obj The object.
178 * @param[in] icon_name Status icon name
179 *
180 * @ingroup Elm_Systray_Group
181 */
182EAPI void elm_systray_icon_name_set(Elm_Systray *obj, const char *icon_name);
183
184/**
185 * @brief Get the name of the icon used by the Status Notifier Item.
186 *
187 * @param[in] obj The object.
188 *
189 * @return Status icon name
190 *
191 * @ingroup Elm_Systray_Group
192 */
193EAPI const char *elm_systray_icon_name_get(const Elm_Systray *obj);
194
195/**
196 * @brief Set the title of the Status Notifier Item.
197 *
198 * @param[in] obj The object.
199 * @param[in] title Title
200 *
201 * @ingroup Elm_Systray_Group
202 */
203EAPI void elm_systray_title_set(Elm_Systray *obj, const char *title);
204
205/**
206 * @brief Get the title of the Status Notifier Item.
207 *
208 * @param[in] obj The object.
209 *
210 * @return Title
211 *
212 * @ingroup Elm_Systray_Group
213 */
214EAPI const char *elm_systray_title_get(const Elm_Systray *obj);
215
216/**
217 * @brief Register this Status Notifier Item in the System Tray Watcher. This
218 * function should only be called after the event #ELM_EVENT_SYSTRAY_READY is
219 * emitted.
220 *
221 * @param[in] obj The object.
222 *
223 * @return @c true on success, @c false otherwise
224 *
225 * @ingroup Elm_Systray_Group
226 */
227EAPI Eina_Bool elm_systray_register(Elm_Systray *obj);
228
229#endif