*/
int aul_window_info_is_focused(aul_window_info_h info, bool *focused);
+typedef enum _aul_window_notification_level_e {
+ AUL_WINDOW_NOTIFICATION_LEVEL_NONE = 0,
+ AUL_WINDOW_NOTIFICATION_LEVEL_DEFAULT = 10,
+ AUL_WINDOW_NOTIFICATION_LEVEL_MEDIUM = 20,
+ AUL_WINDOW_NOTIFICATION_LEVEL_HIGH = 30,
+ AUL_WINDOW_NOTIFICATION_LEVEL_TOP = 40,
+ AUL_WINDOW_NOTIFICATION_LEVEL_PRIVILEGE = 99,
+} aul_window_notification_level_e;
+
+/**
+ * @par Description:
+ * This API gets the window notification level from the window handle.
+ *
+ * @param[in] info Handle for the window
+ * @param[out] level Notification level
+ * @return 0 if success, negative value(<0) if fail
+ *
+*/
+int aul_window_info_get_notification_level(aul_window_info_h info,
+ aul_window_notification_level_e *level);
+
/**
* @par Description:
* This API gets the location and the size from window handle.
int pid;
int ppid;
int apid;
+ int noti_level;
} window_info;
API int aul_window_stack_get(aul_window_stack_h *handle)
goto out;
}
- g_variant_get(body, "(a(uiiiibibiii))", &iter);
- while (g_variant_iter_loop(iter, "(uiiiibibiii)",
+ g_variant_get(body, "(a(uiiiibibiiii))", &iter);
+ while (g_variant_iter_loop(iter, "(uiiiibibiiii)",
&wi->gid,
&wi->x,
&wi->y,
&wi->focused,
&wi->pid,
&wi->ppid,
- &wi->apid)) {
+ &wi->apid,
+ &wi->noti_level)) {
list = g_list_append(list, wi);
wi = malloc(sizeof(window_info));
}
return 0;
}
+API int aul_window_info_get_notification_level(aul_window_info_h info,
+ aul_window_notification_level_e *level)
+{
+ window_info *wi = info;
+
+ if (!info || !level)
+ return -1;
+
+ *level = (aul_window_notification_level_e)wi->noti_level;
+
+ return 0;
+}
+
API int aul_window_get_focused_pid(pid_t *pid)
{
GError *err = NULL;