Copyright | Will Thompson and Iñaki García Etxebarria |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
GI.Gio.Objects.UnixMountMonitor
Description
Watches for changes to the set of mount entries and mount points in the system.
Connect to the GioUnix.MountMonitor::mounts-changed
signal to be
notified of changes to the GioUnix.MountEntry
list.
Connect to the GioUnix.MountMonitor::mountpoints-changed
signal to
be notified of changes to the GioUnix.MountPoint
list.
Synopsis
- newtype UnixMountMonitor = UnixMountMonitor (ManagedPtr UnixMountMonitor)
- class (GObject o, IsDescendantOf UnixMountMonitor o) => IsUnixMountMonitor o
- toUnixMountMonitor :: (MonadIO m, IsUnixMountMonitor o) => o -> m UnixMountMonitor
- unixMountMonitorGet :: (HasCallStack, MonadIO m) => m UnixMountMonitor
- unixMountMonitorNew :: (HasCallStack, MonadIO m) => m UnixMountMonitor
- unixMountMonitorSetRateLimit :: (HasCallStack, MonadIO m, IsUnixMountMonitor a) => a -> Int32 -> m ()
- type UnixMountMonitorMountpointsChangedCallback = IO ()
- afterUnixMountMonitorMountpointsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountpointsChangedCallback) -> m SignalHandlerId
- onUnixMountMonitorMountpointsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountpointsChangedCallback) -> m SignalHandlerId
- type UnixMountMonitorMountsChangedCallback = IO ()
- afterUnixMountMonitorMountsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountsChangedCallback) -> m SignalHandlerId
- onUnixMountMonitorMountsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountsChangedCallback) -> m SignalHandlerId
Exported types
newtype UnixMountMonitor Source #
Memory-managed wrapper type.
Constructors
UnixMountMonitor (ManagedPtr UnixMountMonitor) |
Instances
class (GObject o, IsDescendantOf UnixMountMonitor o) => IsUnixMountMonitor o Source #
Type class for types which can be safely cast to UnixMountMonitor
, for instance with toUnixMountMonitor
.
Instances
(GObject o, IsDescendantOf UnixMountMonitor o) => IsUnixMountMonitor o Source # | |
Defined in GI.Gio.Objects.UnixMountMonitor |
toUnixMountMonitor :: (MonadIO m, IsUnixMountMonitor o) => o -> m UnixMountMonitor Source #
Cast to UnixMountMonitor
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
get
Arguments
:: (HasCallStack, MonadIO m) | |
=> m UnixMountMonitor | Returns: the |
Gets the GioUnix.MountMonitor
for the current thread-default main
context.
The mount monitor can be used to monitor for changes to the list of mounted filesystems as well as the list of mount points (ie: fstab entries).
You must only call objectUnref
on the return value from
under the same main context as you called this function.
Since: 2.44
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> m UnixMountMonitor | Returns: a |
Deprecated: (Since version 2.44)Use GioUnix.MountMonitor.get()
instead.
Deprecated alias for GioUnix.MountMonitor.get()
.
This function was never a true constructor, which is why it was renamed.
setRateLimit
unixMountMonitorSetRateLimit Source #
Arguments
:: (HasCallStack, MonadIO m, IsUnixMountMonitor a) | |
=> a |
|
-> Int32 |
|
-> m () |
Deprecated: (Since version 2.44)This function does nothing. Don’t call it.
This function does nothing.
Before 2.44, this was a partially-effective way of controlling the
rate at which events would be reported under some uncommon
circumstances. Since mountMonitor
is a singleton, it also meant
that calling this function would have side effects for other users of
the monitor.
Since: 2.18
Signals
mountpointsChanged
type UnixMountMonitorMountpointsChangedCallback = IO () Source #
Emitted when the Unix mount points have changed.
afterUnixMountMonitorMountpointsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountpointsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the mountpointsChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
unixMountMonitor #mountpointsChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onUnixMountMonitorMountpointsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountpointsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the mountpointsChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
unixMountMonitor #mountpointsChanged callback
mountsChanged
type UnixMountMonitorMountsChangedCallback = IO () Source #
Emitted when the Unix mount entries have changed.
afterUnixMountMonitorMountsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the mountsChanged signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
unixMountMonitor #mountsChanged callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onUnixMountMonitorMountsChanged :: (IsUnixMountMonitor a, MonadIO m) => a -> ((?self :: a) => UnixMountMonitorMountsChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the mountsChanged signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
unixMountMonitor #mountsChanged callback