Gio.MountOperation (original) (raw)

Class

GioMountOperation

Description [src]

class Gio.MountOperation : GObject.Object
{
  priv: GMountOperationPrivate*
}

GMountOperation 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 GMountOperation is used for more than just GMountobjects – for example it is also used in g_drive_start() andg_drive_stop().

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

Throughout the API, the term ‘TCRYPT’ is used to mean ‘compatible with TrueCrypt and VeraCrypt’.TrueCrypt is a discontinued system for encrypting file containers, partitions or whole disks, typically used with Windows.VeraCrypt is a maintained fork of TrueCrypt with various improvements and auditing fixes.

Constructors

Instance methods

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

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.

Signals

Gio.MountOperation::aborted

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

since: 2.20

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 GioMountOperationClass {
  GObjectClass parent_class;
  void (* ask_password) (
    GMountOperation* op,
    const char* message,
    const char* default_user,
    const char* default_domain,
    GAskPasswordFlags flags
  );
  void (* ask_question) (
    GMountOperation* op,
    const char* message,
    const char** choices
  );
  void (* reply) (
    GMountOperation* op,
    GMountOperationResult result
  );
  void (* aborted) (
    GMountOperation* op
  );
  void (* show_processes) (
    GMountOperation* op,
    const gchar* message,
    GArray* processes,
    const gchar** choices
  );
  void (* show_unmount_progress) (
    GMountOperation* op,
    const gchar* message,
    gint64 time_left,
    gint64 bytes_left
  );
  void (* _g_reserved1) (
void
  );
  void (* _g_reserved2) (
void
  );
  void (* _g_reserved3) (
void
  );
  void (* _g_reserved4) (
void
  );
  void (* _g_reserved5) (
void
  );
  void (* _g_reserved6) (
void
  );
  void (* _g_reserved7) (
void
  );
  void (* _g_reserved8) (
void
  );
  void (* _g_reserved9) (
void
  );
  
}

No description available.

Class members

parent_class: GObjectClass

No description available.

ask_password: void (* ask_password) ( GMountOperation* op, const char* message, const char* default_user, const char* default_domain, GAskPasswordFlags flags )

No description available.

ask_question: void (* ask_question) ( GMountOperation* op, const char* message, const char** choices )

No description available.

reply: void (* reply) ( GMountOperation* op, GMountOperationResult result )

No description available.

aborted: void (* aborted) ( GMountOperation* op )

No description available.

show_processes: void (* show_processes) ( GMountOperation* op, const gchar* message, GArray* processes, const gchar** choices )

No description available.

show_unmount_progress: void (* show_unmount_progress) ( GMountOperation* op, const gchar* message, gint64 time_left, gint64 bytes_left )

No description available.

_g_reserved1: void (* _g_reserved1) ( void )

No description available.

_g_reserved2: void (* _g_reserved2) ( void )

No description available.

_g_reserved3: void (* _g_reserved3) ( void )

No description available.

_g_reserved4: void (* _g_reserved4) ( void )

No description available.

_g_reserved5: void (* _g_reserved5) ( void )

No description available.

_g_reserved6: void (* _g_reserved6) ( void )

No description available.

_g_reserved7: void (* _g_reserved7) ( void )

No description available.

_g_reserved8: void (* _g_reserved8) ( void )

No description available.

_g_reserved9: void (* _g_reserved9) ( void )

No description available.

Virtual methods