module Gio::Mount
Overview
The GMount
interface represents a user-visible mount, such as a mounted
file system.
GMount
is a ‘mounted’ filesystem that you can access. Mounted is in
quotes because it’s not the same as a UNIX mount, it might be a GVFS
mount, but you can still access the files on it if you use GIO.
A GMount
might be associated with a Gio::Volume
(such as a USB flash
drive) which hosts it.
Unmounting a GMount
instance is an asynchronous operation. For
more information about asynchronous operations, see Gio::AsyncResult
and Gio::Task
. To unmount a GMount
instance, first call
Gio::Mount#unmount_with_operation
with (at least) the GMount
instance and a Gio::AsyncReadyCallback
. The callback will be fired
when the operation has resolved (either with success or failure), and a
Gio::AsyncResult
structure will be passed to the callback. That
callback should then call Gio::Mount#unmount_with_operation_finish
with the GMount
and the Gio::AsyncResult
data to see if the
operation was completed successfully. If an error
is present when
Gio::Mount#unmount_with_operation_finish
is called, then it will be
filled with any error information.
Note, when porting from GnomeVFS, GMount
is the
moral equivalent of GnomeVFSVolume
.
Defined in:
lib/gi-crystal/src/auto/gio-2.0/mount.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #can_eject : Bool
- #can_unmount : Bool
- #changed_signal
- #default_location : Gio::File
- #drive : Gio::Drive | Nil
-
#eject(flags : Gio::MountUnmountFlags, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
DEPRECATED
-
#eject_finish(result : Gio::AsyncResult) : Bool
DEPRECATED
- #eject_with_operation(flags : Gio::MountUnmountFlags, mount_operation : Gio::MountOperation | Nil, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
- #eject_with_operation_finish(result : Gio::AsyncResult) : Bool
- #guess_content_type(force_rescan : Bool, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
- #guess_content_type_finish(result : Gio::AsyncResult) : Enumerable(String)
- #guess_content_type_sync(force_rescan : Bool, cancellable : Gio::Cancellable | Nil) : Enumerable(String)
- #icon : Gio::Icon
- #is_shadowed : Bool
- #name : String
- #pre_unmount_signal
- #remount(flags : Gio::MountMountFlags, mount_operation : Gio::MountOperation | Nil, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
- #remount_finish(result : Gio::AsyncResult) : Bool
- #root : Gio::File
- #shadow : Nil
- #sort_key : String | Nil
- #symbolic_icon : Gio::Icon
- #to_unsafe
-
#unmount(flags : Gio::MountUnmountFlags, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
DEPRECATED
-
#unmount_finish(result : Gio::AsyncResult) : Bool
DEPRECATED
- #unmount_with_operation(flags : Gio::MountUnmountFlags, mount_operation : Gio::MountOperation | Nil, cancellable : Gio::Cancellable | Nil, &callback : Gio::AsyncReadyCallback) : Nil
- #unmount_with_operation_finish(result : Gio::AsyncResult) : Bool
- #unmounted_signal
- #unshadow : Nil
- #uuid : String | Nil
- #volume : Gio::Volume | Nil
Constructor Detail
Class Method Detail
Instance Method Detail
DEPRECATED
DEPRECATED