Back to Seed Clases

Gio


Classes

Interfaces

Structs

Unions

Enums

Interface Gio.Drive

Import line: Gio = imports.gi.Gio;
GIR File: Gio-2.0.gir
C documentation: GDrive
Interface : Drive
GDrive - this represent a piece of hardware connected to the machine.
It's generally only created for removable hardware or hardware with
removable media.
GDrive is a container class for GVolume objects that stem from
the same piece of media. As such, GDrive abstracts a drive with
(or without) removable media and provides operations for querying
whether media is available, determing whether media change is
automatically detected and ejecting the media.
If the GDrive reports that media isn't automatically detected, one
can poll for media; typically one should not do this periodically
as a poll for media operation is potententially expensive and may
spin up the drive creating noise.
GDrive supports starting and stopping drives with authentication
support for the former. This can be used to support a diverse set
of use cases including connecting/disconnecting iSCSI devices,
powering down external disk enclosures and starting/stopping
multi-disk devices such as RAID devices. Note that the actual
semantics and side-effects of starting/stopping a GDrive may vary
according to implementation. To choose the correct verbs in e.g. a
file manager, use g_drive_get_start_stop_type().
For porting from GnomeVFS note that there is no equivalent of
GDrive in that API.
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.Mount
Method
get_drive () : Gio.Drive
Gets the drive for the mount.
Gio.Volume
Method
get_drive () : Gio.Drive
Gets the drive for the volume.
Gio.VolumeMonitor
Signal
drive_changed (VolumeMonitor self, Drive drive) : none
Emitted when a drive changes.
Gio.VolumeMonitor
Signal
drive_connected (VolumeMonitor self, Drive drive) : none
Emitted when a drive is connected to the system.
Gio.VolumeMonitor
Signal
drive_disconnected (VolumeMonitor self, Drive drive) : none
Emitted when a drive is disconnected from the system.
Gio.VolumeMonitor
Signal
drive_eject_button (VolumeMonitor self, Drive drive) : none
Emitted when the eject button is pressed on drive.
Gio.VolumeMonitor
Signal
drive_stop_button (VolumeMonitor self, Drive drive) : none
Emitted when the stop button is pressed on drive.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:11:21 GMT+0800 (HKT)