Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- driveCanEject
- driveCanPollForMedia
- driveCanStart
- driveCanStartDegraded
- driveCanStop
- driveEject
- driveEjectFinish
- driveEjectWithOperation
- driveEjectWithOperationFinish
- driveEnumerateIdentifiers
- driveGetIcon
- driveGetIdentifier
- driveGetName
- driveGetSortKey
- driveGetStartStopType
- driveGetSymbolicIcon
- driveGetVolumes
- driveHasMedia
- driveHasVolumes
- driveIsMediaCheckAutomatic
- driveIsMediaRemovable
- drivePollForMedia
- drivePollForMediaFinish
- driveStart
- driveStartFinish
- driveStop
- driveStopFinish
- Signals
- newtype Drive = Drive (ForeignPtr Drive)
- noDrive :: Maybe Drive
- class GObject o => DriveK o
- toDrive :: DriveK o => o -> IO Drive
- data DriveCanEjectMethodInfo
- driveCanEject :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveCanPollForMediaMethodInfo
- driveCanPollForMedia :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveCanStartMethodInfo
- driveCanStart :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveCanStartDegradedMethodInfo
- driveCanStartDegraded :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveCanStopMethodInfo
- driveCanStop :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveEjectMethodInfo
- driveEject :: (MonadIO m, DriveK a, CancellableK b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DriveEjectFinishMethodInfo
- driveEjectFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m ()
- data DriveEjectWithOperationMethodInfo
- driveEjectWithOperation :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveEjectWithOperationFinishMethodInfo
- driveEjectWithOperationFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m ()
- data DriveEnumerateIdentifiersMethodInfo
- driveEnumerateIdentifiers :: (MonadIO m, DriveK a) => a -> m [Text]
- data DriveGetIconMethodInfo
- driveGetIcon :: (MonadIO m, DriveK a) => a -> m Icon
- data DriveGetIdentifierMethodInfo
- driveGetIdentifier :: (MonadIO m, DriveK a) => a -> Text -> m Text
- data DriveGetNameMethodInfo
- driveGetName :: (MonadIO m, DriveK a) => a -> m Text
- data DriveGetSortKeyMethodInfo
- driveGetSortKey :: (MonadIO m, DriveK a) => a -> m Text
- data DriveGetStartStopTypeMethodInfo
- driveGetStartStopType :: (MonadIO m, DriveK a) => a -> m DriveStartStopType
- data DriveGetSymbolicIconMethodInfo
- driveGetSymbolicIcon :: (MonadIO m, DriveK a) => a -> m Icon
- data DriveGetVolumesMethodInfo
- driveGetVolumes :: (MonadIO m, DriveK a) => a -> m [Volume]
- data DriveHasMediaMethodInfo
- driveHasMedia :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveHasVolumesMethodInfo
- driveHasVolumes :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveIsMediaCheckAutomaticMethodInfo
- driveIsMediaCheckAutomatic :: (MonadIO m, DriveK a) => a -> m Bool
- data DriveIsMediaRemovableMethodInfo
- driveIsMediaRemovable :: (MonadIO m, DriveK a) => a -> m Bool
- data DrivePollForMediaMethodInfo
- drivePollForMedia :: (MonadIO m, DriveK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data DrivePollForMediaFinishMethodInfo
- drivePollForMediaFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m ()
- data DriveStartMethodInfo
- driveStart :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [DriveStartFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveStartFinishMethodInfo
- driveStartFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m ()
- data DriveStopMethodInfo
- driveStop :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data DriveStopFinishMethodInfo
- driveStopFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m ()
- type DriveChangedCallback = IO ()
- type DriveChangedCallbackC = Ptr () -> Ptr () -> IO ()
- data DriveChangedSignalInfo
- afterDriveChanged :: (GObject a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId
- driveChangedCallbackWrapper :: DriveChangedCallback -> Ptr () -> Ptr () -> IO ()
- driveChangedClosure :: DriveChangedCallback -> IO Closure
- mkDriveChangedCallback :: DriveChangedCallbackC -> IO (FunPtr DriveChangedCallbackC)
- noDriveChangedCallback :: Maybe DriveChangedCallback
- onDriveChanged :: (GObject a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId
- type DriveDisconnectedCallback = IO ()
- type DriveDisconnectedCallbackC = Ptr () -> Ptr () -> IO ()
- data DriveDisconnectedSignalInfo
- afterDriveDisconnected :: (GObject a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId
- driveDisconnectedCallbackWrapper :: DriveDisconnectedCallback -> Ptr () -> Ptr () -> IO ()
- driveDisconnectedClosure :: DriveDisconnectedCallback -> IO Closure
- mkDriveDisconnectedCallback :: DriveDisconnectedCallbackC -> IO (FunPtr DriveDisconnectedCallbackC)
- noDriveDisconnectedCallback :: Maybe DriveDisconnectedCallback
- onDriveDisconnected :: (GObject a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId
- type DriveEjectButtonCallback = IO ()
- type DriveEjectButtonCallbackC = Ptr () -> Ptr () -> IO ()
- data DriveEjectButtonSignalInfo
- afterDriveEjectButton :: (GObject a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId
- driveEjectButtonCallbackWrapper :: DriveEjectButtonCallback -> Ptr () -> Ptr () -> IO ()
- driveEjectButtonClosure :: DriveEjectButtonCallback -> IO Closure
- mkDriveEjectButtonCallback :: DriveEjectButtonCallbackC -> IO (FunPtr DriveEjectButtonCallbackC)
- noDriveEjectButtonCallback :: Maybe DriveEjectButtonCallback
- onDriveEjectButton :: (GObject a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId
- type DriveStopButtonCallback = IO ()
- type DriveStopButtonCallbackC = Ptr () -> Ptr () -> IO ()
- data DriveStopButtonSignalInfo
- afterDriveStopButton :: (GObject a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId
- driveStopButtonCallbackWrapper :: DriveStopButtonCallback -> Ptr () -> Ptr () -> IO ()
- driveStopButtonClosure :: DriveStopButtonCallback -> IO Closure
- mkDriveStopButtonCallback :: DriveStopButtonCallbackC -> IO (FunPtr DriveStopButtonCallbackC)
- noDriveStopButtonCallback :: Maybe DriveStopButtonCallback
- onDriveStopButton :: (GObject a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId
Exported types
GObject Drive | |
((~) * info (ResolveDriveMethod t Drive), MethodInfo * info Drive p) => IsLabelProxy t (Drive -> p) | |
type ParentTypes Drive | |
type AttributeList Drive | |
type SignalList Drive |
Methods
driveCanEject
data DriveCanEjectMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveCanEjectMethodInfo a signature |
driveCanEject :: (MonadIO m, DriveK a) => a -> m Bool Source
driveCanPollForMedia
data DriveCanPollForMediaMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveCanPollForMediaMethodInfo a signature |
driveCanPollForMedia :: (MonadIO m, DriveK a) => a -> m Bool Source
driveCanStart
data DriveCanStartMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveCanStartMethodInfo a signature |
driveCanStart :: (MonadIO m, DriveK a) => a -> m Bool Source
driveCanStartDegraded
data DriveCanStartDegradedMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveCanStartDegradedMethodInfo a signature |
driveCanStartDegraded :: (MonadIO m, DriveK a) => a -> m Bool Source
driveCanStop
data DriveCanStopMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveCanStopMethodInfo a signature |
driveCanStop :: (MonadIO m, DriveK a) => a -> m Bool Source
driveEject
data DriveEjectMethodInfo Source
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, DriveK a, CancellableK b) => MethodInfo * DriveEjectMethodInfo a signature |
driveEject :: (MonadIO m, DriveK a, CancellableK b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m () Source
Deprecated: (Since version 2.22)Use g_drive_eject_with_operation() instead.
driveEjectFinish
data DriveEjectFinishMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, DriveK a, AsyncResultK b) => MethodInfo * DriveEjectFinishMethodInfo a signature |
driveEjectFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m () Source
Deprecated: (Since version 2.22)Use g_drive_eject_with_operation_finish() instead.
driveEjectWithOperation
data DriveEjectWithOperationMethodInfo Source
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, DriveK a, MountOperationK b, CancellableK c) => MethodInfo * DriveEjectWithOperationMethodInfo a signature |
driveEjectWithOperation :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m () Source
driveEjectWithOperationFinish
data DriveEjectWithOperationFinishMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, DriveK a, AsyncResultK b) => MethodInfo * DriveEjectWithOperationFinishMethodInfo a signature |
driveEjectWithOperationFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m () Source
driveEnumerateIdentifiers
data DriveEnumerateIdentifiersMethodInfo Source
((~) * signature (m [Text]), MonadIO m, DriveK a) => MethodInfo * DriveEnumerateIdentifiersMethodInfo a signature |
driveEnumerateIdentifiers :: (MonadIO m, DriveK a) => a -> m [Text] Source
driveGetIcon
data DriveGetIconMethodInfo Source
((~) * signature (m Icon), MonadIO m, DriveK a) => MethodInfo * DriveGetIconMethodInfo a signature |
driveGetIcon :: (MonadIO m, DriveK a) => a -> m Icon Source
driveGetIdentifier
data DriveGetIdentifierMethodInfo Source
((~) * signature (Text -> m Text), MonadIO m, DriveK a) => MethodInfo * DriveGetIdentifierMethodInfo a signature |
driveGetName
data DriveGetNameMethodInfo Source
((~) * signature (m Text), MonadIO m, DriveK a) => MethodInfo * DriveGetNameMethodInfo a signature |
driveGetName :: (MonadIO m, DriveK a) => a -> m Text Source
driveGetSortKey
data DriveGetSortKeyMethodInfo Source
((~) * signature (m Text), MonadIO m, DriveK a) => MethodInfo * DriveGetSortKeyMethodInfo a signature |
driveGetSortKey :: (MonadIO m, DriveK a) => a -> m Text Source
driveGetStartStopType
data DriveGetStartStopTypeMethodInfo Source
((~) * signature (m DriveStartStopType), MonadIO m, DriveK a) => MethodInfo * DriveGetStartStopTypeMethodInfo a signature |
driveGetStartStopType :: (MonadIO m, DriveK a) => a -> m DriveStartStopType Source
driveGetSymbolicIcon
data DriveGetSymbolicIconMethodInfo Source
((~) * signature (m Icon), MonadIO m, DriveK a) => MethodInfo * DriveGetSymbolicIconMethodInfo a signature |
driveGetSymbolicIcon :: (MonadIO m, DriveK a) => a -> m Icon Source
driveGetVolumes
data DriveGetVolumesMethodInfo Source
((~) * signature (m [Volume]), MonadIO m, DriveK a) => MethodInfo * DriveGetVolumesMethodInfo a signature |
driveGetVolumes :: (MonadIO m, DriveK a) => a -> m [Volume] Source
driveHasMedia
data DriveHasMediaMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveHasMediaMethodInfo a signature |
driveHasMedia :: (MonadIO m, DriveK a) => a -> m Bool Source
driveHasVolumes
data DriveHasVolumesMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveHasVolumesMethodInfo a signature |
driveHasVolumes :: (MonadIO m, DriveK a) => a -> m Bool Source
driveIsMediaCheckAutomatic
data DriveIsMediaCheckAutomaticMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveIsMediaCheckAutomaticMethodInfo a signature |
driveIsMediaCheckAutomatic :: (MonadIO m, DriveK a) => a -> m Bool Source
driveIsMediaRemovable
data DriveIsMediaRemovableMethodInfo Source
((~) * signature (m Bool), MonadIO m, DriveK a) => MethodInfo * DriveIsMediaRemovableMethodInfo a signature |
driveIsMediaRemovable :: (MonadIO m, DriveK a) => a -> m Bool Source
drivePollForMedia
data DrivePollForMediaMethodInfo Source
((~) * signature (Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, DriveK a, CancellableK b) => MethodInfo * DrivePollForMediaMethodInfo a signature |
drivePollForMedia :: (MonadIO m, DriveK a, CancellableK b) => a -> Maybe b -> Maybe AsyncReadyCallback -> m () Source
drivePollForMediaFinish
data DrivePollForMediaFinishMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, DriveK a, AsyncResultK b) => MethodInfo * DrivePollForMediaFinishMethodInfo a signature |
drivePollForMediaFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m () Source
driveStart
data DriveStartMethodInfo Source
((~) * signature ([DriveStartFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, DriveK a, MountOperationK b, CancellableK c) => MethodInfo * DriveStartMethodInfo a signature |
driveStart :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [DriveStartFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m () Source
driveStartFinish
data DriveStartFinishMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, DriveK a, AsyncResultK b) => MethodInfo * DriveStartFinishMethodInfo a signature |
driveStartFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m () Source
driveStop
data DriveStopMethodInfo Source
((~) * signature ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, DriveK a, MountOperationK b, CancellableK c) => MethodInfo * DriveStopMethodInfo a signature |
driveStop :: (MonadIO m, DriveK a, MountOperationK b, CancellableK c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m () Source
driveStopFinish
data DriveStopFinishMethodInfo Source
((~) * signature (b -> m ()), MonadIO m, DriveK a, AsyncResultK b) => MethodInfo * DriveStopFinishMethodInfo a signature |
driveStopFinish :: (MonadIO m, DriveK a, AsyncResultK b) => a -> b -> m () Source
Signals
Changed
type DriveChangedCallback = IO () Source
type DriveChangedCallbackC = Ptr () -> Ptr () -> IO () Source
afterDriveChanged :: (GObject a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId Source
driveChangedCallbackWrapper :: DriveChangedCallback -> Ptr () -> Ptr () -> IO () Source
onDriveChanged :: (GObject a, MonadIO m) => a -> DriveChangedCallback -> m SignalHandlerId Source
Disconnected
type DriveDisconnectedCallback = IO () Source
type DriveDisconnectedCallbackC = Ptr () -> Ptr () -> IO () Source
afterDriveDisconnected :: (GObject a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId Source
driveDisconnectedCallbackWrapper :: DriveDisconnectedCallback -> Ptr () -> Ptr () -> IO () Source
mkDriveDisconnectedCallback :: DriveDisconnectedCallbackC -> IO (FunPtr DriveDisconnectedCallbackC) Source
onDriveDisconnected :: (GObject a, MonadIO m) => a -> DriveDisconnectedCallback -> m SignalHandlerId Source
EjectButton
type DriveEjectButtonCallback = IO () Source
type DriveEjectButtonCallbackC = Ptr () -> Ptr () -> IO () Source
afterDriveEjectButton :: (GObject a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId Source
driveEjectButtonCallbackWrapper :: DriveEjectButtonCallback -> Ptr () -> Ptr () -> IO () Source
mkDriveEjectButtonCallback :: DriveEjectButtonCallbackC -> IO (FunPtr DriveEjectButtonCallbackC) Source
onDriveEjectButton :: (GObject a, MonadIO m) => a -> DriveEjectButtonCallback -> m SignalHandlerId Source
StopButton
type DriveStopButtonCallback = IO () Source
type DriveStopButtonCallbackC = Ptr () -> Ptr () -> IO () Source
afterDriveStopButton :: (GObject a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId Source
driveStopButtonCallbackWrapper :: DriveStopButtonCallback -> Ptr () -> Ptr () -> IO () Source
mkDriveStopButtonCallback :: DriveStopButtonCallbackC -> IO (FunPtr DriveStopButtonCallbackC) Source
onDriveStopButton :: (GObject a, MonadIO m) => a -> DriveStopButtonCallback -> m SignalHandlerId Source