Class

GtkMountOperation

Description [src]

class Gtk.MountOperation : Gio.MountOperation
{
  priv: GtkMountOperationPrivate*
}

GtkMountOperation is an implementation of GMountOperation.

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

GtkMountOperation is needed when mounting volumes: It is an implementation of GMountOperation that can be used with GIO functions for mounting volumes such as g_file_mount_enclosing_volume(), g_file_mount_mountable(), g_volume_mount(), g_mount_unmount_with_operation() and others.

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

Hierarchy

hierarchy this GtkMountOperation ancestor_0 GMountOperation ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Constructors

gtk_mount_operation_new

Creates a new GtkMountOperation.

Instance methods

gtk_mount_operation_get_display

Gets the display on which windows of the GtkMountOperation will be shown.

gtk_mount_operation_get_parent

Gets the transient parent used by the GtkMountOperation.

gtk_mount_operation_is_showing

Returns whether the GtkMountOperation is currently displaying a window.

gtk_mount_operation_set_display

Sets the display to show windows of the GtkMountOperation on.

gtk_mount_operation_set_parent

Sets the transient parent for windows shown by the GtkMountOperation.

Methods inherited from GMountOperation (19)
g_mount_operation_get_anonymous

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

g_mount_operation_get_choice

Gets a choice from the mount operation.

g_mount_operation_get_domain

Gets the domain of the mount operation.

g_mount_operation_get_is_tcrypt_hidden_volume

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

g_mount_operation_get_is_tcrypt_system_volume

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

g_mount_operation_get_password

Gets a password from the mount operation.

g_mount_operation_get_password_save

Gets the state of saving passwords for the mount operation.

g_mount_operation_get_pim

Gets a PIM from the mount operation.

g_mount_operation_get_username

Get the user name from the mount operation.

g_mount_operation_reply

Emits the GMountOperation::reply signal.

g_mount_operation_set_anonymous

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

g_mount_operation_set_choice

Sets a default choice for the mount operation.

g_mount_operation_set_domain

Sets the mount operation’s domain.

g_mount_operation_set_is_tcrypt_hidden_volume

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

g_mount_operation_set_is_tcrypt_system_volume

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

g_mount_operation_set_password

Sets the mount operation’s password to password.

g_mount_operation_set_password_save

Sets the state of saving passwords for the mount operation.

g_mount_operation_set_pim

Sets the mount operation’s PIM to pim.

g_mount_operation_set_username

Sets the user name within op to username.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Gtk.MountOperation:display

The display where dialogs will be shown.

Gtk.MountOperation:is-showing

Whether a dialog is currently shown.

Gtk.MountOperation:parent

The parent window.

Properties inherited from GMountOperation (9)
Gio.MountOperation:anonymous

Whether to use an anonymous user when authenticating.

Gio.MountOperation:choice

The index of the user’s choice when a question is asked during the mount operation. See the GMountOperation::ask-question signal.

Gio.MountOperation:domain

The domain to use for the mount operation.

Gio.MountOperation:is-tcrypt-hidden-volume

Whether the device to be unlocked is a TCRYPT hidden volume. See the VeraCrypt documentation.

Gio.MountOperation:is-tcrypt-system-volume

Whether the device to be unlocked is a TCRYPT system volume. In this context, a system volume is a volume with a bootloader and operating system installed. This is only supported for Windows operating systems. For further documentation, see the VeraCrypt documentation.

Gio.MountOperation:password

The password that is used for authentication when carrying out the mount operation.

Gio.MountOperation:password-save

Determines if and how the password information should be saved.

Gio.MountOperation:pim

The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.

Gio.MountOperation:username

The user name that is used for authentication when carrying out the mount operation.

Signals

Signals inherited from GMountOperation (6)
GMountOperation::aborted

Emitted by the backend when e.g. a device becomes unavailable while a mount operation is in progress.

GMountOperation::ask-password

Emitted when a mount operation asks the user for a password.

GMountOperation::ask-question

Emitted when asking the user a question and gives a list of choices for the user to choose from.

GMountOperation::reply

Emitted when the user has replied to the mount operation.

GMountOperation::show-processes

Emitted when one or more processes are blocking an operation e.g. unmounting/ejecting a GMount or stopping a GDrive.

GMountOperation::show-unmount-progress

Emitted when an unmount operation has been busy for more than some time (typically 1.5 seconds).

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct GtkMountOperationClass {
  GMountOperationClass parent_class;
  void (* _gtk_reserved1) (
void
  );
  void (* _gtk_reserved2) (
void
  );
  void (* _gtk_reserved3) (
void
  );
  void (* _gtk_reserved4) (
void
  );
  
}

No description available.

Class members
parent_class: GMountOperationClass

The parent class.

_gtk_reserved1: void (* _gtk_reserved1) ( void )

No description available.

_gtk_reserved2: void (* _gtk_reserved2) ( void )

No description available.

_gtk_reserved3: void (* _gtk_reserved3) ( void )

No description available.

_gtk_reserved4: void (* _gtk_reserved4) ( void )

No description available.