gi-gio-2.0.14: Gio bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gio.Objects.MountOperation

Contents

Description

MountOperation provides a mechanism for interacting with the user. It can be used for authenticating mountable operations, such as loop mounting files, hard drive partitions or server locations. It can also be used to ask the user questions or show a list of applications preventing unmount or eject operations from completing.

Note that MountOperation is used for more than just Mount objects – for example it is also used in driveStart and driveStop.

Users should instantiate a subclass of this that implements all the various callbacks to show the required dialogs, such as GtkMountOperation. If no user interaction is desired (for example when automounting filesystems at login time), usually Nothing can be passed, see each method taking a MountOperation for details.

Synopsis

Exported types

Methods

getAnonymous

mountOperationGetAnonymous Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m Bool

Returns: True if mount operation is anonymous.

Check to see whether the mount operation is being used for an anonymous user.

getChoice

mountOperationGetChoice Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m Int32

Returns: an integer containing an index of the user's choice from the choice's list, or 0.

Gets a choice from the mount operation.

getDomain

mountOperationGetDomain Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m Text

Returns: a string set to the domain.

Gets the domain of the mount operation.

getPassword

mountOperationGetPassword Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m Text

Returns: a string containing the password within op.

Gets a password from the mount operation.

getPasswordSave

mountOperationGetPasswordSave Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m PasswordSave

Returns: a PasswordSave flag.

Gets the state of saving passwords for the mount operation.

getUsername

mountOperationGetUsername Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> m Text

Returns: a string containing the user name.

Get the user name from the mount operation.

new

mountOperationNew Source #

Arguments

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

Returns: a MountOperation.

Creates a new mount operation.

reply

setAnonymous

mountOperationSetAnonymous Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> Bool

anonymous: boolean value.

-> m () 

Sets the mount operation to use an anonymous user if anonymous is True.

setChoice

mountOperationSetChoice Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> Int32

choice: an integer.

-> m () 

Sets a default choice for the mount operation.

setDomain

mountOperationSetDomain Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> Text

domain: the domain to set.

-> m () 

Sets the mount operation's domain.

setPassword

mountOperationSetPassword Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> Text

password: password to set.

-> m () 

Sets the mount operation's password to password.

setPasswordSave

mountOperationSetPasswordSave Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> PasswordSave

save: a set of PasswordSave flags.

-> m () 

Sets the state of saving passwords for the mount operation.

setUsername

mountOperationSetUsername Source #

Arguments

:: (HasCallStack, MonadIO m, IsMountOperation a) 
=> a

op: a MountOperation.

-> Text

username: input username.

-> m () 

Sets the user name within op to username.

Properties

anonymous

choice

domain

password

passwordSave

username

Signals

aborted

askPassword

askQuestion

reply

showProcesses

showUnmountProgress