NativeVolumeMonitor

Constructors

this
this(GNativeVolumeMonitor* gNativeVolumeMonitor, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getNativeVolumeMonitorStruct
GNativeVolumeMonitor* getNativeVolumeMonitorStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gNativeVolumeMonitor
GNativeVolumeMonitor* gNativeVolumeMonitor;

the main Gtk struct

Inherited Members

From VolumeMonitor

gVolumeMonitor
GVolumeMonitor* gVolumeMonitor;

the main Gtk struct

getVolumeMonitorStruct
GVolumeMonitor* getVolumeMonitorStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
adoptOrphanMount
VolumeIF adoptOrphanMount(MountIF mount)

This function should be called by any gio.VolumeMonitor implementation when a new GMount object is created that is not associated with a GVolume object. It must be called just before emitting the mount_added signal.

getConnectedDrives
ListG getConnectedDrives()

Gets a list of drives connected to the system.

getMountForUuid
MountIF getMountForUuid(string uuid)

Finds a GMount object by its UUID (see g_mount_get_uuid())

getMounts
ListG getMounts()

Gets a list of the mounts on the system.

getVolumeForUuid
VolumeIF getVolumeForUuid(string uuid)

Finds a GVolume object by its UUID (see g_volume_get_uuid())

getVolumes
ListG getVolumes()

Gets a list of the volumes on the system.

addOnDriveChanged
gulong addOnDriveChanged(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a drive changes.

addOnDriveConnected
gulong addOnDriveConnected(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a drive is connected to the system.

addOnDriveDisconnected
gulong addOnDriveDisconnected(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a drive is disconnected from the system.

addOnDriveEjectButton
gulong addOnDriveEjectButton(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when the eject button is pressed on drive.

addOnDriveStopButton
gulong addOnDriveStopButton(void delegate(DriveIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when the stop button is pressed on drive.

addOnMountAdded
gulong addOnMountAdded(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a mount is added.

addOnMountChanged
gulong addOnMountChanged(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a mount changes.

addOnMountPreUnmount
gulong addOnMountPreUnmount(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

May be emitted when a mount is about to be removed.

addOnMountRemoved
gulong addOnMountRemoved(void delegate(MountIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a mount is removed.

addOnVolumeAdded
gulong addOnVolumeAdded(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a mountable volume is added to the system.

addOnVolumeChanged
gulong addOnVolumeChanged(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when mountable volume is changed.

addOnVolumeRemoved
gulong addOnVolumeRemoved(void delegate(VolumeIF, VolumeMonitor) dlg, ConnectFlags connectFlags)

Emitted when a mountable volume is removed from the system.