252
128
* @unmount_mountable_finish: Finishes an unmount operation.
253
129
* @eject_mountable: Ejects a mountable.
254
130
* @eject_mountable_finish: Finishes an eject operation.
255
* @mount_enclosing_volume: Mounts a specified location.
131
* @mount_enclosing_volume: Mounts a specified location.
256
132
* @mount_enclosing_volume_finish: Finishes mounting a specified location.
257
133
* @monitor_dir: Creates a #GFileMonitor for the location.
258
134
* @monitor_file: Creates a #GFileMonitor for the location.
260
* An interface for writing VFS file handles.
136
* An interface for writing VFS file handles.
262
138
struct _GFileIface
264
140
GTypeInterface g_iface;
266
142
/* Virtual Table */
268
GFile * (*dup) (GFile *file);
269
guint (*hash) (GFile *file);
270
gboolean (*equal) (GFile *file1,
272
gboolean (*is_native) (GFile *file);
273
gboolean (*has_uri_scheme) (GFile *file,
274
const char *uri_scheme);
275
char * (*get_uri_scheme) (GFile *file);
276
char * (*get_basename) (GFile *file);
277
char * (*get_path) (GFile *file);
278
char * (*get_uri) (GFile *file);
279
char * (*get_parse_name) (GFile *file);
280
GFile * (*get_parent) (GFile *file);
281
gboolean (*prefix_matches) (GFile *prefix,
283
char * (*get_relative_path) (GFile *parent,
285
GFile * (*resolve_relative_path) (GFile *file,
286
const char *relative_path);
287
GFile * (*get_child_for_display_name) (GFile *file,
288
const char *display_name,
291
GFileEnumerator * (*enumerate_children) (GFile *file,
292
const char *attributes,
293
GFileQueryInfoFlags flags,
294
GCancellable *cancellable,
296
void (*enumerate_children_async) (GFile *file,
297
const char *attributes,
298
GFileQueryInfoFlags flags,
300
GCancellable *cancellable,
301
GAsyncReadyCallback callback,
303
GFileEnumerator * (*enumerate_children_finish) (GFile *file,
307
GFileInfo * (*query_info) (GFile *file,
308
const char *attributes,
309
GFileQueryInfoFlags flags,
310
GCancellable *cancellable,
312
void (*query_info_async) (GFile *file,
313
const char *attributes,
314
GFileQueryInfoFlags flags,
316
GCancellable *cancellable,
317
GAsyncReadyCallback callback,
319
GFileInfo * (*query_info_finish) (GFile *file,
323
GFileInfo * (*query_filesystem_info)(GFile *file,
324
const char *attributes,
325
GCancellable *cancellable,
327
void (*query_filesystem_info_async) (GFile *file,
328
const char *attributes,
330
GCancellable *cancellable,
331
GAsyncReadyCallback callback,
333
GFileInfo * (*query_filesystem_info_finish) (GFile *file,
337
GMount * (*find_enclosing_mount)(GFile *file,
338
GCancellable *cancellable,
340
void (*find_enclosing_mount_async)(GFile *file,
342
GCancellable *cancellable,
343
GAsyncReadyCallback callback,
345
GMount * (*find_enclosing_mount_finish)(GFile *file,
349
GFile * (*set_display_name) (GFile *file,
350
const char *display_name,
351
GCancellable *cancellable,
353
void (*set_display_name_async) (GFile *file,
354
const char *display_name,
356
GCancellable *cancellable,
357
GAsyncReadyCallback callback,
359
GFile * (*set_display_name_finish) (GFile *file,
363
GFileAttributeInfoList * (*query_settable_attributes) (GFile *file,
364
GCancellable *cancellable,
366
void (*_query_settable_attributes_async) (void);
367
void (*_query_settable_attributes_finish) (void);
369
GFileAttributeInfoList * (*query_writable_namespaces) (GFile *file,
370
GCancellable *cancellable,
372
void (*_query_writable_namespaces_async) (void);
373
void (*_query_writable_namespaces_finish) (void);
375
gboolean (*set_attribute) (GFile *file,
376
const char *attribute,
377
GFileAttributeType type,
379
GFileQueryInfoFlags flags,
380
GCancellable *cancellable,
382
gboolean (*set_attributes_from_info) (GFile *file,
384
GFileQueryInfoFlags flags,
385
GCancellable *cancellable,
387
void (*set_attributes_async) (GFile *file,
389
GFileQueryInfoFlags flags,
391
GCancellable *cancellable,
392
GAsyncReadyCallback callback,
394
gboolean (*set_attributes_finish) (GFile *file,
395
GAsyncResult *result,
399
GFileInputStream * (*read_fn) (GFile *file,
400
GCancellable *cancellable,
402
void (*read_async) (GFile *file,
404
GCancellable *cancellable,
405
GAsyncReadyCallback callback,
407
GFileInputStream * (*read_finish) (GFile *file,
411
GFileOutputStream * (*append_to) (GFile *file,
412
GFileCreateFlags flags,
413
GCancellable *cancellable,
415
void (*append_to_async) (GFile *file,
416
GFileCreateFlags flags,
418
GCancellable *cancellable,
419
GAsyncReadyCallback callback,
421
GFileOutputStream * (*append_to_finish) (GFile *file,
425
GFileOutputStream * (*create) (GFile *file,
426
GFileCreateFlags flags,
427
GCancellable *cancellable,
429
void (*create_async) (GFile *file,
430
GFileCreateFlags flags,
432
GCancellable *cancellable,
433
GAsyncReadyCallback callback,
435
GFileOutputStream * (*create_finish) (GFile *file,
439
GFileOutputStream * (*replace) (GFile *file,
441
gboolean make_backup,
442
GFileCreateFlags flags,
443
GCancellable *cancellable,
445
void (*replace_async) (GFile *file,
447
gboolean make_backup,
448
GFileCreateFlags flags,
450
GCancellable *cancellable,
451
GAsyncReadyCallback callback,
453
GFileOutputStream * (*replace_finish) (GFile *file,
457
gboolean (*delete_file) (GFile *file,
458
GCancellable *cancellable,
460
void (*_delete_file_async) (void);
461
void (*_delete_file_finish) (void);
463
gboolean (*trash) (GFile *file,
464
GCancellable *cancellable,
466
void (*_trash_async) (void);
467
void (*_trash_finish) (void);
469
gboolean (*make_directory) (GFile *file,
470
GCancellable *cancellable,
472
void (*_make_directory_async) (void);
473
void (*_make_directory_finish) (void);
475
gboolean (*make_symbolic_link) (GFile *file,
476
const char *symlink_value,
477
GCancellable *cancellable,
479
void (*_make_symbolic_link_async) (void);
480
void (*_make_symbolic_link_finish) (void);
482
gboolean (*copy) (GFile *source,
484
GFileCopyFlags flags,
485
GCancellable *cancellable,
486
GFileProgressCallback progress_callback,
487
gpointer progress_callback_data,
489
void (*copy_async) (GFile *source,
491
GFileCopyFlags flags,
493
GCancellable *cancellable,
494
GFileProgressCallback progress_callback,
495
gpointer progress_callback_data,
496
GAsyncReadyCallback callback,
498
gboolean (*copy_finish) (GFile *file,
502
gboolean (*move) (GFile *source,
504
GFileCopyFlags flags,
505
GCancellable *cancellable,
506
GFileProgressCallback progress_callback,
507
gpointer progress_callback_data,
510
void (*_move_async) (void);
511
void (*_move_finish) (void);
514
void (*mount_mountable) (GFile *file,
515
GMountMountFlags flags,
516
GMountOperation *mount_operation,
517
GCancellable *cancellable,
518
GAsyncReadyCallback callback,
520
GFile * (*mount_mountable_finish) (GFile *file,
521
GAsyncResult *result,
523
void (*unmount_mountable) (GFile *file,
524
GMountUnmountFlags flags,
525
GCancellable *cancellable,
526
GAsyncReadyCallback callback,
528
gboolean (*unmount_mountable_finish) (GFile *file,
529
GAsyncResult *result,
531
void (*eject_mountable) (GFile *file,
532
GMountUnmountFlags flags,
533
GCancellable *cancellable,
534
GAsyncReadyCallback callback,
536
gboolean (*eject_mountable_finish) (GFile *file,
537
GAsyncResult *result,
541
void (*mount_enclosing_volume) (GFile *location,
542
GMountMountFlags flags,
543
GMountOperation *mount_operation,
544
GCancellable *cancellable,
545
GAsyncReadyCallback callback,
547
gboolean (*mount_enclosing_volume_finish) (GFile *location,
548
GAsyncResult *result,
551
GFileMonitor* (*monitor_dir) (GFile *file,
552
GFileMonitorFlags flags,
553
GCancellable *cancellable,
556
GFileMonitor* (*monitor_file) (GFile *file,
557
GFileMonitorFlags flags,
558
GCancellable *cancellable,
144
GFile * (* dup) (GFile *file);
145
guint (* hash) (GFile *file);
146
gboolean (* equal) (GFile *file1,
148
gboolean (* is_native) (GFile *file);
149
gboolean (* has_uri_scheme) (GFile *file,
150
const char *uri_scheme);
151
char * (* get_uri_scheme) (GFile *file);
152
char * (* get_basename) (GFile *file);
153
char * (* get_path) (GFile *file);
154
char * (* get_uri) (GFile *file);
155
char * (* get_parse_name) (GFile *file);
156
GFile * (* get_parent) (GFile *file);
157
gboolean (* prefix_matches) (GFile *prefix,
159
char * (* get_relative_path) (GFile *parent,
161
GFile * (* resolve_relative_path) (GFile *file,
162
const char *relative_path);
163
GFile * (* get_child_for_display_name) (GFile *file,
164
const char *display_name,
167
GFileEnumerator * (* enumerate_children) (GFile *file,
168
const char *attributes,
169
GFileQueryInfoFlags flags,
170
GCancellable *cancellable,
172
void (* enumerate_children_async) (GFile *file,
173
const char *attributes,
174
GFileQueryInfoFlags flags,
176
GCancellable *cancellable,
177
GAsyncReadyCallback callback,
179
GFileEnumerator * (* enumerate_children_finish) (GFile *file,
183
GFileInfo * (* query_info) (GFile *file,
184
const char *attributes,
185
GFileQueryInfoFlags flags,
186
GCancellable *cancellable,
188
void (* query_info_async) (GFile *file,
189
const char *attributes,
190
GFileQueryInfoFlags flags,
192
GCancellable *cancellable,
193
GAsyncReadyCallback callback,
195
GFileInfo * (* query_info_finish) (GFile *file,
199
GFileInfo * (* query_filesystem_info) (GFile *file,
200
const char *attributes,
201
GCancellable *cancellable,
203
void (* query_filesystem_info_async) (GFile *file,
204
const char *attributes,
206
GCancellable *cancellable,
207
GAsyncReadyCallback callback,
209
GFileInfo * (* query_filesystem_info_finish)(GFile *file,
213
GMount * (* find_enclosing_mount) (GFile *file,
214
GCancellable *cancellable,
216
void (* find_enclosing_mount_async) (GFile *file,
218
GCancellable *cancellable,
219
GAsyncReadyCallback callback,
221
GMount * (* find_enclosing_mount_finish) (GFile *file,
225
GFile * (* set_display_name) (GFile *file,
226
const char *display_name,
227
GCancellable *cancellable,
229
void (* set_display_name_async) (GFile *file,
230
const char *display_name,
232
GCancellable *cancellable,
233
GAsyncReadyCallback callback,
235
GFile * (* set_display_name_finish) (GFile *file,
239
GFileAttributeInfoList * (* query_settable_attributes) (GFile *file,
240
GCancellable *cancellable,
242
void (* _query_settable_attributes_async) (void);
243
void (* _query_settable_attributes_finish) (void);
245
GFileAttributeInfoList * (* query_writable_namespaces) (GFile *file,
246
GCancellable *cancellable,
248
void (* _query_writable_namespaces_async) (void);
249
void (* _query_writable_namespaces_finish) (void);
251
gboolean (* set_attribute) (GFile *file,
252
const char *attribute,
253
GFileAttributeType type,
255
GFileQueryInfoFlags flags,
256
GCancellable *cancellable,
258
gboolean (* set_attributes_from_info) (GFile *file,
260
GFileQueryInfoFlags flags,
261
GCancellable *cancellable,
263
void (* set_attributes_async) (GFile *file,
265
GFileQueryInfoFlags flags,
267
GCancellable *cancellable,
268
GAsyncReadyCallback callback,
270
gboolean (* set_attributes_finish) (GFile *file,
271
GAsyncResult *result,
275
GFileInputStream * (* read_fn) (GFile *file,
276
GCancellable *cancellable,
278
void (* read_async) (GFile *file,
280
GCancellable *cancellable,
281
GAsyncReadyCallback callback,
283
GFileInputStream * (* read_finish) (GFile *file,
287
GFileOutputStream * (* append_to) (GFile *file,
288
GFileCreateFlags flags,
289
GCancellable *cancellable,
291
void (* append_to_async) (GFile *file,
292
GFileCreateFlags flags,
294
GCancellable *cancellable,
295
GAsyncReadyCallback callback,
297
GFileOutputStream * (* append_to_finish) (GFile *file,
301
GFileOutputStream * (* create) (GFile *file,
302
GFileCreateFlags flags,
303
GCancellable *cancellable,
305
void (* create_async) (GFile *file,
306
GFileCreateFlags flags,
308
GCancellable *cancellable,
309
GAsyncReadyCallback callback,
311
GFileOutputStream * (* create_finish) (GFile *file,
315
GFileOutputStream * (* replace) (GFile *file,
317
gboolean make_backup,
318
GFileCreateFlags flags,
319
GCancellable *cancellable,
321
void (* replace_async) (GFile *file,
323
gboolean make_backup,
324
GFileCreateFlags flags,
326
GCancellable *cancellable,
327
GAsyncReadyCallback callback,
329
GFileOutputStream * (* replace_finish) (GFile *file,
333
gboolean (* delete_file) (GFile *file,
334
GCancellable *cancellable,
336
void (* _delete_file_async) (void);
337
void (* _delete_file_finish) (void);
339
gboolean (* trash) (GFile *file,
340
GCancellable *cancellable,
342
void (* _trash_async) (void);
343
void (* _trash_finish) (void);
345
gboolean (* make_directory) (GFile *file,
346
GCancellable *cancellable,
348
void (* _make_directory_async) (void);
349
void (* _make_directory_finish) (void);
351
gboolean (* make_symbolic_link) (GFile *file,
352
const char *symlink_value,
353
GCancellable *cancellable,
355
void (* _make_symbolic_link_async) (void);
356
void (* _make_symbolic_link_finish) (void);
358
gboolean (* copy) (GFile *source,
360
GFileCopyFlags flags,
361
GCancellable *cancellable,
362
GFileProgressCallback progress_callback,
363
gpointer progress_callback_data,
365
void (* copy_async) (GFile *source,
367
GFileCopyFlags flags,
369
GCancellable *cancellable,
370
GFileProgressCallback progress_callback,
371
gpointer progress_callback_data,
372
GAsyncReadyCallback callback,
374
gboolean (* copy_finish) (GFile *file,
378
gboolean (* move) (GFile *source,
380
GFileCopyFlags flags,
381
GCancellable *cancellable,
382
GFileProgressCallback progress_callback,
383
gpointer progress_callback_data,
385
void (* _move_async) (void);
386
void (* _move_finish) (void);
388
void (* mount_mountable) (GFile *file,
389
GMountMountFlags flags,
390
GMountOperation *mount_operation,
391
GCancellable *cancellable,
392
GAsyncReadyCallback callback,
394
GFile * (* mount_mountable_finish) (GFile *file,
395
GAsyncResult *result,
398
void (* unmount_mountable) (GFile *file,
399
GMountUnmountFlags flags,
400
GCancellable *cancellable,
401
GAsyncReadyCallback callback,
403
gboolean (* unmount_mountable_finish) (GFile *file,
404
GAsyncResult *result,
407
void (* eject_mountable) (GFile *file,
408
GMountUnmountFlags flags,
409
GCancellable *cancellable,
410
GAsyncReadyCallback callback,
412
gboolean (* eject_mountable_finish) (GFile *file,
413
GAsyncResult *result,
416
void (* mount_enclosing_volume) (GFile *location,
417
GMountMountFlags flags,
418
GMountOperation *mount_operation,
419
GCancellable *cancellable,
420
GAsyncReadyCallback callback,
422
gboolean (* mount_enclosing_volume_finish) (GFile *location,
423
GAsyncResult *result,
426
GFileMonitor * (* monitor_dir) (GFile *file,
427
GFileMonitorFlags flags,
428
GCancellable *cancellable,
430
GFileMonitor * (* monitor_file) (GFile *file,
431
GFileMonitorFlags flags,
432
GCancellable *cancellable,
563
GType g_file_get_type (void) G_GNUC_CONST;
436
GType g_file_get_type (void) G_GNUC_CONST;
565
438
GFile * g_file_new_for_path (const char *path);
566
439
GFile * g_file_new_for_uri (const char *uri);