mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-04 08:23:38 +02:00
Add async version of g_file_trash()
https://bugzilla.gnome.org/show_bug.cgi?id=548353
This commit is contained in:
27
gio/gfile.h
27
gio/gfile.h
@@ -108,8 +108,8 @@ typedef struct _GFileIface GFileIface;
|
||||
* @delete_file_async: Asynchronously deletes a file.
|
||||
* @delete_file_finish: Finishes an asynchronous delete.
|
||||
* @trash: Sends a #GFile to the Trash location.
|
||||
* @_trash_async: Asynchronously sends a #GFile to the Trash location.
|
||||
* @_trash_finish: Finishes an asynchronous file trashing operation.
|
||||
* @trash_async: Asynchronously sends a #GFile to the Trash location.
|
||||
* @trash_finish: Finishes an asynchronous file trashing operation.
|
||||
* @make_directory: Makes a directory.
|
||||
* @_make_directory_async: Asynchronously makes a directory.
|
||||
* @_make_directory_finish: Finishes making a directory asynchronously.
|
||||
@@ -365,8 +365,14 @@ struct _GFileIface
|
||||
gboolean (* trash) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void (* _trash_async) (void);
|
||||
void (* _trash_finish) (void);
|
||||
void (* trash_async) (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
gboolean (* trash_finish) (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
gboolean (* make_directory) (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
@@ -838,6 +844,19 @@ GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_file_trash (GFile *file,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_38
|
||||
void g_file_trash_async (GFile *file,
|
||||
int io_priority,
|
||||
GCancellable *cancellable,
|
||||
GAsyncReadyCallback callback,
|
||||
gpointer user_data);
|
||||
|
||||
GLIB_AVAILABLE_IN_2_38
|
||||
gboolean g_file_trash_finish (GFile *file,
|
||||
GAsyncResult *result,
|
||||
GError **error);
|
||||
|
||||
GLIB_AVAILABLE_IN_ALL
|
||||
gboolean g_file_copy (GFile *source,
|
||||
GFile *destination,
|
||||
|
Reference in New Issue
Block a user