Package ch.bailu.gtk.gtk
Class MountOperation
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.gio.MountOperation
ch.bailu.gtk.gtk.MountOperation
- All Implemented Interfaces:
PointerInterface
`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.
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gio.MountOperation
MountOperation.OnAborted, MountOperation.OnAskPassword, MountOperation.OnReply, MountOperation.OnShowUnmountProgress
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gio.MountOperation
SIGNAL_ON_ABORTED, SIGNAL_ON_ASK_PASSWORD, SIGNAL_ON_REPLY, SIGNAL_ON_SHOW_UNMOUNT_PROGRESS
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
ConstructorDescriptionMountOperation
(Window parent) Creates a new `GtkMountOperation`.MountOperation
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
Gets the display on which windows of the `GtkMountOperation`
will be shown.static int
Gets the transient parent used by the `GtkMountOperation`.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
Returns whether the `GtkMountOperation` is currently displaying
a window.void
setDisplay
(Display display) Sets the display to show windows of the `GtkMountOperation` on.void
Sets the transient parent for windows shown by the
`GtkMountOperation`.Methods inherited from class ch.bailu.gtk.gio.MountOperation
getAnonymous, getChoice, getDomain, getIsTcryptHiddenVolume, getIsTcryptSystemVolume, getPassword, getPasswordSave, getPim, getUsername, onAborted, onAskPassword, onReply, onShowUnmountProgress, reply, setAnonymous, setChoice, setDomain, setDomain, setIsTcryptHiddenVolume, setIsTcryptSystemVolume, setPassword, setPassword, setPasswordSave, setPim, setUsername, setUsername
Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
MountOperation
-
MountOperation
Creates a new `GtkMountOperation`.- Parameters:
parent
- transient parent of the window
-
-
Method Details
-
getClassHandler
-
getDisplay
Gets the display on which windows of the `GtkMountOperation`
will be shown.- Returns:
- the display on which windows of @op are shown
-
getParent
Gets the transient parent used by the `GtkMountOperation`.- Returns:
- the transient parent for windows shown by @op
-
isShowing
public boolean isShowing()Returns whether the `GtkMountOperation` is currently displaying
a window.- Returns:
- %TRUE if @op is currently displaying a window
-
setDisplay
Sets the display to show windows of the `GtkMountOperation` on.- Parameters:
display
- a `GdkDisplay`
-
setParent
Sets the transient parent for windows shown by the
`GtkMountOperation`.- Parameters:
parent
- transient parent of the window
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-