gi-gio
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

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

Exported types

newtype UnixMountMonitor Source #

Memory-managed wrapper type.

Instances

Instances details
Eq UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

GObject UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

ManagedPtrNewtype UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

TypedObject UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

Methods

glibType :: IO GType #

HasParentTypes UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

HasAttributeList UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

(info ~ ResolveUnixMountMonitorMethod t UnixMountMonitor, OverloadedMethod info UnixMountMonitor p, HasField t UnixMountMonitor p) => HasField (t :: Symbol) UnixMountMonitor (p :: Type) Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

Methods

getField :: UnixMountMonitor -> p #

(info ~ ResolveUnixMountMonitorMethod t UnixMountMonitor, OverloadedMethodInfo info UnixMountMonitor) => IsLabel t (MethodProxy info UnixMountMonitor) Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

(info ~ ResolveUnixMountMonitorMethod t UnixMountMonitor, OverloadedMethod info UnixMountMonitor p) => IsLabel t (UnixMountMonitor -> p) Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

IsGValue (Maybe UnixMountMonitor) Source #

Convert UnixMountMonitor to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

type AttributeList UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

type ParentTypes UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

type SignalList UnixMountMonitor Source # 
Instance details

Defined in GI.Gio.Objects.UnixMountMonitor

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

Instances details
(GObject o, IsDescendantOf UnixMountMonitor o) => IsUnixMountMonitor o Source # 
Instance details

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

type family ResolveUnixMountMonitorMethod (t :: Symbol) o where ... Source #

Equations

ResolveUnixMountMonitorMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveUnixMountMonitorMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveUnixMountMonitorMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveUnixMountMonitorMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveUnixMountMonitorMethod "getv" o = ObjectGetvMethodInfo 
ResolveUnixMountMonitorMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveUnixMountMonitorMethod "notify" o = ObjectNotifyMethodInfo 
ResolveUnixMountMonitorMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveUnixMountMonitorMethod "ref" o = ObjectRefMethodInfo 
ResolveUnixMountMonitorMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveUnixMountMonitorMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveUnixMountMonitorMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveUnixMountMonitorMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveUnixMountMonitorMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveUnixMountMonitorMethod "unref" o = ObjectUnrefMethodInfo 
ResolveUnixMountMonitorMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveUnixMountMonitorMethod "getData" o = ObjectGetDataMethodInfo 
ResolveUnixMountMonitorMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveUnixMountMonitorMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveUnixMountMonitorMethod "setData" o = ObjectSetDataMethodInfo 
ResolveUnixMountMonitorMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveUnixMountMonitorMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveUnixMountMonitorMethod "setRateLimit" o = UnixMountMonitorSetRateLimitMethodInfo 
ResolveUnixMountMonitorMethod l o = MethodResolutionFailed l o :: Type 

get

unixMountMonitorGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m UnixMountMonitor

Returns: the GioUnix.MountMonitor

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

unixMountMonitorNew Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> m UnixMountMonitor

Returns: a GioUnix.MountMonitor

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

mountMonitor: a GioUnix.MountMonitor

-> Int32

limitMsec: a integer with the limit (in milliseconds) to poll for changes

-> 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