Mount
Object Hierarchy:
Description:
public interface Mount :
Object
The Mount interface represents user-visible mounts.
Note, when porting from GnomeVFS, Mount is the moral equivalent of GnomeVFSVolume
.
Mount 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. Might or might not be related to a volume
object.
Unmounting a Mount instance is an asynchronous operation. For more information about asynchronous
operations, see AsyncResult and Task. To
unmount a Mount instance, first call
unmount_with_operation with (at least) the
Mount instance and a AsyncReadyCallback. The
callback will be fired when the operation has resolved (either with success or failure), and a GAsyncReady
structure will be
passed to the callback. That callback should then call
unmount_with_operation.end with the Mount and the GAsyncReady
data to see if the
operation was completed successfully. If an error
is present when
unmount_with_operation.end is called, then it will be filled
with any error information.
Content:
Methods:
- public abstract bool can_eject ()
Checks if this can be eject.
- public abstract bool can_unmount ()
Checks if this can be mounted.
- public abstract async bool eject (MountUnmountFlags flags, Cancellable? cancellable = null) throws Error
Ejects a mount.
- public abstract async bool eject_with_operation (MountUnmountFlags flags, MountOperation? mount_operation, Cancellable? cancellable = null) throws Error
Ejects a mount.
- public abstract File get_default_location ()
Gets the default location of this.
- public abstract Drive get_drive ()
Gets the drive for the this.
- public abstract Icon get_icon ()
Gets the icon for this.
- public abstract string get_name ()
Gets the name of this.
- public abstract File get_root ()
Gets the root directory on this.
- public virtual unowned string get_sort_key ()
Gets the sort key for this, if any.
- public abstract Icon get_symbolic_icon ()
Gets the symbolic icon for this.
- public abstract string get_uuid ()
Gets the UUID for the this.
- public abstract Volume get_volume ()
Gets the volume for the this.
- public abstract async string[] guess_content_type (bool force_rescan, Cancellable? cancellable = null) throws Error
Tries to guess the type of content stored on
this.
- public abstract string[] guess_content_type_sync (bool force_rescan, Cancellable? cancellable = null) throws Error
Tries to guess the type of content stored on
this.
- public bool is_shadowed ()
Determines if this is shadowed.
- public abstract async bool remount (MountMountFlags flags, MountOperation? mount_operation, Cancellable? cancellable = null) throws Error
Remounts a mount.
- public void shadow ()
Increments the shadow count on this.
- public abstract async bool unmount (MountUnmountFlags flags, Cancellable? cancellable = null) throws Error
Unmounts a mount.
- public abstract async bool unmount_with_operation (MountUnmountFlags flags, MountOperation? mount_operation, Cancellable? cancellable = null) throws Error
Unmounts a mount.
- public void unshadow ()
Decrements the shadow count on this.
Signals:
- public virtual signal void changed ()
Emitted when the mount has been changed.
- public virtual signal void pre_unmount ()
This signal is emitted when the Mount
is about to be unmounted.
- public virtual signal void unmounted ()
This signal is emitted when the Mount
have been unmounted.
Inherited Members:
All known members inherited from class GLib.Object