27
27
public class AppLaunchContext : GLib.Object {
28
28
[CCode (has_construct_function = false)]
29
29
public AppLaunchContext ();
30
public virtual unowned string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
31
public virtual unowned string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
30
public virtual string get_display (GLib.AppInfo info, GLib.List<GLib.File> files);
31
public virtual string get_startup_notify_id (GLib.AppInfo info, GLib.List<GLib.File> files);
32
32
public virtual void launch_failed (string startup_notify_id);
34
34
[CCode (cheader_filename = "gio/gio.h")]
35
public class Application : GLib.Object, GLib.Initable {
36
[CCode (has_construct_function = false)]
37
public Application (string appid, [CCode (array_length_pos = 1.9)] ref unowned string[]? argv = null);
38
public void add_action (string name, string description);
39
public unowned string get_action_description (string name);
40
public bool get_action_enabled (string name);
41
public unowned string get_id ();
42
public static unowned GLib.Application get_instance ();
43
public void invoke_action (string name, GLib.Variant platform_data);
44
public unowned string list_actions ();
45
[CCode (cname = "g_application_quit_with_data")]
46
public bool quit (GLib.Variant? platform_data = null);
47
public bool register ();
48
public void remove_action (string name);
49
public virtual void run ();
50
public void set_action_enabled (string name, bool enabled);
51
public static unowned GLib.Application try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
52
public static unowned GLib.Application unregistered_try_new (string appid, int argc, out unowned string argv) throws GLib.Error;
54
public string application_id { owned get; construct; }
56
public GLib.Variant argv { owned get; construct; }
58
public bool default_quit { get; construct; }
60
public bool is_remote { get; }
62
public GLib.Variant platform_data { owned get; construct; }
63
public virtual signal void action_with_data (string action_name, GLib.Variant platform_data);
64
public virtual signal void prepare_activation (GLib.Variant arguments, GLib.Variant platform_data);
66
public virtual signal bool quit_with_data (GLib.Variant? platform_data);
68
[CCode (cheader_filename = "gio/gio.h")]
69
35
public class BufferedInputStream : GLib.FilterInputStream {
70
36
[CCode (type = "GInputStream*", has_construct_function = false)]
71
37
public BufferedInputStream (GLib.InputStream base_stream);
143
109
public class Credentials : GLib.Object {
144
110
[CCode (has_construct_function = false)]
145
111
public Credentials ();
146
public void* get_native ();
112
public void* get_native (GLib.CredentialsType native_type);
147
113
public uint get_unix_user () throws GLib.Error;
148
114
public bool is_same_user (GLib.Credentials other_credentials) throws GLib.Error;
149
public void set_native (void* native);
115
public void set_native (GLib.CredentialsType native_type, void* native);
150
116
public bool set_unix_user (uint uid) throws GLib.Error;
151
117
public unowned string to_string ();
120
[CCode (cheader_filename = "gio/gio.h")]
121
public class CredentialsClass {
154
124
[CCode (ref_function = "g_dbus_annotation_info_ref", unref_function = "g_dbus_annotation_info_unref", type_id = "G_TYPE_DBUS_ANNOTATION_INFO", cheader_filename = "gio/gio.h")]
155
125
public class DBusAnnotationInfo {
156
126
public weak GLib.DBusAnnotationInfo annotations;
181
151
public uint add_filter (GLib.DBusMessageFilterFunction filter_function, GLib.DestroyNotify user_data_free_func);
182
152
public async GLib.Variant call (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
183
153
public GLib.Variant call_sync (string bus_name, string object_path, string interface_name, string method_name, GLib.Variant parameters, GLib.VariantType reply_type, GLib.DBusCallFlags flags, int timeout_msec, GLib.Cancellable? cancellable = null) throws GLib.Error;
184
public void close ();
154
public void close (GLib.Cancellable? cancellable = null, GLib.AsyncReadyCallback callback);
155
public bool close_finish (GLib.AsyncResult res) throws GLib.Error;
156
public bool close_sync (GLib.Cancellable? cancellable = null) throws GLib.Error;
185
157
public bool emit_signal (string? destination_bus_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters) throws GLib.Error;
186
158
public void flush (GLib.Cancellable? cancellable = null, GLib.AsyncReadyCallback callback);
187
159
public bool flush_finish (GLib.AsyncResult res) throws GLib.Error;
200
172
public uint register_object<T> (string object_path, T object) throws GLib.IOError;
201
173
public uint register_subtree (string object_path, GLib.DBusSubtreeVTable vtable, GLib.DBusSubtreeFlags flags, GLib.DestroyNotify user_data_free_func) throws GLib.Error;
202
174
public void remove_filter (uint filter_id);
203
public bool send_message (GLib.DBusMessage message, uint32 out_serial) throws GLib.Error;
204
public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
205
public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
175
public bool send_message (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, uint32 out_serial) throws GLib.Error;
176
public async GLib.DBusMessage send_message_with_reply (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
177
public GLib.DBusMessage send_message_with_reply_sync (GLib.DBusMessage message, GLib.DBusSendMessageFlags flags, int timeout_msec, uint32 out_serial, GLib.Cancellable? cancellable = null) throws GLib.Error;
206
178
public void set_exit_on_close (bool exit_on_close);
207
public uint signal_subscribe (string sender, string interface_name, string member, string object_path, string arg0, GLib.DBusSignalCallback callback, GLib.DestroyNotify user_data_free_func);
179
public uint signal_subscribe (string sender, string interface_name, string member, string object_path, string arg0, GLib.DBusSignalFlags flags, GLib.DBusSignalCallback callback, GLib.DestroyNotify user_data_free_func);
208
180
public void signal_unsubscribe (uint subscription_id);
209
181
public void start_message_processing ();
210
182
[CCode (has_construct_function = false)]
254
226
[CCode (has_construct_function = false)]
255
227
public DBusMessage ();
256
228
public static ssize_t bytes_needed (uchar[] blob, size_t blob_len) throws GLib.Error;
229
public unowned GLib.DBusMessage copy () throws GLib.Error;
257
230
[CCode (has_construct_function = false)]
258
231
public DBusMessage.from_blob (uchar[] blob, size_t blob_len, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
259
232
public unowned string get_arg0 ();
260
233
public unowned GLib.Variant get_body ();
234
public GLib.DBusMessageByteOrder get_byte_order ();
261
235
public unowned string get_destination ();
262
236
public unowned string get_error_name ();
263
237
public GLib.DBusMessageFlags get_flags ();
264
238
public unowned GLib.Variant get_header (GLib.DBusMessageHeaderField header_field);
265
239
public unowned uchar[] get_header_fields ();
266
240
public unowned string get_interface ();
241
public bool get_locked ();
267
242
public unowned string get_member ();
268
243
public GLib.DBusMessageType get_message_type ();
269
244
public uint32 get_num_unix_fds ();
273
248
public uint32 get_serial ();
274
249
public unowned string get_signature ();
275
250
public unowned GLib.UnixFDList get_unix_fd_list ();
251
public void @lock ();
276
252
[CCode (has_construct_function = false)]
277
253
public DBusMessage.method_call (string name, string path, string interface_, string method);
278
254
[CCode (has_construct_function = false)]
285
261
public DBusMessage.method_reply (GLib.DBusMessage method_call_message);
286
262
public unowned string print (uint indent);
287
263
public void set_body (GLib.Variant body);
264
public void set_byte_order (GLib.DBusMessageByteOrder byte_order);
288
265
public void set_destination (string value);
289
266
public void set_error_name (string value);
290
267
public void set_flags (GLib.DBusMessageFlags flags);
303
280
public DBusMessage.@signal (string path, string interface_, string @signal);
304
281
public unowned uchar[] to_blob (size_t out_size, GLib.DBusCapabilityFlags capabilities) throws GLib.Error;
305
282
public bool to_gerror () throws GLib.Error;
283
public bool locked { get; }
308
286
[CCode (ref_function = "g_dbus_method_info_ref", unref_function = "g_dbus_method_info_unref", type_id = "G_TYPE_DBUS_METHOD_INFO", cheader_filename = "gio/gio.h")]
316
294
[CCode (cheader_filename = "gio/gio.h")]
317
295
public class DBusMethodInvocation : GLib.Object {
318
296
[CCode (has_construct_function = false)]
319
public DBusMethodInvocation (string sender, string object_path, string interface_name, string method_name, GLib.DBusMethodInfo method_info, GLib.DBusConnection connection, GLib.DBusMessage message, GLib.Variant parameters);
297
protected DBusMethodInvocation ();
320
298
public unowned GLib.DBusConnection get_connection ();
321
299
public unowned string get_interface_name ();
322
300
public unowned GLib.DBusMessage get_message ();
413
391
[CCode (has_construct_function = false)]
414
392
public DBusServer.sync (string address, GLib.DBusServerFlags flags, string guid, GLib.DBusAuthObserver observer, GLib.Cancellable? cancellable = null) throws GLib.Error;
415
393
[NoAccessorMethod]
416
public string active { owned get; }
394
public bool active { get; }
417
395
[NoAccessorMethod]
418
396
public string address { owned get; construct; }
419
397
[NoAccessorMethod]
421
399
public string client_address { get; }
422
400
public GLib.DBusServerFlags flags { get; construct; }
423
401
public string guid { get; construct; }
424
public virtual signal void new_connection (GLib.DBusConnection p0);
402
public virtual signal bool new_connection (GLib.DBusConnection p0);
427
405
[CCode (ref_function = "g_dbus_signal_info_ref", unref_function = "g_dbus_signal_info_unref", type_id = "G_TYPE_DBUS_SIGNAL_INFO", cheader_filename = "gio/gio.h")]
455
434
public uint64 read_uint64 (GLib.Cancellable? cancellable = null) throws GLib.Error;
456
435
public string? read_until (string stop_chars, out size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
457
436
public async string? read_until_async (string stop_chars, int io_priority, GLib.Cancellable? cancellable = null, out size_t? length = null) throws GLib.Error;
437
public unowned string read_upto (string stop_chars, ssize_t stop_chars_len, size_t length, GLib.Cancellable? cancellable = null) throws GLib.Error;
438
public async unowned string read_upto_async (string stop_chars, ssize_t stop_chars_len, int io_priority, GLib.Cancellable? cancellable = null) throws GLib.Error;
458
439
public void set_byte_order (GLib.DataStreamByteOrder order);
459
440
public void set_newline_type (GLib.DataStreamNewlineType type);
460
441
public GLib.DataStreamByteOrder byte_order { get; set; }
915
897
public NetworkAddress (string hostname, uint16 port);
916
898
public unowned string get_hostname ();
917
899
public uint16 get_port ();
900
public unowned string get_scheme ();
918
901
public static unowned GLib.SocketConnectable parse (string host_and_port, uint16 default_port) throws GLib.Error;
902
public static unowned GLib.SocketConnectable parse_uri (string uri, uint16 default_port) throws GLib.Error;
919
903
public string hostname { get; construct; }
920
904
public uint port { get; construct; }
905
public string scheme { get; construct; }
922
907
[CCode (cheader_filename = "gio/gio.h")]
923
908
public class NetworkService : GLib.Object, GLib.SocketConnectable {
925
910
public NetworkService (string service, string protocol, string domain);
926
911
public unowned string get_domain ();
927
912
public unowned string get_protocol ();
913
public unowned string get_scheme ();
928
914
public unowned string get_service ();
915
public void set_scheme (string scheme);
929
916
public string domain { get; construct; }
930
917
public string protocol { get; construct; }
918
public string scheme { get; set; }
931
919
public string service { get; construct; }
933
921
[CCode (cheader_filename = "gio/gio.h")]
976
964
public bool can_release { get; }
978
966
[CCode (cheader_filename = "gio/gio.h")]
967
public class ProxyAddress : GLib.InetSocketAddress, GLib.SocketConnectable {
968
[CCode (type = "GSocketAddress*", has_construct_function = false)]
969
public ProxyAddress (GLib.InetAddress inetaddr, uint16 port, string protocol, string dest_hostname, uint16 dest_port, string username, string password);
970
public unowned string get_destination_hostname ();
971
public uint16 get_destination_port ();
972
public unowned string get_password ();
973
public unowned string get_protocol ();
974
public unowned string get_username ();
975
public string destination_hostname { get; construct; }
976
public uint destination_port { get; construct; }
977
public string password { get; construct; }
978
public string protocol { get; construct; }
979
public string username { get; construct; }
981
[CCode (cheader_filename = "gio/gio.h")]
982
public class ProxyAddressEnumerator : GLib.SocketAddressEnumerator {
983
[CCode (has_construct_function = false)]
984
protected ProxyAddressEnumerator ();
986
public GLib.SocketConnectable connectable { owned get; construct; }
988
public string uri { owned get; construct; }
990
[CCode (cheader_filename = "gio/gio.h")]
979
991
public class Resolver : GLib.Object {
980
992
[CCode (has_construct_function = false)]
981
993
protected Resolver ();
1014
1026
public string[] get_strv (string key);
1015
1027
public GLib.Variant get_value (string key);
1016
1028
public bool is_writable (string name);
1017
public unowned string list_items ();
1018
public static unowned string list_schemas ();
1029
[CCode (array_length = false, array_null_terminated = true)]
1030
public string[] list_children ();
1031
[CCode (array_length = false, array_null_terminated = true)]
1032
public string[] list_keys ();
1033
[CCode (array_length = false, array_null_terminated = true)]
1034
public static unowned string[] list_schemas ();
1035
public void reset (string key);
1019
1036
public void revert ();
1020
1037
[CCode (sentinel = "")]
1021
1038
public bool @set (string key, string format, ...);
1114
1132
public ssize_t receive (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1115
1133
public ssize_t receive_from (out unowned GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1116
1134
public ssize_t receive_message (out unowned GLib.SocketAddress address, GLib.InputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1135
public ssize_t receive_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1117
1136
public ssize_t send (string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1118
1137
public ssize_t send_message (GLib.SocketAddress address, GLib.OutputVector vectors, int num_vectors, out unowned GLib.SocketControlMessage messages, int num_messages, int flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
1119
1138
public ssize_t send_to (GLib.SocketAddress address, string buffer, size_t size, GLib.Cancellable? cancellable = null) throws GLib.Error;
1139
public ssize_t send_with_blocking (string buffer, size_t size, bool blocking, GLib.Cancellable? cancellable = null) throws GLib.Error;
1120
1140
public void set_blocking (bool blocking);
1121
1141
public void set_keepalive (bool keepalive);
1122
1142
public void set_listen_backlog (int backlog);
1157
1177
public class SocketClient : GLib.Object {
1158
1178
[CCode (has_construct_function = false)]
1159
1179
public SocketClient ();
1180
public void add_application_proxy (string protocol);
1160
1181
public unowned GLib.SocketConnection connect (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1161
1182
public async unowned GLib.SocketConnection connect_async (GLib.SocketConnectable connectable, GLib.Cancellable? cancellable = null) throws GLib.Error;
1162
1183
public unowned GLib.SocketConnection connect_to_host (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1163
1184
public async unowned GLib.SocketConnection connect_to_host_async (string host_and_port, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1164
1185
public unowned GLib.SocketConnection connect_to_service (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1165
1186
public async unowned GLib.SocketConnection connect_to_service_async (string domain, string service, GLib.Cancellable? cancellable = null) throws GLib.Error;
1187
public unowned GLib.SocketConnection connect_to_uri (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1188
public async unowned GLib.SocketConnection connect_to_uri_async (string uri, uint16 default_port, GLib.Cancellable? cancellable = null) throws GLib.Error;
1189
public bool get_enable_proxy ();
1166
1190
public GLib.SocketFamily get_family ();
1167
1191
public unowned GLib.SocketAddress get_local_address ();
1168
1192
public GLib.SocketProtocol get_protocol ();
1169
1193
public GLib.SocketType get_socket_type ();
1194
public uint get_timeout ();
1195
public void set_enable_proxy (bool enable);
1170
1196
public void set_family (GLib.SocketFamily family);
1171
1197
public void set_local_address (GLib.SocketAddress address);
1172
1198
public void set_protocol (GLib.SocketProtocol protocol);
1173
1199
public void set_socket_type (GLib.SocketType type);
1200
public void set_timeout (uint timeout);
1201
public bool enable_proxy { get; set construct; }
1174
1202
public GLib.SocketFamily family { get; set construct; }
1175
1203
public GLib.SocketAddress local_address { get; set construct; }
1176
1204
public GLib.SocketProtocol protocol { get; set construct; }
1205
public uint timeout { get; set construct; }
1177
1206
[NoAccessorMethod]
1178
1207
public GLib.SocketType type { get; set construct; }
1345
1374
public class ZlibCompressor : GLib.Object, GLib.Converter {
1346
1375
[CCode (has_construct_function = false)]
1347
1376
public ZlibCompressor (GLib.ZlibCompressorFormat format, int level = -1);
1377
public unowned GLib.FileInfo get_file_info ();
1378
public void set_file_info (GLib.FileInfo file_info);
1379
public GLib.FileInfo file_info { get; set; }
1348
1380
[NoAccessorMethod]
1349
1381
public GLib.ZlibCompressorFormat format { get; construct; }
1350
1382
[NoAccessorMethod]
1354
1386
public class ZlibDecompressor : GLib.Object, GLib.Converter {
1355
1387
[CCode (has_construct_function = false)]
1356
1388
public ZlibDecompressor (GLib.ZlibCompressorFormat format);
1389
public unowned GLib.FileInfo get_file_info ();
1390
public GLib.FileInfo file_info { get; }
1357
1391
[NoAccessorMethod]
1358
1392
public GLib.ZlibCompressorFormat format { get; construct; }
1579
1613
public signal void unmounted ();
1581
1615
[CCode (cheader_filename = "gio/gio.h")]
1616
public interface Proxy : GLib.Object {
1617
public abstract unowned GLib.IOStream connect (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1618
public abstract async unowned GLib.IOStream connect_async (GLib.IOStream connection, GLib.ProxyAddress proxy_address, GLib.Cancellable? cancellable = null) throws GLib.Error;
1619
public static unowned GLib.Proxy get_default_for_protocol (string protocol);
1620
public abstract bool supports_hostname ();
1622
[CCode (cheader_filename = "gio/gio.h")]
1623
public interface ProxyResolver : GLib.Object {
1624
public static unowned GLib.ProxyResolver get_default ();
1625
public abstract bool is_supported ();
1626
public abstract unowned string lookup (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1627
public abstract async unowned string lookup_async (string uri, GLib.Cancellable? cancellable = null) throws GLib.Error;
1629
[CCode (cheader_filename = "gio/gio.h")]
1582
1630
public interface Seekable : GLib.Object {
1583
1631
public abstract bool can_seek ();
1584
1632
public abstract bool can_truncate ();
1590
1638
[CCode (cheader_filename = "gio/gio.h")]
1591
1639
public interface SocketConnectable : GLib.Object {
1592
1640
public abstract unowned GLib.SocketAddressEnumerator enumerate ();
1641
public abstract unowned GLib.SocketAddressEnumerator proxy_enumerate ();
1594
1643
[CCode (cheader_filename = "gio/gio.h")]
1595
1644
public interface Volume : GLib.Object {
2047
2126
[CCode (cheader_filename = "gio/gio.h")]
2048
2127
public delegate bool DBusInterfaceSetPropertyFunc (GLib.DBusConnection connection, string sender, string object_path, string interface_name, string property_name, GLib.Variant value, GLib.Error error);
2049
2128
[CCode (cheader_filename = "gio/gio.h")]
2050
public delegate bool DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2129
public delegate unowned GLib.DBusMessage DBusMessageFilterFunction (GLib.DBusConnection connection, GLib.DBusMessage message, bool incoming);
2051
2130
[CCode (cheader_filename = "gio/gio.h")]
2052
2131
public delegate void DBusSignalCallback (GLib.DBusConnection connection, string sender_name, string object_path, string interface_name, string signal_name, GLib.Variant parameters);
2053
2132
[CCode (cheader_filename = "gio/gio.h")]
2055
2134
[CCode (cheader_filename = "gio/gio.h")]
2056
2135
public delegate unowned string DBusSubtreeEnumerateFunc (GLib.DBusConnection connection, string sender, string object_path);
2057
2136
[CCode (cheader_filename = "gio/gio.h")]
2058
public delegate unowned GLib.GenericArray DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2137
public delegate unowned GLib.DBusInterfaceInfo DBusSubtreeIntrospectFunc (GLib.DBusConnection connection, string sender, string object_path, string node);
2059
2138
[CCode (cheader_filename = "gio/gio.h")]
2060
2139
public delegate void FileProgressCallback (int64 current_num_bytes, int64 total_num_bytes);
2061
2140
[CCode (cheader_filename = "gio/gio.h", has_target = false)]
2231
2310
[CCode (cheader_filename = "gio/gio.h")]
2232
2311
public const string NATIVE_VOLUME_MONITOR_EXTENSION_POINT_NAME;
2233
2312
[CCode (cheader_filename = "gio/gio.h")]
2313
public const string PROXY_EXTENSION_POINT_NAME;
2314
[CCode (cheader_filename = "gio/gio.h")]
2315
public const string PROXY_RESOLVER_EXTENSION_POINT_NAME;
2316
[CCode (cheader_filename = "gio/gio.h")]
2234
2317
public const string VFS_EXTENSION_POINT_NAME;
2235
2318
[CCode (cheader_filename = "gio/gio.h")]
2236
2319
public const string VOLUME_IDENTIFIER_KIND_HAL_UDI;