|
System.Gnome.VFS.VolumeMonitor | Maintainer | gtk2hs-devel@lists.sourceforge.net
Stability : alpha
Portability : portable (depends on GHC) |
|
|
|
|
|
Description |
|
|
Synopsis |
|
|
|
|
Types
|
|
An object that monitors volume mounts and unmounts.
|
|
data VolumeMonitor |
|
class GObjectClass o => VolumeMonitorClass o |
|
|
Values
|
|
volumeMonitor :: VolumeMonitor |
The global volume monitor object.
|
|
Operations
|
|
volumeMonitorGetConnectedDrives |
:: VolumeMonitorClass volumeMonitor | | => volumeMonitor | the drives connected to the machine
| -> IO [Drive] | | Returns a list of all drives connected to the machine.
|
|
|
volumeMonitorGetDriveByID |
|
|
volumeMonitorGetMountedVolumes |
:: VolumeMonitorClass volumeMonitor | | => volumeMonitor | the volumes
currently mounted
on the machine
| -> IO [Volume] | | Returns a list of all volumes currently mounted on the machine.
|
|
|
volumeMonitorGetVolumeByID |
|
|
volumeMonitorGetVolumeForPath |
:: VolumeMonitorClass volumeMonitor | | => volumeMonitor | the path to
find the volume
for
| -> FilePath | the volume the
path resides
on, or
Nothing if
the volume
could not be
determined
| -> IO (Maybe Volume) | | 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.
|
|
|
onVolumeMonitorVolumeMounted |
|
|
afterVolumeMonitorVolumeMounted |
|
|
onVolumeMonitorVolumePreUnmount |
|
|
afterVolumeMonitorVolumePreUnmount |
|
|
onVolumeMonitorVolumeUnmounted |
|
|
afterVolumeMonitorVolumeUnmounted |
|
|
Produced by Haddock version 2.6.0 |