1 /* libnotify.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Notify", lower_case_cprefix = "notify_")]
5 [CCode (cheader_filename = "libnotify/notify.h")]
6 public class Notification : GLib.Object {
7 [CCode (has_construct_function = false)]
8 public Notification (string summary, string? body, string? icon);
9 public void add_action (string action, string label, owned Notify.ActionCallback callback);
10 public void clear_actions ();
11 public void clear_hints ();
12 public bool close () throws GLib.Error;
13 public int get_closed_reason ();
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 image);
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 body { owned get; set construct; }
30 public int closed_reason { get; }
32 public string icon_name { owned get; set construct; }
34 public int id { get; set construct; }
36 public string summary { owned get; set construct; }
37 public virtual signal void closed ();
39 [CCode (cprefix = "NOTIFY_URGENCY_", cheader_filename = "libnotify/notify.h")]
45 [CCode (cheader_filename = "libnotify/notify.h")]
46 public delegate void ActionCallback (Notify.Notification notification, string action);
47 [CCode (cheader_filename = "libnotify/notify.h")]
48 public const int EXPIRES_DEFAULT;
49 [CCode (cheader_filename = "libnotify/notify.h")]
50 public const int EXPIRES_NEVER;
51 [CCode (cheader_filename = "libnotify/notify.h")]
52 public const int VERSION_MAJOR;
53 [CCode (cheader_filename = "libnotify/notify.h")]
54 public const int VERSION_MICRO;
55 [CCode (cheader_filename = "libnotify/notify.h")]
56 public const int VERSION_MINOR;
57 [CCode (cheader_filename = "libnotify/notify.h")]
58 public static unowned string get_app_name ();
59 [CCode (cheader_filename = "libnotify/notify.h")]
60 public static unowned GLib.List get_server_caps ();
61 [CCode (cheader_filename = "libnotify/notify.h")]
62 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);
63 [CCode (cheader_filename = "libnotify/notify.h")]
64 public static bool init (string app_name);
65 [CCode (cheader_filename = "libnotify/notify.h")]
66 public static bool is_initted ();
67 [CCode (cheader_filename = "libnotify/notify.h")]
68 public static void uninit ();