gi-gio-2.0.12: 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

data MountOperationAnonymousPropertyInfo Source #

Instances

AttrInfo MountOperationAnonymousPropertyInfo Source # 
type AttrOrigin MountOperationAnonymousPropertyInfo Source # 
type AttrLabel MountOperationAnonymousPropertyInfo Source # 
type AttrGetType MountOperationAnonymousPropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationAnonymousPropertyInfo Source # 
type AttrSetTypeConstraint MountOperationAnonymousPropertyInfo Source # 
type AttrAllowedOps MountOperationAnonymousPropertyInfo Source # 

choice

data MountOperationChoicePropertyInfo Source #

Instances

AttrInfo MountOperationChoicePropertyInfo Source # 
type AttrOrigin MountOperationChoicePropertyInfo Source # 
type AttrLabel MountOperationChoicePropertyInfo Source # 
type AttrGetType MountOperationChoicePropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationChoicePropertyInfo Source # 
type AttrSetTypeConstraint MountOperationChoicePropertyInfo Source # 
type AttrAllowedOps MountOperationChoicePropertyInfo Source # 

domain

data MountOperationDomainPropertyInfo Source #

Instances

AttrInfo MountOperationDomainPropertyInfo Source # 
type AttrOrigin MountOperationDomainPropertyInfo Source # 
type AttrLabel MountOperationDomainPropertyInfo Source # 
type AttrGetType MountOperationDomainPropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationDomainPropertyInfo Source # 
type AttrSetTypeConstraint MountOperationDomainPropertyInfo Source # 
type AttrAllowedOps MountOperationDomainPropertyInfo Source # 

password

data MountOperationPasswordPropertyInfo Source #

Instances

AttrInfo MountOperationPasswordPropertyInfo Source # 
type AttrOrigin MountOperationPasswordPropertyInfo Source # 
type AttrLabel MountOperationPasswordPropertyInfo Source # 
type AttrGetType MountOperationPasswordPropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationPasswordPropertyInfo Source # 
type AttrSetTypeConstraint MountOperationPasswordPropertyInfo Source # 
type AttrAllowedOps MountOperationPasswordPropertyInfo Source # 

passwordSave

data MountOperationPasswordSavePropertyInfo Source #

Instances

AttrInfo MountOperationPasswordSavePropertyInfo Source # 
type AttrOrigin MountOperationPasswordSavePropertyInfo Source # 
type AttrLabel MountOperationPasswordSavePropertyInfo Source # 
type AttrGetType MountOperationPasswordSavePropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationPasswordSavePropertyInfo Source # 
type AttrSetTypeConstraint MountOperationPasswordSavePropertyInfo Source # 
type AttrAllowedOps MountOperationPasswordSavePropertyInfo Source # 

username

data MountOperationUsernamePropertyInfo Source #

Instances

AttrInfo MountOperationUsernamePropertyInfo Source # 
type AttrOrigin MountOperationUsernamePropertyInfo Source # 
type AttrLabel MountOperationUsernamePropertyInfo Source # 
type AttrGetType MountOperationUsernamePropertyInfo Source # 
type AttrBaseTypeConstraint MountOperationUsernamePropertyInfo Source # 
type AttrSetTypeConstraint MountOperationUsernamePropertyInfo Source # 
type AttrAllowedOps MountOperationUsernamePropertyInfo Source # 

Signals

aborted

askPassword

askQuestion

reply

showProcesses

showUnmountProgress