1
/* libnotify.vapi generated by vapigen, do not modify. */
4
[CCode (cheader_filename = "libnotify/notify.h")]
5
public class Notification : GLib.Object {
6
[CCode (has_construct_function = false)]
7
public Notification (string summary, string? body, string? icon);
8
public void add_action (string action, string label, owned Notify.ActionCallback callback);
9
public void clear_actions ();
10
public void clear_hints ();
11
public bool close () throws GLib.Error;
12
public int get_closed_reason ();
13
public void set_app_name (string app_name);
14
public void set_category (string category);
15
public void set_hint (string key, GLib.Variant value);
16
public void set_hint_byte (string key, uchar value);
17
public void set_hint_byte_array (string key, uchar[] value, size_t len);
18
public void set_hint_double (string key, double value);
19
public void set_hint_int32 (string key, int value);
20
public void set_hint_string (string key, string value);
21
public void set_hint_uint32 (string key, uint value);
22
public void set_icon_from_pixbuf (Gdk.Pixbuf icon);
23
public void set_image_from_pixbuf (Gdk.Pixbuf pixbuf);
24
public void set_timeout (int timeout);
25
public void set_urgency (Notify.Urgency urgency);
26
public bool show () throws GLib.Error;
27
public bool update (string summary, string body, string icon);
29
public string app_name { owned get; set; }
31
public string body { owned get; set construct; }
32
public int closed_reason { get; }
34
public string icon_name { owned get; set construct; }
36
public int id { get; set construct; }
38
public string summary { owned get; set construct; }
39
public virtual signal void closed ();
41
[CCode (cheader_filename = "libnotify/notify.h", cprefix = "NOTIFY_URGENCY_")]
47
[CCode (cheader_filename = "libnotify/notify.h")]
48
public delegate void ActionCallback (Notify.Notification notification, string action);
49
[CCode (cheader_filename = "libnotify/notify.h")]
50
public const int EXPIRES_DEFAULT;
51
[CCode (cheader_filename = "libnotify/notify.h")]
52
public const int EXPIRES_NEVER;
53
[CCode (cheader_filename = "libnotify/notify.h")]
54
public const int VERSION_MAJOR;
55
[CCode (cheader_filename = "libnotify/notify.h")]
56
public const int VERSION_MICRO;
57
[CCode (cheader_filename = "libnotify/notify.h")]
58
public const int VERSION_MINOR;
59
[CCode (cheader_filename = "libnotify/notify.h")]
60
public static unowned string get_app_name ();
61
[CCode (cheader_filename = "libnotify/notify.h")]
62
public static GLib.List<string> get_server_caps ();
63
[CCode (cheader_filename = "libnotify/notify.h")]
64
public static bool get_server_info (out unowned string ret_name, out unowned string ret_vendor, out unowned string ret_version, out unowned string ret_spec_version);
65
[CCode (cheader_filename = "libnotify/notify.h")]
66
public static bool init (string app_name);
67
[CCode (cheader_filename = "libnotify/notify.h")]
68
public static bool is_initted ();
69
[CCode (cheader_filename = "libnotify/notify.h")]
70
public static void set_app_name (string app_name);
71
[CCode (cheader_filename = "libnotify/notify.h")]
72
public static void uninit ();