Portability | portable (depends on GHC) |
---|---|
Stability | alpha |
Maintainer | gtk2hs-devel@lists.sourceforge.net |
Safe Haskell | None |
- newtype VolumeMonitor = VolumeMonitor (ForeignPtr VolumeMonitor)
- class GObjectClass o => VolumeMonitorClass o
- volumeMonitorGet :: IO VolumeMonitor
- volumeMonitorGetConnectedDrives :: VolumeMonitorClass monitor => monitor -> IO [Drive]
- volumeMonitorGetVolumes :: VolumeMonitorClass monitor => monitor -> IO [Drive]
- volumeMonitorGetMounts :: VolumeMonitorClass monitor => monitor -> IO [Drive]
- volumeMonitorGetMountForUUID :: VolumeMonitorClass monitor => monitor -> String -> IO (Maybe Mount)
- volumeMonitorGetVolumeForUUID :: VolumeMonitorClass monitor => monitor -> String -> IO (Maybe Volume)
- vmDriveChanged :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())
- vmDriveConnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())
- vmDriveDisconnected :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())
- vmDriveEjectButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())
- vmDriveStopButton :: VolumeMonitorClass monitor => Signal monitor (Drive -> IO ())
- vmMountAdded :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())
- vmMountChanged :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())
- vmMountPreUnmount :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())
- vmMountRemoved :: VolumeMonitorClass monitor => Signal monitor (Mount -> IO ())
- vmVolumeAdded :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())
- vmVolumeChanged :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())
- vmVolumeRemoved :: VolumeMonitorClass monitor => Signal monitor (Volume -> IO ())
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
newtype VolumeMonitor Source
Methods
volumeMonitorGet :: IO VolumeMonitorSource
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.
volumeMonitorGetMountForUUIDSource
:: VolumeMonitorClass monitor | |
=> monitor | |
-> String |
|
-> IO (Maybe Mount) |
Finds a Mount
object by its UUID (see mountGetUuid
volumeMonitorGetVolumeForUUIDSource
:: VolumeMonitorClass monitor | |
=> monitor | |
-> String |
|
-> IO (Maybe Volume) |
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.