Gtk2HsContentsIndex
System.Gnome.VFS.VolumeMonitor
Maintainergtk2hs-devel@lists.sourceforge.net Stability : alpha Portability : portable (depends on GHC)
Contents
Types
Values
Operations
Description
Synopsis
data VolumeMonitor
class GObjectClass o => VolumeMonitorClass o
volumeMonitor :: VolumeMonitor
volumeMonitorGetConnectedDrives :: VolumeMonitorClass volumeMonitor => volumeMonitor -> IO [Drive]
volumeMonitorGetDriveByID :: VolumeMonitorClass volumeMonitor => volumeMonitor -> DriveID -> IO (Maybe Drive)
volumeMonitorGetMountedVolumes :: VolumeMonitorClass volumeMonitor => volumeMonitor -> IO [Volume]
volumeMonitorGetVolumeByID :: VolumeMonitorClass volumeMonitor => volumeMonitor -> VolumeID -> IO (Maybe Volume)
volumeMonitorGetVolumeForPath :: VolumeMonitorClass volumeMonitor => volumeMonitor -> FilePath -> IO (Maybe Volume)
onVolumeMonitorVolumeMounted :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumeMounted :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
onVolumeMonitorVolumePreUnmount :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumePreUnmount :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
onVolumeMonitorVolumeUnmounted :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumeUnmounted :: VolumeMonitorClass volumeMonitor => volumeMonitor -> (Volume -> IO ()) -> IO (ConnectId volumeMonitor)
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
=> volumeMonitorthe drives connected to the machine
-> IO [Drive]
Returns a list of all drives connected to the machine.
volumeMonitorGetDriveByID
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorid - the drive ID
-> DriveIDthe requested drive, or Nothing if no drive with that ID could be found
-> IO (Maybe Drive)
Try to find the Drive with ID id.
volumeMonitorGetMountedVolumes
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorthe volumes currently mounted on the machine
-> IO [Volume]
Returns a list of all volumes currently mounted on the machine.
volumeMonitorGetVolumeByID
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorid - the volume ID
-> VolumeIDthe requested volume, or Nothing if no volume with that ID could be found
-> IO (Maybe Volume)
Try to find the Volume with ID id.
volumeMonitorGetVolumeForPath
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorthe path to find the volume for
-> FilePaththe 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
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumeMounted
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
onVolumeMonitorVolumePreUnmount
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumePreUnmount
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
onVolumeMonitorVolumeUnmounted
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
afterVolumeMonitorVolumeUnmounted
:: VolumeMonitorClass volumeMonitor
=> volumeMonitorhandler - the signal handling function
-> Volume -> IO ()the identifier for the connection
-> IO (ConnectId volumeMonitor)
Produced by Haddock version 2.6.0