Virtualvfunc_Checks if a volume can be ejected.
Virtualvfunc_Checks if a volume can be mounted.
Virtualvfunc_Changed signal that is emitted when the volume's state has changed.
Virtualvfunc_Ejects a volume. This is an asynchronous operation, and is
finished by calling g_volume_eject_finish() with the volume
and Gio.AsyncResult returned in the callback.
flags affecting the unmount if required for eject
Optionalcancellable: Gio.Cancellableoptional Gio.Cancellable object, null to ignore
Optionalcallback: AsyncReadyCallback<Gio.Volume.Interface>a Gio.AsyncReadyCallback, or null
Virtualvfunc_Finishes ejecting a volume. If any errors occurred during the operation,
error will be set to contain the errors and false will be returned.
Virtualvfunc_Ejects a volume. This is an asynchronous operation, and is
finished by calling g_volume_eject_with_operation_finish() with the volume
and Gio.AsyncResult data returned in the callback.
flags affecting the unmount if required for eject
Optionalmount_operation: Gio.MountOperationa Gio.MountOperation or null to avoid user interaction
Optionalcancellable: Gio.Cancellableoptional Gio.Cancellable object, null to ignore
Optionalcallback: AsyncReadyCallback<Gio.Volume.Interface>a Gio.AsyncReadyCallback, or null
Virtualvfunc_Finishes ejecting a volume. If any errors occurred during the operation,
error will be set to contain the errors and false will be returned.
Virtualvfunc_Gets the kinds of identifiers that volume has.
Use g_volume_get_identifier() to obtain the identifiers themselves.
Virtualvfunc_Gets the activation root for a Gio.Volume if it is known ahead of
mount time. Returns null otherwise. If not null and if volume
is mounted, then the result of g_mount_get_root() on the
Gio.Mount object obtained from g_volume_get_mount() will always
either be equal or a prefix of what this function returns. In
other words, in code
GMount *mount;
GFile *mount_root
GFile *volume_activation_root;
mount = g_volume_get_mount (volume); // mounted, so never NULL
mount_root = g_mount_get_root (mount);
volume_activation_root = g_volume_get_activation_root (volume); // assume not NULL
then the expression
(g_file_has_prefix (volume_activation_root, mount_root) ||
g_file_equal (volume_activation_root, mount_root))
will always be true.
Activation roots are typically used in Gio.VolumeMonitor
implementations to find the underlying mount to shadow, see
g_mount_is_shadowed() for more details.
Virtualvfunc_Virtualvfunc_Virtualvfunc_Gets the identifier of the given kind for volume.
See the introduction for more
information about volume identifiers.
the kind of identifier to return
Virtualvfunc_Virtualvfunc_Gets the name of volume.
Virtualvfunc_Gets the sort key for volume, if any.
Virtualvfunc_Virtualvfunc_Gets the UUID for the volume. The reference is typically based on
the file system UUID for the volume in question and should be
considered an opaque string. Returns null if there is no UUID
available.
Virtualvfunc_Finishes mounting a volume. If any errors occurred during the operation,
error will be set to contain the errors and false will be returned.
If the mount operation succeeded, g_volume_get_mount() on volume
is guaranteed to return the mount right after calling this
function; there's no need to listen for the 'mount-added' signal on
Gio.VolumeMonitor.
Virtualvfunc_Mounts a volume. This is an asynchronous operation, and is
finished by calling g_volume_mount_finish() with the volume
and Gio.AsyncResult returned in the callback.
flags affecting the operation
Optionalmount_operation: Gio.MountOperationa Gio.MountOperation or null to avoid user interaction
Optionalcancellable: Gio.Cancellableoptional Gio.Cancellable object, null to ignore
Optionalcallback: AsyncReadyCallback<Gio.Volume.Interface>a Gio.AsyncReadyCallback, or null
Virtualvfunc_The removed signal that is emitted when the Gio.Volume have been removed. If the recipient is holding references to the object they should release them so the object can be finalized.
Virtualvfunc_Returns whether the volume should be automatically mounted.
Interface for implementing Volume. Contains only the virtual methods that need to be implemented.