Klasse MountOperation

Alle implementierten Schnittstellen:
PointerInterface

public class MountOperation extends MountOperation
Asks the user for passwords and other information required to
mount a volume.

`GtkMountOperation` is needed when mounting volumes:
It is an implementation of `GMountOperation` that can be used with
GIO functions for mounting volumes such as
[method@Gio.File.mount_enclosing_volume],
[method@Gio.File.mount_mountable],
[method@Gio.Volume.mount],
[method@Gio.Mount.unmount_with_operation] and others.

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

https://docs.gtk.org/gtk4/class.MountOperation.html

  • Konstruktordetails

    • MountOperation

      public MountOperation(PointerContainer pointer)
    • MountOperation

      public MountOperation(@Nullable Window parent)
      Creates a new `GtkMountOperation`.
      Parameter:
      parent - transient parent of the window
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getDisplay

      public Display getDisplay()
      Gets the display on which windows of the `GtkMountOperation`
      will be shown.
      Gibt zurück:
      the display on which windows of @op are shown
    • getParent

      public Window getParent()
      Gets the transient parent used by the `GtkMountOperation`.
      Gibt zurück:
      the transient parent for windows shown by @op
    • isShowing

      public boolean isShowing()
      Returns whether the `GtkMountOperation` is currently displaying
      a window.
      Gibt zurück:
      %TRUE if @op is currently displaying a window
    • setDisplay

      public void setDisplay(@Nonnull Display display)
      Sets the display to show windows of the `GtkMountOperation` on.
      Parameter:
      display - a `GdkDisplay`
    • setParent

      public void setParent(@Nullable Window parent)
      Sets the transient parent for windows shown by the
      `GtkMountOperation`.
      Parameter:
      parent - transient parent of the window
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()