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.Interfaces.Mount
Contents
- Exported types
- Methods
- canEject
- canUnmount
- eject
- ejectFinish
- ejectWithOperation
- ejectWithOperationFinish
- getDefaultLocation
- getDrive
- getIcon
- getName
- getRoot
- getSortKey
- getSymbolicIcon
- getUuid
- getVolume
- guessContentType
- guessContentTypeFinish
- guessContentTypeSync
- isShadowed
- remount
- remountFinish
- shadow
- unmount
- unmountFinish
- unmountWithOperation
- unmountWithOperationFinish
- unshadow
- Signals
Description
The GMount
interface represents a user-visible mount, such as a mounted
file system.
GMount
is a ‘mounted’ filesystem that you can access. Mounted is in
quotes because it’s not the same as a UNIX mount, it might be a GVFS
mount, but you can still access the files on it if you use GIO.
A GMount
might be associated with a Volume
(such as a USB flash
drive) which hosts it.
Unmounting a GMount
instance is an asynchronous operation. For
more information about asynchronous operations, see AsyncResult
and Task
. To unmount a GMount
instance, first call
mountUnmountWithOperation
with (at least) the GMount
instance and a [typegio
.AsyncReadyCallback]. The callback will be fired
when the operation has resolved (either with success or failure), and a
AsyncResult
structure will be passed to the callback. That
callback should then call mountUnmountWithOperationFinish
with the GMount
and the AsyncResult
data to see if the
operation was completed successfully. If an error
is present when
mountUnmountWithOperationFinish
is called, then it will be
filled with any error information.
Note, when porting from GnomeVFS, GMount
is the
moral equivalent of GnomeVFSVolume
.
Synopsis
- newtype Mount = Mount (ManagedPtr Mount)
- class (GObject o, IsDescendantOf Mount o) => IsMount o
- toMount :: (MonadIO m, IsMount o) => o -> m Mount
- type family ResolveMountMethod (t :: Symbol) o where ...
- data MountCanEjectMethodInfo
- mountCanEject :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountCanUnmountMethodInfo
- mountCanUnmount :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountEjectMethodInfo
- mountEject :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountEjectFinishMethodInfo
- mountEjectFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountEjectWithOperationMethodInfo
- mountEjectWithOperation :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountEjectWithOperationFinishMethodInfo
- mountEjectWithOperationFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountGetDefaultLocationMethodInfo
- mountGetDefaultLocation :: (HasCallStack, MonadIO m, IsMount a) => a -> m File
- data MountGetDriveMethodInfo
- mountGetDrive :: (HasCallStack, MonadIO m, IsMount a) => a -> m (Maybe Drive)
- data MountGetIconMethodInfo
- mountGetIcon :: (HasCallStack, MonadIO m, IsMount a) => a -> m Icon
- data MountGetNameMethodInfo
- mountGetName :: (HasCallStack, MonadIO m, IsMount a) => a -> m Text
- data MountGetRootMethodInfo
- mountGetRoot :: (HasCallStack, MonadIO m, IsMount a) => a -> m File
- data MountGetSortKeyMethodInfo
- mountGetSortKey :: (HasCallStack, MonadIO m, IsMount a) => a -> m (Maybe Text)
- data MountGetSymbolicIconMethodInfo
- mountGetSymbolicIcon :: (HasCallStack, MonadIO m, IsMount a) => a -> m Icon
- data MountGetUuidMethodInfo
- mountGetUuid :: (HasCallStack, MonadIO m, IsMount a) => a -> m (Maybe Text)
- data MountGetVolumeMethodInfo
- mountGetVolume :: (HasCallStack, MonadIO m, IsMount a) => a -> m (Maybe Volume)
- data MountGuessContentTypeMethodInfo
- mountGuessContentType :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountGuessContentTypeFinishMethodInfo
- mountGuessContentTypeFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m [Text]
- data MountGuessContentTypeSyncMethodInfo
- mountGuessContentTypeSync :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> Bool -> Maybe b -> m [Text]
- data MountIsShadowedMethodInfo
- mountIsShadowed :: (HasCallStack, MonadIO m, IsMount a) => a -> m Bool
- data MountRemountMethodInfo
- mountRemount :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountMountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountRemountFinishMethodInfo
- mountRemountFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountShadowMethodInfo
- mountShadow :: (HasCallStack, MonadIO m, IsMount a) => a -> m ()
- data MountUnmountMethodInfo
- mountUnmount :: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) => a -> [MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()
- data MountUnmountFinishMethodInfo
- mountUnmountFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountUnmountWithOperationMethodInfo
- mountUnmountWithOperation :: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => a -> [MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()
- data MountUnmountWithOperationFinishMethodInfo
- mountUnmountWithOperationFinish :: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) => a -> b -> m ()
- data MountUnshadowMethodInfo
- mountUnshadow :: (HasCallStack, MonadIO m, IsMount a) => a -> m ()
- type MountChangedCallback = IO ()
- data MountChangedSignalInfo
- afterMountChanged :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountChangedCallback) -> m SignalHandlerId
- onMountChanged :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountChangedCallback) -> m SignalHandlerId
- type MountPreUnmountCallback = IO ()
- data MountPreUnmountSignalInfo
- afterMountPreUnmount :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountPreUnmountCallback) -> m SignalHandlerId
- onMountPreUnmount :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountPreUnmountCallback) -> m SignalHandlerId
- type MountUnmountedCallback = IO ()
- data MountUnmountedSignalInfo
- afterMountUnmounted :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountUnmountedCallback) -> m SignalHandlerId
- onMountUnmounted :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountUnmountedCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Constructors
Mount (ManagedPtr Mount) |
Instances
class (GObject o, IsDescendantOf Mount o) => IsMount o Source #
Instances
(GObject o, IsDescendantOf Mount o) => IsMount o Source # | |
Defined in GI.Gio.Interfaces.Mount |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, canEject, canUnmount, eject, ejectFinish, ejectWithOperation, ejectWithOperationFinish, forceFloating, freezeNotify, getv, guessContentType, guessContentTypeFinish, guessContentTypeSync, isFloating, isShadowed, notify, notifyByPspec, ref, refSink, remount, remountFinish, runDispose, shadow, stealData, stealQdata, thawNotify, unmount, unmountFinish, unmountWithOperation, unmountWithOperationFinish, unref, unshadow, watchClosure.
Getters
getData, getDefaultLocation, getDrive, getIcon, getName, getProperty, getQdata, getRoot, getSortKey, getSymbolicIcon, getUuid, getVolume.
Setters
type family ResolveMountMethod (t :: Symbol) o where ... Source #
Equations
canEject
data MountCanEjectMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsMount a) => OverloadedMethod MountCanEjectMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountCanEjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Checks if mount
can be ejected.
canUnmount
data MountCanUnmountMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsMount a) => OverloadedMethod MountCanUnmountMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountCanUnmountMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Checks if mount
can be unmounted.
eject
data MountEjectMethodInfo Source #
Instances
(signature ~ ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => OverloadedMethod MountEjectMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountEjectMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 2.22)Use mountEjectWithOperation
instead.
Ejects a mount. This is an asynchronous operation, and is
finished by calling mountEjectFinish
with the mount
and AsyncResult
data returned in the callback
.
ejectFinish
data MountEjectFinishMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountEjectFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountEjectFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 2.22)Use mountEjectWithOperationFinish
instead.
Finishes ejecting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
ejectWithOperation
data MountEjectWithOperationMethodInfo Source #
Instances
(signature ~ ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => OverloadedMethod MountEjectWithOperationMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountEjectWithOperationMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountEjectWithOperation Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Ejects a mount. This is an asynchronous operation, and is
finished by calling mountEjectWithOperationFinish
with the mount
and AsyncResult
data returned in the callback
.
Since: 2.22
ejectWithOperationFinish
data MountEjectWithOperationFinishMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountEjectWithOperationFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountEjectWithOperationFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountEjectWithOperationFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes ejecting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
Since: 2.22
getDefaultLocation
data MountGetDefaultLocationMethodInfo Source #
Instances
(signature ~ m File, MonadIO m, IsMount a) => OverloadedMethod MountGetDefaultLocationMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetDefaultLocationMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountGetDefaultLocation Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m File | Returns: a |
Gets the default location of mount
. The default location of the given
mount
is a path that reflects the main entry point for the user (e.g.
the home directory, or the root of the volume).
getDrive
data MountGetDriveMethodInfo Source #
Instances
(signature ~ m (Maybe Drive), MonadIO m, IsMount a) => OverloadedMethod MountGetDriveMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetDriveMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m (Maybe Drive) | Returns: a |
getIcon
data MountGetIconMethodInfo Source #
Instances
(signature ~ m Icon, MonadIO m, IsMount a) => OverloadedMethod MountGetIconMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Icon | Returns: a |
Gets the icon for mount
.
getName
data MountGetNameMethodInfo Source #
Instances
(signature ~ m Text, MonadIO m, IsMount a) => OverloadedMethod MountGetNameMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetNameMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Text | Returns: the name for the given |
Gets the name of mount
.
getRoot
data MountGetRootMethodInfo Source #
Instances
(signature ~ m File, MonadIO m, IsMount a) => OverloadedMethod MountGetRootMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetRootMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m File | Returns: a |
Gets the root directory on mount
.
getSortKey
data MountGetSortKeyMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsMount a) => OverloadedMethod MountGetSortKeyMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetSortKeyMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m (Maybe Text) | Returns: Sorting key for |
Gets the sort key for mount
, if any.
Since: 2.32
getSymbolicIcon
data MountGetSymbolicIconMethodInfo Source #
Instances
(signature ~ m Icon, MonadIO m, IsMount a) => OverloadedMethod MountGetSymbolicIconMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetSymbolicIconMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Icon | Returns: a |
Gets the symbolic icon for mount
.
Since: 2.34
getUuid
data MountGetUuidMethodInfo Source #
Instances
(signature ~ m (Maybe Text), MonadIO m, IsMount a) => OverloadedMethod MountGetUuidMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetUuidMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m (Maybe Text) | Returns: the UUID for |
Gets the UUID for the mount
. The reference is typically based on
the file system UUID for the mount in question and should be
considered an opaque string. Returns Nothing
if there is no UUID
available.
getVolume
data MountGetVolumeMethodInfo Source #
Instances
(signature ~ m (Maybe Volume), MonadIO m, IsMount a) => OverloadedMethod MountGetVolumeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGetVolumeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m (Maybe Volume) | Returns: a |
Gets the volume for the mount
.
guessContentType
data MountGuessContentTypeMethodInfo Source #
Instances
(signature ~ (Bool -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => OverloadedMethod MountGuessContentTypeMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGuessContentTypeMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountGuessContentType Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Tries to guess the type of content stored on mount
. Returns one or
more textual identifiers of well-known content types (typically
prefixed with "x-content/"), e.g. x-content/image-dcf for camera
memory cards. See the
shared-mime-info
specification for more on x-content types.
This is an asynchronous operation (see
mountGuessContentTypeSync
for the synchronous version), and
is finished by calling mountGuessContentTypeFinish
with the
mount
and AsyncResult
data returned in the callback
.
Since: 2.18
guessContentTypeFinish
data MountGuessContentTypeFinishMethodInfo Source #
Instances
(signature ~ (b -> m [Text]), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountGuessContentTypeFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGuessContentTypeFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountGuessContentTypeFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m [Text] | Returns: a |
Finishes guessing content types of mount
. If any errors occurred
during the operation, error
will be set to contain the errors and
False
will be returned. In particular, you may get an
IOErrorEnumNotSupported
if the mount does not support content
guessing.
Since: 2.18
guessContentTypeSync
data MountGuessContentTypeSyncMethodInfo Source #
Instances
(signature ~ (Bool -> Maybe b -> m [Text]), MonadIO m, IsMount a, IsCancellable b) => OverloadedMethod MountGuessContentTypeSyncMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountGuessContentTypeSyncMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountGuessContentTypeSync Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> Bool |
|
-> Maybe b |
|
-> m [Text] | Returns: a |
Tries to guess the type of content stored on mount
. Returns one or
more textual identifiers of well-known content types (typically
prefixed with "x-content/"), e.g. x-content/image-dcf for camera
memory cards. See the
shared-mime-info
specification for more on x-content types.
This is a synchronous operation and as such may block doing IO;
see mountGuessContentType
for the asynchronous version.
Since: 2.18
isShadowed
data MountIsShadowedMethodInfo Source #
Instances
(signature ~ m Bool, MonadIO m, IsMount a) => OverloadedMethod MountIsShadowedMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountIsShadowedMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m Bool | Returns: |
Determines if mount
is shadowed. Applications or libraries should
avoid displaying mount
in the user interface if it is shadowed.
A mount is said to be shadowed if there exists one or more user
visible objects (currently Mount
objects) with a root that is
inside the root of mount
.
One application of shadow mounts is when exposing a single file
system that is used to address several logical volumes. In this
situation, a VolumeMonitor
implementation would create two
Volume
objects (for example, one for the camera functionality of
the device and one for a SD card reader on the device) with
activation URIs gphoto2://[usb:001,002]/store1/
and gphoto2://[usb:001,002]/store2/
. When the
underlying mount (with root
gphoto2://[usb:001,002]/
) is mounted, said
VolumeMonitor
implementation would create two Mount
objects
(each with their root matching the corresponding volume activation
root) that would shadow the original mount.
The proxy monitor in GVfs 2.26 and later, automatically creates and
manage shadow mounts (and shadows the underlying mount) if the
activation root on a Volume
is set.
Since: 2.20
remount
data MountRemountMethodInfo Source #
Instances
(signature ~ ([MountMountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => OverloadedMethod MountRemountMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountRemountMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountMountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Remounts a mount. This is an asynchronous operation, and is
finished by calling mountRemountFinish
with the mount
and GAsyncResults
data returned in the callback
.
Remounting is useful when some setting affecting the operation of the volume has been changed, as these may need a remount to take affect. While this is semantically equivalent with unmounting and then remounting not all backends might need to actually be unmounted.
remountFinish
data MountRemountFinishMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountRemountFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountRemountFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes remounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
shadow
data MountShadowMethodInfo Source #
Instances
(signature ~ m (), MonadIO m, IsMount a) => OverloadedMethod MountShadowMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountShadowMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m () |
Increments the shadow count on mount
. Usually used by
VolumeMonitor
implementations when creating a shadow mount for
mount
, see mountIsShadowed
for more information. The caller
will need to emit the Mount::changed signal on mount
manually.
Since: 2.20
unmount
data MountUnmountMethodInfo Source #
Instances
(signature ~ ([MountUnmountFlags] -> Maybe b -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsCancellable b) => OverloadedMethod MountUnmountMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountUnmountMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsCancellable b) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Deprecated: (Since version 2.22)Use mountUnmountWithOperation
instead.
Unmounts a mount. This is an asynchronous operation, and is
finished by calling mountUnmountFinish
with the mount
and AsyncResult
data returned in the callback
.
unmountFinish
data MountUnmountFinishMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountUnmountFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountUnmountFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Deprecated: (Since version 2.22)Use mountUnmountWithOperationFinish
instead.
Finishes unmounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
unmountWithOperation
data MountUnmountWithOperationMethodInfo Source #
Instances
(signature ~ ([MountUnmountFlags] -> Maybe b -> Maybe c -> Maybe AsyncReadyCallback -> m ()), MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) => OverloadedMethod MountUnmountWithOperationMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountUnmountWithOperationMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountUnmountWithOperation Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsMountOperation b, IsCancellable c) | |
=> a |
|
-> [MountUnmountFlags] |
|
-> Maybe b |
|
-> Maybe c |
|
-> Maybe AsyncReadyCallback |
|
-> m () |
Unmounts a mount. This is an asynchronous operation, and is
finished by calling mountUnmountWithOperationFinish
with the mount
and AsyncResult
data returned in the callback
.
Since: 2.22
unmountWithOperationFinish
data MountUnmountWithOperationFinishMethodInfo Source #
Instances
(signature ~ (b -> m ()), MonadIO m, IsMount a, IsAsyncResult b) => OverloadedMethod MountUnmountWithOperationFinishMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountUnmountWithOperationFinishMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
mountUnmountWithOperationFinish Source #
Arguments
:: (HasCallStack, MonadIO m, IsMount a, IsAsyncResult b) | |
=> a |
|
-> b |
|
-> m () | (Can throw |
Finishes unmounting a mount. If any errors occurred during the operation,
error
will be set to contain the errors and False
will be returned.
Since: 2.22
unshadow
data MountUnshadowMethodInfo Source #
Instances
(signature ~ m (), MonadIO m, IsMount a) => OverloadedMethod MountUnshadowMethodInfo a signature Source # | |
Defined in GI.Gio.Interfaces.Mount Methods overloadedMethod :: a -> signature # | |
OverloadedMethodInfo MountUnshadowMethodInfo (a :: Type) Source # | |
Defined in GI.Gio.Interfaces.Mount Methods |
Arguments
:: (HasCallStack, MonadIO m, IsMount a) | |
=> a |
|
-> m () |
Decrements the shadow count on mount
. Usually used by
VolumeMonitor
implementations when destroying a shadow mount for
mount
, see mountIsShadowed
for more information. The caller
will need to emit the Mount::changed signal on mount
manually.
Since: 2.20
Signals
changed
type MountChangedCallback = IO () Source #
Emitted when the mount has been changed.
data MountChangedSignalInfo Source #
Instances
SignalInfo MountChangedSignalInfo Source # | |||||
Defined in GI.Gio.Interfaces.Mount Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType MountChangedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
type HaskellCallbackType MountChangedSignalInfo Source # | |||||
Defined in GI.Gio.Interfaces.Mount |
afterMountChanged :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the changed signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
mount #changed 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.
onMountChanged :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountChangedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the changed signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
mount #changed callback
preUnmount
type MountPreUnmountCallback = IO () Source #
This signal may be emitted when the Mount
is about to be
unmounted.
This signal depends on the backend and is only emitted if GIO was used to unmount.
Since: 2.22
data MountPreUnmountSignalInfo Source #
Instances
SignalInfo MountPreUnmountSignalInfo Source # | |||||
Defined in GI.Gio.Interfaces.Mount Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType MountPreUnmountSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
type HaskellCallbackType MountPreUnmountSignalInfo Source # | |||||
afterMountPreUnmount :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountPreUnmountCallback) -> m SignalHandlerId Source #
Connect a signal handler for the preUnmount signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
mount #preUnmount 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.
onMountPreUnmount :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountPreUnmountCallback) -> m SignalHandlerId Source #
Connect a signal handler for the preUnmount signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
mount #preUnmount callback
unmounted
type MountUnmountedCallback = IO () Source #
This signal is emitted when the Mount
have been
unmounted. If the recipient is holding references to the
object they should release them so the object can be
finalized.
data MountUnmountedSignalInfo Source #
Instances
SignalInfo MountUnmountedSignalInfo Source # | |||||
Defined in GI.Gio.Interfaces.Mount Associated Types
Methods connectSignal :: GObject o => o -> (o -> HaskellCallbackType MountUnmountedSignalInfo) -> SignalConnectMode -> Maybe Text -> IO SignalHandlerId # | |||||
type HaskellCallbackType MountUnmountedSignalInfo Source # | |||||
afterMountUnmounted :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountUnmountedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the unmounted signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
mount #unmounted 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.
onMountUnmounted :: (IsMount a, MonadIO m) => a -> ((?self :: a) => MountUnmountedCallback) -> m SignalHandlerId Source #
Connect a signal handler for the unmounted signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
mount #unmounted callback