Gio.MountOperation
const Gio = imports.gi.Gio; let mountOperation = new Gio.MountOperation({ });
Gio.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 Gio.MountOperation is used for more than just Gio.Mount objects – for example it is also used in Gio.Drive.prototype.start and Gio.Drive.prototype.stop.
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 null can be passed, see each method taking a Gio.MountOperation for details.
Hierarchy
-
GObject.Object
- Gio.MountOperation
Constructors
Methods
- Gio.MountOperation.prototype.get_anonymous
- Gio.MountOperation.prototype.get_choice
- Gio.MountOperation.prototype.get_domain
- Gio.MountOperation.prototype.get_password
- Gio.MountOperation.prototype.get_password_save
- Gio.MountOperation.prototype.get_username
- Gio.MountOperation.prototype.reply
- Gio.MountOperation.prototype.set_anonymous
- Gio.MountOperation.prototype.set_choice
- Gio.MountOperation.prototype.set_domain
- Gio.MountOperation.prototype.set_password
- Gio.MountOperation.prototype.set_password_save
- Gio.MountOperation.prototype.set_username