W Wrapl, The Programming Language

Libraries:Gtk:Gio:GMountOperation

Types

T

Inherits from:

T 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 T is used for more than just Gtk.Gio.GMount.T objects - for example it is also used in Gtk.Gio.GDrive.Start and Gtk.Gio.GDrive.Stop.

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



Constants

Nil : T

Functions

GetType() : Gtk.GObject.Type.T



New() : Gtk.Gio.GMountOperation.T

Creates a new mount operation.

Returns a T.


Methods

:GetAnonymous(self @ T) : Std.Symbol.T

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

op a T.
Returns TRUE if mount operation is anonymous.


:GetChoice(self @ T) : Std.Integer.SmallT

Gets a choice from the mount operation.

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


:GetDomain(self @ T) : Std.String.T

Gets the domain of the mount operation.

op a T.
Returns a string set to the domain.


:GetPassword(self @ T) : Std.String.T

Gets a password from the mount operation.

op a T.
Returns a string containing the password within op.


:GetPasswordSave(self @ T) : Gtk.Gio.GPasswordSave.T

Gets the state of saving passwords for the mount operation.

op a T.
Returns a Gtk.Gio.GPasswordSave.T flag.


:GetUsername(self @ T) : Std.String.T

Get the user name from the mount operation.

op a T.
Returns a string containing the user name.


:Priv(self @ T) : Std.Object.T

:Reply(self @ T, result @ Gtk.Gio.GMountOperationResult.T) : Std.Object.T

Emits the "reply" signal.



:SetAnonymous(self @ T, anonymous @ Std.Symbol.T) : Std.Object.T

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

op a T.
anonymous boolean value.


:SetChoice(self @ T, choice @ Std.Integer.SmallT) : Std.Object.T

Sets a default choice for the mount operation.

op a T.
choice an integer.


:SetDomain(self @ T, domain @ Std.String.T) : Std.Object.T

Sets the mount operation's domain.

op a T.
domain the domain to set.


:SetPassword(self @ T, password @ Std.String.T) : Std.Object.T

Sets the mount operation's password to password.

op a T.
password password to set.


:SetPasswordSave(self @ T, save @ Gtk.Gio.GPasswordSave.T) : Std.Object.T

Sets the state of saving passwords for the mount operation.

op a T.
save a set of Gtk.Gio.GPasswordSave.T flags.


:SetUsername(self @ T, username @ Std.String.T) : Std.Object.T

Sets the user name within op to username.

op a T.
username input username.


:setPriv(self @ T, value @ Std.Object.T) : Std.Object.T