webkit-1.0: Last parameter of WebKitWebView::load_error is GLib.Error.
[vala-lang.git] / vapi / unique-1.0.vapi
blobfa3c44cb1b8eda9fd0acafd93f86907712f75cde
1 /* unique-1.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Unique", lower_case_cprefix = "unique_")]
4 namespace Unique {
5         [CCode (cheader_filename = "unique/unique.h")]
6         public class App : GLib.Object {
7                 [CCode (has_construct_function = false)]
8                 public App (string name, string? startup_id);
9                 public void add_command (string command_name, int command_id);
10                 public Unique.Response send_message (int command_id, Unique.MessageData? message_data);
11                 public void watch_window (Gtk.Window window);
12                 [CCode (has_construct_function = false)]
13                 public App.with_commands (string name, string? startup_id, ...);
14                 [NoAccessorMethod]
15                 public bool is_running { get; }
16                 [NoAccessorMethod]
17                 public string name { owned get; construct; }
18                 [NoAccessorMethod]
19                 public Gdk.Screen screen { owned get; set construct; }
20                 [NoAccessorMethod]
21                 public string startup_id { owned get; construct; }
22                 public virtual signal Unique.Response message_received (int command, Unique.MessageData message_data, uint time_);
23         }
24         [CCode (cheader_filename = "unique/unique.h")]
25         public class Backend : GLib.Object {
26                 public weak string name;
27                 public weak Unique.App parent;
28                 public weak Gdk.Screen screen;
29                 public weak string startup_id;
30                 public uint workspace;
31                 [CCode (has_construct_function = false)]
32                 protected Backend ();
33                 public static unowned Unique.Backend create ();
34                 public unowned string get_name ();
35                 public unowned Gdk.Screen get_screen ();
36                 public unowned string get_startup_id ();
37                 public uint get_workspace ();
38                 public virtual bool request_name ();
39                 public virtual Unique.Response send_message (int command_id, Unique.MessageData message_data, uint time_);
40                 public void set_name (string name);
41                 public void set_screen (Gdk.Screen screen);
42                 public void set_startup_id (string startup_id);
43         }
44         [Compact]
45         [CCode (copy_function = "unique_message_data_copy", type_id = "UNIQUE_TYPE_MESSAGE_DATA", cheader_filename = "unique/unique.h")]
46         public class MessageData {
47                 [CCode (has_construct_function = false)]
48                 public MessageData ();
49                 public Unique.MessageData copy ();
50                 public unowned uchar[] @get (size_t length);
51                 public unowned string get_filename ();
52                 public unowned Gdk.Screen get_screen ();
53                 public unowned string get_startup_id ();
54                 public string get_text ();
55                 [CCode (array_length = false)]
56                 public string[] get_uris ();
57                 public uint get_workspace ();
58                 public void @set (uchar[]? data, size_t length);
59                 public void set_filename (string filename);
60                 public bool set_text (string str, ssize_t length);
61                 public bool set_uris ([CCode (array_length = false)] string[] uris);
62         }
63         [CCode (cprefix = "UNIQUE_", cheader_filename = "unique/unique.h")]
64         public enum Command {
65                 INVALID,
66                 ACTIVATE,
67                 NEW,
68                 OPEN,
69                 CLOSE
70         }
71         [CCode (cprefix = "UNIQUE_RESPONSE_", cheader_filename = "unique/unique.h")]
72         public enum Response {
73                 INVALID,
74                 OK,
75                 CANCEL,
76                 FAIL,
77                 PASSTHROUGH
78         }
79         [CCode (cheader_filename = "unique/unique.h")]
80         public const string API_VERSION_S;
81         [CCode (cheader_filename = "unique/unique.h")]
82         public const string DEFAULT_BACKEND_S;
83         [CCode (cheader_filename = "unique/unique.h")]
84         public const int MAJOR_VERSION;
85         [CCode (cheader_filename = "unique/unique.h")]
86         public const int MICRO_VERSION;
87         [CCode (cheader_filename = "unique/unique.h")]
88         public const int MINOR_VERSION;
89         [CCode (cheader_filename = "unique/unique.h")]
90         public const string PROTOCOL_VERSION_S;
91         [CCode (cheader_filename = "unique/unique.h")]
92         public const int VERSION_HEX;
93         [CCode (cheader_filename = "unique/unique.h")]
94         public const string VERSION_S;