DriveIfaceProxy

Proxy object for Gio.Drive interface when a GObject has no applicable D binding

class DriveIfaceProxy : IfaceProxy , Drive {}

Mixed In Members

From mixin DriveT!()

canEject
bool canEject()

Checks if a drive can be ejected.

canPollForMedia
bool canPollForMedia()

Checks if a drive can be polled for media changes.

canStart
bool canStart()

Checks if a drive can be started.

canStartDegraded
bool canStartDegraded()

Checks if a drive can be started degraded.

canStop
bool canStop()

Checks if a drive can be stopped.

eject
void eject(gio.types.MountUnmountFlags flags, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously ejects a drive.

ejectFinish
bool ejectFinish(gio.async_result.AsyncResult result)

Finishes ejecting a drive.

ejectWithOperation
void ejectWithOperation(gio.types.MountUnmountFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Ejects a drive. This is an asynchronous operation, and is finished by calling gio.drive.Drive.ejectWithOperationFinish with the drive and #GAsyncResult data returned in the callback.

ejectWithOperationFinish
bool ejectWithOperationFinish(gio.async_result.AsyncResult result)

Finishes ejecting a drive. If any errors occurred during the operation, error will be set to contain the errors and false will be returned.

enumerateIdentifiers
string[] enumerateIdentifiers()

Gets the kinds of identifiers that drive has. Use gio.drive.Drive.getIdentifier to obtain the identifiers themselves.

getIcon
gio.icon.Icon getIcon()

Gets the icon for drive.

getIdentifier
string getIdentifier(string kind)

Gets the identifier of the given kind for drive. The only identifier currently available is G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE.

getName
string getName()

Gets the name of drive.

getSortKey
string getSortKey()

Gets the sort key for drive, if any.

getStartStopType
gio.types.DriveStartStopType getStartStopType()

Gets a hint about how a drive can be started/stopped.

getSymbolicIcon
gio.icon.Icon getSymbolicIcon()

Gets the icon for drive.

getVolumes
gio.volume.Volume[] getVolumes()

Get a list of mountable volumes for drive.

hasMedia
bool hasMedia()

Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see gio.drive.Drive.isMediaCheckAutomatic for more details.

hasVolumes
bool hasVolumes()

Check if drive has any mountable volumes.

isMediaCheckAutomatic
bool isMediaCheckAutomatic()

Checks if drive is capable of automatically detecting media changes.

isMediaRemovable
bool isMediaRemovable()

Checks if the drive supports removable media.

isRemovable
bool isRemovable()

Checks if the #GDrive and/or its media is considered removable by the user. See gio.drive.Drive.isMediaRemovable.

pollForMedia
void pollForMedia(gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously polls drive to see if media has been inserted or removed.

pollForMediaFinish
bool pollForMediaFinish(gio.async_result.AsyncResult result)

Finishes an operation started with gio.drive.Drive.pollForMedia on a drive.

start
void start(gio.types.DriveStartFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously starts a drive.

startFinish
bool startFinish(gio.async_result.AsyncResult result)

Finishes starting a drive.

stop
void stop(gio.types.MountUnmountFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously stops a drive.

stopFinish
bool stopFinish(gio.async_result.AsyncResult result)

Finishes stopping a drive.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.

connectDisconnected
ulong connectDisconnected(T callback, Flag!"After" after)

Connect to Disconnected signal.

connectEjectButton
ulong connectEjectButton(T callback, Flag!"After" after)

Connect to EjectButton signal.

connectStopButton
ulong connectStopButton(T callback, Flag!"After" after)

Connect to StopButton signal.

Inherited Members

From Drive

canEject
bool canEject()

Checks if a drive can be ejected.

canPollForMedia
bool canPollForMedia()

Checks if a drive can be polled for media changes.

canStart
bool canStart()

Checks if a drive can be started.

canStartDegraded
bool canStartDegraded()

Checks if a drive can be started degraded.

canStop
bool canStop()

Checks if a drive can be stopped.

eject
void eject(gio.types.MountUnmountFlags flags, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously ejects a drive.

ejectFinish
bool ejectFinish(gio.async_result.AsyncResult result)

Finishes ejecting a drive.

ejectWithOperation
void ejectWithOperation(gio.types.MountUnmountFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Ejects a drive. This is an asynchronous operation, and is finished by calling gio.drive.Drive.ejectWithOperationFinish with the drive and #GAsyncResult data returned in the callback.

ejectWithOperationFinish
bool ejectWithOperationFinish(gio.async_result.AsyncResult result)

Finishes ejecting a drive. If any errors occurred during the operation, error will be set to contain the errors and false will be returned.

enumerateIdentifiers
string[] enumerateIdentifiers()

Gets the kinds of identifiers that drive has. Use gio.drive.Drive.getIdentifier to obtain the identifiers themselves.

getIcon
gio.icon.Icon getIcon()

Gets the icon for drive.

getIdentifier
string getIdentifier(string kind)

Gets the identifier of the given kind for drive. The only identifier currently available is G_DRIVE_IDENTIFIER_KIND_UNIX_DEVICE.

getName
string getName()

Gets the name of drive.

getSortKey
string getSortKey()

Gets the sort key for drive, if any.

getStartStopType
gio.types.DriveStartStopType getStartStopType()

Gets a hint about how a drive can be started/stopped.

getSymbolicIcon
gio.icon.Icon getSymbolicIcon()

Gets the icon for drive.

getVolumes
gio.volume.Volume[] getVolumes()

Get a list of mountable volumes for drive.

hasMedia
bool hasMedia()

Checks if the drive has media. Note that the OS may not be polling the drive for media changes; see gio.drive.Drive.isMediaCheckAutomatic for more details.

hasVolumes
bool hasVolumes()

Check if drive has any mountable volumes.

isMediaCheckAutomatic
bool isMediaCheckAutomatic()

Checks if drive is capable of automatically detecting media changes.

isMediaRemovable
bool isMediaRemovable()

Checks if the drive supports removable media.

isRemovable
bool isRemovable()

Checks if the #GDrive and/or its media is considered removable by the user. See gio.drive.Drive.isMediaRemovable.

pollForMedia
void pollForMedia(gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously polls drive to see if media has been inserted or removed.

pollForMediaFinish
bool pollForMediaFinish(gio.async_result.AsyncResult result)

Finishes an operation started with gio.drive.Drive.pollForMedia on a drive.

start
void start(gio.types.DriveStartFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously starts a drive.

startFinish
bool startFinish(gio.async_result.AsyncResult result)

Finishes starting a drive.

stop
void stop(gio.types.MountUnmountFlags flags, gio.mount_operation.MountOperation mountOperation, gio.cancellable.Cancellable cancellable, gio.types.AsyncReadyCallback callback)

Asynchronously stops a drive.

stopFinish
bool stopFinish(gio.async_result.AsyncResult result)

Finishes stopping a drive.

connectChanged
ulong connectChanged(T callback, Flag!"After" after)

Connect to Changed signal.

connectDisconnected
ulong connectDisconnected(T callback, Flag!"After" after)

Connect to Disconnected signal.

connectEjectButton
ulong connectEjectButton(T callback, Flag!"After" after)

Connect to EjectButton signal.

connectStopButton
ulong connectStopButton(T callback, Flag!"After" after)

Connect to StopButton signal.