MountOperation

gtk.mount_operation.MountOperation is an implementation of gio.mount_operation.MountOperation.

The functions and objects described here make working with GTK and GIO more convenient.

gtk.mount_operation.MountOperation is needed when mounting volumes: It is an implementation of gio.mount_operation.MountOperation that can be used with GIO functions for mounting volumes such as gio.file.File.mountEnclosingVolume, gio.file.File.mountMountable, gio.volume.Volume.mount, gio.mount.Mount.unmountWithOperation and others.

When necessary, gtk.mount_operation.MountOperation shows dialogs to let the user enter passwords, ask questions or show processes blocking unmount.

Constructors

this
this(gtk.window.Window parent)

Creates a new gtk.mount_operation.MountOperation.

Members

Functions

getDisplay
gdk.display.Display getDisplay()

Gets the display on which windows of the gtk.mount_operation.MountOperation will be shown.

getParent
gtk.window.Window getParent()

Gets the transient parent used by the gtk.mount_operation.MountOperation.

isShowing
bool isShowing()

Returns whether the gtk.mount_operation.MountOperation is currently displaying a window.

setDisplay
void setDisplay(gdk.display.Display display)

Sets the display to show windows of the gtk.mount_operation.MountOperation on.

setParent
void setParent(gtk.window.Window parent)

Sets the transient parent for windows shown by the gtk.mount_operation.MountOperation.

Inherited Members

From MountOperation

getAnonymous
bool getAnonymous()

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

getChoice
int getChoice()

Gets a choice from the mount operation.

getDomain
string getDomain()

Gets the domain of the mount operation.

getIsTcryptHiddenVolume
bool getIsTcryptHiddenVolume()

Check to see whether the mount operation is being used for a TCRYPT hidden volume.

getIsTcryptSystemVolume
bool getIsTcryptSystemVolume()

Check to see whether the mount operation is being used for a TCRYPT system volume.

getPassword
string getPassword()

Gets a password from the mount operation.

getPasswordSave
gio.types.PasswordSave getPasswordSave()

Gets the state of saving passwords for the mount operation.

getPim
uint getPim()

Gets a PIM from the mount operation.

getUsername
string getUsername()

Get the user name from the mount operation.

reply
void reply(gio.types.MountOperationResult result)

Emits the #GMountOperation::reply signal.

setAnonymous
void setAnonymous(bool anonymous)

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

setChoice
void setChoice(int choice)

Sets a default choice for the mount operation.

setDomain
void setDomain(string domain)

Sets the mount operation's domain.

setIsTcryptHiddenVolume
void setIsTcryptHiddenVolume(bool hiddenVolume)

Sets the mount operation to use a hidden volume if hidden_volume is true.

setIsTcryptSystemVolume
void setIsTcryptSystemVolume(bool systemVolume)

Sets the mount operation to use a system volume if system_volume is true.

setPassword
void setPassword(string password)

Sets the mount operation's password to password.

setPasswordSave
void setPasswordSave(gio.types.PasswordSave save)

Sets the state of saving passwords for the mount operation.

setPim
void setPim(uint pim)

Sets the mount operation's PIM to pim.

setUsername
void setUsername(string username)

Sets the user name within op to username.

connectAborted
ulong connectAborted(T callback, Flag!"After" after)

Connect to Aborted signal.

connectAskPassword
ulong connectAskPassword(T callback, Flag!"After" after)

Connect to AskPassword signal.

connectAskQuestion
ulong connectAskQuestion(T callback, Flag!"After" after)

Connect to AskQuestion signal.

connectReply
ulong connectReply(T callback, Flag!"After" after)

Connect to Reply signal.

connectShowUnmountProgress
ulong connectShowUnmountProgress(T callback, Flag!"After" after)

Connect to ShowUnmountProgress signal.