gnomevfs-0.11.0: Binding to the GNOME Virtual File System library.

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

System.Gnome.VFS.VolumeMonitor

Contents

Description

 

Synopsis

Types

An object that monitors volume mounts and unmounts.

Values

volumeMonitor :: VolumeMonitorSource

The global volume monitor object.

Operations

volumeMonitorGetConnectedDrivesSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> IO [Drive]

the drives connected to the machine

Returns a list of all drives connected to the machine.

volumeMonitorGetDriveByIDSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> DriveID

id - the drive ID

-> IO (Maybe Drive)

the requested drive, or Nothing if no drive with that ID could be found

Try to find the Drive with ID id.

volumeMonitorGetMountedVolumesSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> IO [Volume]

the volumes currently mounted on the machine

Returns a list of all volumes currently mounted on the machine.

volumeMonitorGetVolumeByIDSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> VolumeID

id - the volume ID

-> IO (Maybe Volume)

the requested volume, or Nothing if no volume with that ID could be found

Try to find the Volume with ID id.

volumeMonitorGetVolumeForPathSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> FilePath

the path to find the volume for

-> IO (Maybe Volume)

the volume the path resides on, or Nothing if the volume could not be determined

Returns the Volume corresponding to path, or Nothing.

The volume referring to path is found by calling stat on path, and then iterating through the list of volumes that refer to currently mounted local file systems. The first volume in this list maching the path's UNIX device is returned.

If the stat on path was not successful, or no volume matches path, Nothing is returned.

onVolumeMonitorVolumeMountedSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection

afterVolumeMonitorVolumeMountedSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection

onVolumeMonitorVolumePreUnmountSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection

afterVolumeMonitorVolumePreUnmountSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection

onVolumeMonitorVolumeUnmountedSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection

afterVolumeMonitorVolumeUnmountedSource

Arguments

:: VolumeMonitorClass volumeMonitor 
=> volumeMonitor

volumeMonitor - the volume monitor

-> (Volume -> IO ())

handler - the signal handling function

-> IO (ConnectId volumeMonitor)

the identifier for the connection