gio-2.0: "address" parameter of Socket.receive_message() is optional
[vala-gnome.git] / vapi / libnotify.vapi
blobba2eb7ae43b82ed2b798d999e9e63b7653222123
1 /* libnotify.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Notify", gir_namespace = "Notify", gir_version = "0.7", lower_case_cprefix = "notify_")]
4 namespace Notify {
5         [CCode (cheader_filename = "libnotify/notify.h", type_id = "notify_notification_get_type ()")]
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                 [Version (since = "0.7.3")]
15                 public void set_app_name (string app_name);
16                 public void set_category (string category);
17                 [Version (since = "0.6")]
18                 public void set_hint (string key, GLib.Variant? value);
19                 [Version (deprecated = true, deprecated_since = "0.6.")]
20                 public void set_hint_byte (string key, [CCode (type = "guchar")] uchar value);
21                 [Version (deprecated = true, deprecated_since = "0.6.")]
22                 public void set_hint_byte_array (string key, [CCode (array_length_cname = "len", array_length_pos = 2.1, array_length_type = "gsize")] uchar[] value);
23                 [Version (deprecated = true, deprecated_since = "0.6.")]
24                 public void set_hint_double (string key, double value);
25                 [Version (deprecated = true, deprecated_since = "0.6.")]
26                 public void set_hint_int32 (string key, int value);
27                 [Version (deprecated = true, deprecated_since = "0.6.")]
28                 public void set_hint_string (string key, string value);
29                 [Version (deprecated = true, deprecated_since = "0.6.")]
30                 public void set_hint_uint32 (string key, uint value);
31                 [Version (deprecated = true)]
32                 public void set_icon_from_pixbuf (Gdk.Pixbuf icon);
33                 public void set_image_from_pixbuf (Gdk.Pixbuf pixbuf);
34                 public void set_timeout (int timeout);
35                 public void set_urgency (Notify.Urgency urgency);
36                 public bool show () throws GLib.Error;
37                 public bool update (string summary, string? body, string? icon);
38                 [NoAccessorMethod]
39                 public string app_name { owned get; set; }
40                 [NoAccessorMethod]
41                 public string body { owned get; set construct; }
42                 public int closed_reason { get; }
43                 [NoAccessorMethod]
44                 public string icon_name { owned get; set construct; }
45                 [NoAccessorMethod]
46                 public int id { get; set construct; }
47                 [NoAccessorMethod]
48                 public string summary { owned get; set construct; }
49                 public virtual signal void closed ();
50         }
51         [CCode (cheader_filename = "libnotify/notify.h", cprefix = "NOTIFY_URGENCY_", has_type_id = false)]
52         public enum Urgency {
53                 LOW,
54                 NORMAL,
55                 CRITICAL
56         }
57         [CCode (cheader_filename = "libnotify/notify.h", instance_pos = 2.9)]
58         public delegate void ActionCallback (Notify.Notification notification, string action);
59         [CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_EXPIRES_DEFAULT")]
60         public const int EXPIRES_DEFAULT;
61         [CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_EXPIRES_NEVER")]
62         public const int EXPIRES_NEVER;
63         [CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MAJOR")]
64         public const int VERSION_MAJOR;
65         [CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MICRO")]
66         public const int VERSION_MICRO;
67         [CCode (cheader_filename = "libnotify/notify.h", cname = "NOTIFY_VERSION_MINOR")]
68         public const int VERSION_MINOR;
69         [CCode (cheader_filename = "libnotify/notify.h")]
70         public static unowned string get_app_name ();
71         [CCode (cheader_filename = "libnotify/notify.h")]
72         public static GLib.List<string> get_server_caps ();
73         [CCode (cheader_filename = "libnotify/notify.h")]
74         public static bool get_server_info (out string ret_name, out string ret_vendor, out string ret_version, out string ret_spec_version);
75         [CCode (cheader_filename = "libnotify/notify.h")]
76         public static bool init (string app_name);
77         [CCode (cheader_filename = "libnotify/notify.h")]
78         public static bool is_initted ();
79         [CCode (cheader_filename = "libnotify/notify.h")]
80         public static void set_app_name (string app_name);
81         [CCode (cheader_filename = "libnotify/notify.h")]
82         public static void uninit ();