Class MountOperation
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gobject.GObject
org.gnome.gio.MountOperation
org.gnome.gtk.MountOperation
- All Implemented Interfaces:
Proxy
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
File#mountEnclosingVolume,
File#mountMountable,
Volume#mount,
Mount#unmountWithOperation and others.
When necessary, GtkMountOperation shows dialogs to let the user
enter passwords, ask questions or show processes blocking unmount.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMountOperation.Builder<B extends MountOperation.Builder<B>>Inner class implementing a builder pattern to construct a GObject with properties.static classNested classes/interfaces inherited from class MountOperation
MountOperation.AbortedCallback, MountOperation.AskPasswordCallback, MountOperation.AskQuestionCallback, MountOperation.ReplyCallback, MountOperation.ShowProcessesCallback, MountOperation.ShowUnmountProgressCallbackNested classes/interfaces inherited from class GObject
GObject.NotifyCallback, GObject.ObjectClass -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new MountOperation.MountOperation(MemorySegment address) Create a MountOperation instance for the provided memory address.MountOperation(@Nullable Window parent) Creates a newGtkMountOperation. -
Method Summary
Modifier and TypeMethodDescriptionprotected MountOperationasParent()Return this instance as if it were its parent type.static MountOperation.Builder<? extends MountOperation.Builder> builder()AMountOperation.Builderobject constructs aMountOperationwith the specified properties.Gets the display on which windows of theGtkMountOperationwill be shown.static MemoryLayoutThe memory layout of the native struct.@Nullable WindowGets the transient parent used by theGtkMountOperation.static @Nullable TypegetType()Get the GType of the MountOperation class.booleanReturns whether theGtkMountOperationis currently displaying a window.voidsetDisplay(Display display) Sets the display to show windows of theGtkMountOperationon.voidSets the transient parent for windows shown by theGtkMountOperation.Methods inherited from class MountOperation
aborted, askPassword, askQuestion, emitAborted, emitAskPassword, emitAskQuestion, emitReply, emitShowProcesses, emitShowUnmountProgress, getAnonymous, getChoice, getDomain, getIsTcryptHiddenVolume, getIsTcryptSystemVolume, getPassword, getPasswordSave, getPim, getUsername, onAborted, onAskPassword, onAskQuestion, onReply, onShowProcesses, onShowUnmountProgress, reply, setAnonymous, setChoice, setDomain, setIsTcryptHiddenVolume, setIsTcryptSystemVolume, setPassword, setPasswordSave, setPim, setUsername, showProcesses, showUnmountProgressMethods inherited from class GObject
addToggleRef, addWeakPointer, bindProperty, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, connect, constructed, disconnect, dispatchPropertiesChanged, dispose, dupData, dupQdata, emit, emitNotify, finalize_, forceFloating, freezeNotify, get, getData, getProperty, getProperty, getProperty, getQdata, getv, interfaceFindProperty, interfaceInstallProperty, interfaceListProperties, isFloating, newInstance, newInstance, newv, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, removeWeakPointer, replaceData, replaceQdata, runDispose, set, setData, setDataFull, setProperty, setProperty, setProperty, setQdata, setQdataFull, setv, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref, withPropertiesMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
MountOperation
Create a MountOperation instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
MountOperation
Creates a newGtkMountOperation.- Parameters:
parent- transient parent of the window
-
MountOperation
public MountOperation()Create a new MountOperation.
-
-
Method Details
-
getType
Get the GType of the MountOperation class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classMountOperation- Returns:
- the instance as if it were its parent type
-
getDisplay
Gets the display on which windows of theGtkMountOperationwill be shown.- Returns:
- the display on which windows of this MountOperation are shown
-
getParent
Gets the transient parent used by theGtkMountOperation.- Returns:
- the transient parent for windows shown by this MountOperation
-
isShowing
public boolean isShowing()Returns whether theGtkMountOperationis currently displaying a window.- Returns:
trueif this MountOperation is currently displaying a window
-
setDisplay
Sets the display to show windows of theGtkMountOperationon.- Parameters:
display- aGdkDisplay
-
setParent
Sets the transient parent for windows shown by theGtkMountOperation.- Parameters:
parent- transient parent of the window
-
builder
AMountOperation.Builderobject constructs aMountOperationwith the specified properties. Use the variousset...()methods to set properties, and finish construction withMountOperation.Builder.build().- Returns:
- the builder object
-