2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Notifications by libnotify support improved.

This commit is contained in:
John Preston
2016-10-04 16:36:50 +03:00
parent a9929a5d51
commit c8aa7672e9
6 changed files with 165 additions and 111 deletions

View File

@@ -48,28 +48,28 @@ bool loadLibrary(QLibrary &lib, const char *name, int version) {
f_notify_init notify_init = nullptr;
f_notify_uninit notify_uninit = nullptr;
f_notify_is_initted notify_is_initted = nullptr;
f_notify_get_app_name notify_get_app_name = nullptr;
f_notify_set_app_name notify_set_app_name = nullptr;
//f_notify_get_app_name notify_get_app_name = nullptr;
//f_notify_set_app_name notify_set_app_name = nullptr;
f_notify_get_server_caps notify_get_server_caps = nullptr;
f_notify_get_server_info notify_get_server_info = nullptr;
f_notify_notification_new notify_notification_new = nullptr;
f_notify_notification_update notify_notification_update = nullptr;
//f_notify_notification_update notify_notification_update = nullptr;
f_notify_notification_show notify_notification_show = nullptr;
f_notify_notification_set_app_name notify_notification_set_app_name = nullptr;
//f_notify_notification_set_app_name notify_notification_set_app_name = nullptr;
f_notify_notification_set_timeout notify_notification_set_timeout = nullptr;
f_notify_notification_set_category notify_notification_set_category = nullptr;
f_notify_notification_set_urgency notify_notification_set_urgency = nullptr;
f_notify_notification_set_icon_from_pixbuf notify_notification_set_icon_from_pixbuf = nullptr;
//f_notify_notification_set_category notify_notification_set_category = nullptr;
//f_notify_notification_set_urgency notify_notification_set_urgency = nullptr;
//f_notify_notification_set_icon_from_pixbuf notify_notification_set_icon_from_pixbuf = nullptr;
f_notify_notification_set_image_from_pixbuf notify_notification_set_image_from_pixbuf = nullptr;
f_notify_notification_set_hint notify_notification_set_hint = nullptr;
f_notify_notification_set_hint_int32 notify_notification_set_hint_int32 = nullptr;
f_notify_notification_set_hint_uint32 notify_notification_set_hint_uint32 = nullptr;
f_notify_notification_set_hint_double notify_notification_set_hint_double = nullptr;
//f_notify_notification_set_hint notify_notification_set_hint = nullptr;
//f_notify_notification_set_hint_int32 notify_notification_set_hint_int32 = nullptr;
//f_notify_notification_set_hint_uint32 notify_notification_set_hint_uint32 = nullptr;
//f_notify_notification_set_hint_double notify_notification_set_hint_double = nullptr;
f_notify_notification_set_hint_string notify_notification_set_hint_string = nullptr;
f_notify_notification_set_hint_byte notify_notification_set_hint_byte = nullptr;
f_notify_notification_set_hint_byte_array notify_notification_set_hint_byte_array = nullptr;
f_notify_notification_clear_hints notify_notification_clear_hints = nullptr;
//f_notify_notification_set_hint_byte notify_notification_set_hint_byte = nullptr;
//f_notify_notification_set_hint_byte_array notify_notification_set_hint_byte_array = nullptr;
//f_notify_notification_clear_hints notify_notification_clear_hints = nullptr;
f_notify_notification_add_action notify_notification_add_action = nullptr;
f_notify_notification_clear_actions notify_notification_clear_actions = nullptr;
f_notify_notification_close notify_notification_close = nullptr;
@@ -90,28 +90,28 @@ void startLibNotify() {
load(lib_notify, "notify_init", notify_init);
load(lib_notify, "notify_uninit", notify_uninit);
load(lib_notify, "notify_is_initted", notify_is_initted);
load(lib_notify, "notify_get_app_name", notify_get_app_name);
load(lib_notify, "notify_set_app_name", notify_set_app_name);
// load(lib_notify, "notify_get_app_name", notify_get_app_name);
// load(lib_notify, "notify_set_app_name", notify_set_app_name);
load(lib_notify, "notify_get_server_caps", notify_get_server_caps);
load(lib_notify, "notify_get_server_info", notify_get_server_info);
load(lib_notify, "notify_notification_new", notify_notification_new);
load(lib_notify, "notify_notification_update", notify_notification_update);
// load(lib_notify, "notify_notification_update", notify_notification_update);
load(lib_notify, "notify_notification_show", notify_notification_show);
load(lib_notify, "notify_notification_set_app_name", notify_notification_set_app_name);
// load(lib_notify, "notify_notification_set_app_name", notify_notification_set_app_name);
load(lib_notify, "notify_notification_set_timeout", notify_notification_set_timeout);
load(lib_notify, "notify_notification_set_category", notify_notification_set_category);
load(lib_notify, "notify_notification_set_urgency", notify_notification_set_urgency);
load(lib_notify, "notify_notification_set_icon_from_pixbuf", notify_notification_set_icon_from_pixbuf);
// load(lib_notify, "notify_notification_set_category", notify_notification_set_category);
// load(lib_notify, "notify_notification_set_urgency", notify_notification_set_urgency);
// load(lib_notify, "notify_notification_set_icon_from_pixbuf", notify_notification_set_icon_from_pixbuf);
load(lib_notify, "notify_notification_set_image_from_pixbuf", notify_notification_set_image_from_pixbuf);
load(lib_notify, "notify_notification_set_hint", notify_notification_set_hint);
load(lib_notify, "notify_notification_set_hint_int32", notify_notification_set_hint_int32);
load(lib_notify, "notify_notification_set_hint_uint32", notify_notification_set_hint_uint32);
load(lib_notify, "notify_notification_set_hint_double", notify_notification_set_hint_double);
// load(lib_notify, "notify_notification_set_hint", notify_notification_set_hint);
// load(lib_notify, "notify_notification_set_hint_int32", notify_notification_set_hint_int32);
// load(lib_notify, "notify_notification_set_hint_uint32", notify_notification_set_hint_uint32);
// load(lib_notify, "notify_notification_set_hint_double", notify_notification_set_hint_double);
load(lib_notify, "notify_notification_set_hint_string", notify_notification_set_hint_string);
load(lib_notify, "notify_notification_set_hint_byte", notify_notification_set_hint_byte);
load(lib_notify, "notify_notification_set_hint_byte_array", notify_notification_set_hint_byte_array);
load(lib_notify, "notify_notification_clear_hints", notify_notification_clear_hints);
// load(lib_notify, "notify_notification_set_hint_byte", notify_notification_set_hint_byte);
// load(lib_notify, "notify_notification_set_hint_byte_array", notify_notification_set_hint_byte_array);
// load(lib_notify, "notify_notification_clear_hints", notify_notification_clear_hints);
load(lib_notify, "notify_notification_add_action", notify_notification_add_action);
load(lib_notify, "notify_notification_clear_actions", notify_notification_clear_actions);
load(lib_notify, "notify_notification_close", notify_notification_close);