gio-0.13.1.1: Binding to GIO

Maintainergtk2hs-devel@lists.sourceforge.net
Stabilityalpha
Portabilityportable (depends on GHC)
Safe HaskellNone
LanguageHaskell98

System.GIO.Volumes.VolumeMonitor

Contents

Description

 

Synopsis

Details

VolumeMonitor is for listing the user interesting devices and volumes on the computer. In other words, what a file selector or file manager would show in a sidebar.

VolumeMonitor is not thread-default-context aware, and so should not be used other than from the main thread, with no thread-default-context active.

Types

Methods

volumeMonitorGet :: IO VolumeMonitor Source

Gets the volume monitor used by gio.

volumeMonitorGetConnectedDrives :: VolumeMonitorClass monitor => monitor -> IO [Drive] Source

Gets a list of drives connected to the system.

volumeMonitorGetVolumes :: VolumeMonitorClass monitor => monitor -> IO [Drive] Source

Gets a list of the volumes on the system.

volumeMonitorGetMounts :: VolumeMonitorClass monitor => monitor -> IO [Drive] Source

Gets a list of the mounts on the system.

volumeMonitorGetMountForUUID Source

Arguments

:: (VolumeMonitorClass monitor, GlibString string) 
=> monitor 
-> string

uuid the UUID to look for

-> IO (Maybe Mount)

returns a Mount or Nothing if no such mount is available.

Finds a Mount object by its UUID (see mountGetUuid

volumeMonitorGetVolumeForUUID Source

Arguments

:: (VolumeMonitorClass monitor, GlibString string) 
=> monitor 
-> string

uuid the UUID to look for

-> IO (Maybe Volume)

returns a Volume or Nothing if no such volume is available.

Finds a Volume object by its UUID (see volumeGetUuid)

Signals

vmDriveChanged :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ()) Source

Emitted when a drive changes.

vmDriveConnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ()) Source

Emitted when a drive changes.

vmDriveDisconnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ()) Source

Emitted when a drive changes.

vmDriveEjectButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ()) Source

Emitted when the eject button is pressed on drive.

vmDriveStopButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ()) Source

Emitted when the stop button is pressed on drive.

vmMountAdded :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ()) Source

Emitted when a mount is added.

vmMountChanged :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ()) Source

Emitted when a mount is changed.

vmMountPreUnmount :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ()) Source

Emitted when a mount is about to be removed.

vmMountRemoved :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ()) Source

Emitted when a mount is removed.

vmVolumeAdded :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ()) Source

Emitted when a volume is added.

vmVolumeChanged :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ()) Source

Emitted when a volume is changed.

vmVolumeRemoved :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ()) Source

Emitted when a volume is removed.