file: drive.aus

class: DriveChangedCallback

[466:7] extends: object

Generated low-level callback wrapper for GIR callback changed.

Members

Methods

class: DriveDisconnectedCallback

[536:7] extends: object

Generated low-level callback wrapper for GIR callback disconnected.

Members

Methods

class: DriveMeta

[746:14] static extends: object

Generated metadata helpers for Drive interface surfaces.

Methods

class: DriveEjectbuttonCallback

[606:7] extends: object

Generated low-level callback wrapper for GIR callback eject-button.

Members

Methods

class: Drive

[32:7] extends: object

GDrive represents a piece of hardware connected to the machine. It’s generally only created for removable hardware or hardware with removable media. For example, an optical disc drive, or a USB flash drive. GDrive is a container class for [iface@Gio.Volume] 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, determining 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 potentially 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 [method@Gio.Drive.get_start_stop_type]. For porting from GnomeVFS note that there is no equivalent of GDrive in that API.

Members

Methods

class: DriveStopbuttonCallback

[676:7] extends: object

Generated low-level callback wrapper for GIR callback stop-button.

Members

Methods