NativeVolumeMonitorImpl

class NativeVolumeMonitorImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : NativeVolumeMonitor

The NativeVolumeMonitorImpl type represents a native instance of the abstract NativeVolumeMonitor class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of NativeVolumeMonitor for the provided CPointer.

Properties

Link copied to clipboard
val gioNativeVolumeMonitorPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gioVolumeMonitorPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Emits the "drive-changed" signal. See onDriveChanged.

Link copied to clipboard

Emits the "drive-connected" signal. See onDriveConnected.

Link copied to clipboard

Emits the "drive-disconnected" signal. See onDriveDisconnected.

Link copied to clipboard

Emits the "drive-eject-button" signal. See onDriveEjectButton.

Link copied to clipboard

Emits the "drive-stop-button" signal. See onDriveStopButton.

Link copied to clipboard
fun emitMountAdded(mount: Mount)

Emits the "mount-added" signal. See onMountAdded.

Link copied to clipboard

Emits the "mount-changed" signal. See onMountChanged.

Link copied to clipboard

Emits the "mount-pre-unmount" signal. See onMountPreUnmount.

Link copied to clipboard

Emits the "mount-removed" signal. See onMountRemoved.

Link copied to clipboard
fun emitVolumeAdded(volume: Volume)

Emits the "volume-added" signal. See onVolumeAdded.

Link copied to clipboard

Emits the "volume-changed" signal. See onVolumeChanged.

Link copied to clipboard

Emits the "volume-removed" signal. See onVolumeRemoved.

Link copied to clipboard
open fun getConnectedDrives(): <Error class: unknown class>

Gets a list of drives connected to the system.

Link copied to clipboard
open fun getMountForUuid(uuid: String): Mount?

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

Link copied to clipboard
open fun getMounts(): <Error class: unknown class>

Gets a list of the mounts on the system.

Link copied to clipboard
open fun getVolumeForUuid(uuid: String): Volume?

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

Link copied to clipboard
open fun getVolumes(): <Error class: unknown class>

Gets a list of the volumes on the system.

Link copied to clipboard
fun onDriveChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive changes.

Link copied to clipboard
fun onDriveConnected(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive is connected to the system.

Link copied to clipboard
fun onDriveDisconnected(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when a drive is disconnected from the system.

Link copied to clipboard
fun onDriveEjectButton(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when the eject button is pressed on @drive.

Link copied to clipboard
fun onDriveStopButton(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (drive: Drive) -> Unit): <Error class: unknown class>

Emitted when the stop button is pressed on @drive.

Link copied to clipboard
fun onMountAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount is added.

Link copied to clipboard
fun onMountChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount changes.

Link copied to clipboard
fun onMountPreUnmount(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

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

Link copied to clipboard
fun onMountRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (mount: Mount) -> Unit): <Error class: unknown class>

Emitted when a mount is removed.

Link copied to clipboard
fun onVolumeAdded(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when a mountable volume is added to the system.

Link copied to clipboard
fun onVolumeChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when mountable volume is changed.

Link copied to clipboard
fun onVolumeRemoved(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (volume: Volume) -> Unit): <Error class: unknown class>

Emitted when a mountable volume is removed from the system.