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