Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

Interface Gio.Mount

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GMount
Interface : Mount
The GMount interface represents user-visible mounts. Note, when
porting from GnomeVFS, GMount is the moral equivalent of GnomeVFSVolume.
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. Might or
might not be related to a volume object.
Unmounting a GMount instance is an asynchronous operation. For
more information about asynchronous operations, see GAsyncReady
and GSimpleAsyncReady. To unmount a GMount instance, first call
g_mount_unmount_with_operation() with (at least) the GMount instance and a
GAsyncReadyCallback. 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 g_mount_unmount_with_operation_finish() with the GMount
and the GAsyncReady data to see if the operation was completed
successfully. If an error is present when g_mount_unmount_with_operation_finish()
is called, then it will be filled with any error information.
Properties
None
Methods / Constructors
Method / Constructor Defined By
Events - usage syntax: this.signals.EVENTNAME.connect( Function )
Event Defined By
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Gio.File
Method
find_enclosing_mount (Cancellable cancellable) : Gio.Mount
Gets a GMount for the GFile.
Gio.File
Method
find_enclosing_mount_finish (AsyncResult res) : Gio.Mount
Finishes an asynchronous find mount request.
Gio.Volume
Method
get_mount () : Gio.Mount
Gets the mount for the volume.
Gio.VolumeMonitor
Signal
mount_added (VolumeMonitor self, Mount mount) : none
Emitted when a mount is added.
Gio.VolumeMonitor
Signal
mount_changed (VolumeMonitor self, Mount mount) : none
Emitted when a mount changes.
Gio.VolumeMonitor
Signal
mount_pre_unmount (VolumeMonitor self, Mount mount) : none
Emitted when a mount is about to be removed.
Gio.VolumeMonitor
Signal
mount_removed (VolumeMonitor self, Mount mount) : none
Emitted when a mount is removed.
Gio.VolumeMonitor
Method
Gio.VolumeMonitor.adopt_orphan_mount (Mount mount) : Gio.Volume
This function should be called by any GVolumeMonitor
implementation when a new GMount object is created that is not
associated with a GVolume object.
Gio.VolumeMonitor
Method
get_mount_for_uuid (String uuid) : Gio.Mount
Finds a GMount object by its UUID (see g_mount_get_uuid())
Free the returned object with g_object_unref().
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:22 GMT+0800 (HKT)