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
Methods
:GetAnonymous(self @ T) : Std.Symbol.T
Check to see whether the mount operation is being used for an anonymous user.
: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
: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
:Priv(self @ T) : Std.Object.T
:Reply(self @ T, result @ Gtk.Gio.GMountOperationResult.T) : Std.Object.T
: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
:SetDomain(self @ T, domain @ Std.String.T) : Std.Object.T
:SetPassword(self @ T, password @ Std.String.T) : Std.Object.T
: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. |