Package ch.bailu.gtk.gio
Klasse VolumeMonitor
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.type.PropertyHolder
ch.bailu.gtk.gio.VolumeMonitor
- Alle implementierten Schnittstellen:
PointerInterface
- Bekannte direkte Unterklassen:
NativeVolumeMonitor
`GVolumeMonitor` is for listing the user interesting devices and volumes
on the computer. In other words, what a file selector or file manager
would show in a sidebar.
`GVolumeMonitor` is not
thread-default-context aware (see
[method@GLib.MainContext.push_thread_default]), and so should not be used
other than from the main thread, with no thread-default-context active.
In order to receive updates about volumes and mounts monitored through GVFS,
a main loop must be running.
on the computer. In other words, what a file selector or file manager
would show in a sidebar.
`GVolumeMonitor` is not
thread-default-context aware (see
[method@GLib.MainContext.push_thread_default]), and so should not be used
other than from the main thread, with no thread-default-context active.
In order to receive updates about volumes and mounts monitored through GVFS,
a main loop must be running.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
static interface
Von Klasse geerbte verschachtelte Klassen/Schnittstellen ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Von Klasse geerbte Felder ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Volume
adoptOrphanMount
(Mount mount) Veraltet.static VolumeMonitor
get()
Gets the volume monitor used by gio.static ClassHandler
Gets a list of drives connected to the system.static int
getMountForUuid
(Str uuid) Finds a #GMount object by its UUID (see g_mount_get_uuid())getMountForUuid
(String uuid) Finds a #GMount object by its UUID (see g_mount_get_uuid())Gets a list of the mounts on the system.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
getVolumeForUuid
(Str uuid) Finds a #GVolume object by its UUID (see g_volume_get_uuid())getVolumeForUuid
(String uuid) Finds a #GVolume object by its UUID (see g_volume_get_uuid())Gets a list of the volumes on the system.Connect to signal "drive-changed".Connect to signal "drive-connected".Connect to signal "drive-disconnected".Connect to signal "drive-eject-button".Connect to signal "drive-stop-button".Connect to signal "mount-added".Connect to signal "mount-changed".Connect to signal "mount-pre-unmount".Connect to signal "mount-removed".Connect to signal "volume-added".Connect to signal "volume-changed".Connect to signal "volume-removed".Von Klasse geerbte Methoden ch.bailu.gtk.type.PropertyHolder
getBooleanProperty, getIntProperty, getObjectProperty, getStringProperty, getStrProperty, setBooleanProperty, setIntProperty, setObjectProperty, setStringProperty, setStrProperty
Von Klasse geerbte Methoden 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
Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
SIGNAL_ON_DRIVE_CHANGED
- Siehe auch:
-
SIGNAL_ON_DRIVE_CONNECTED
- Siehe auch:
-
SIGNAL_ON_DRIVE_DISCONNECTED
- Siehe auch:
-
SIGNAL_ON_DRIVE_EJECT_BUTTON
- Siehe auch:
-
SIGNAL_ON_DRIVE_STOP_BUTTON
- Siehe auch:
-
SIGNAL_ON_MOUNT_ADDED
- Siehe auch:
-
SIGNAL_ON_MOUNT_CHANGED
- Siehe auch:
-
SIGNAL_ON_MOUNT_PRE_UNMOUNT
- Siehe auch:
-
SIGNAL_ON_MOUNT_REMOVED
- Siehe auch:
-
SIGNAL_ON_VOLUME_ADDED
- Siehe auch:
-
SIGNAL_ON_VOLUME_CHANGED
- Siehe auch:
-
SIGNAL_ON_VOLUME_REMOVED
- Siehe auch:
-
-
Konstruktordetails
-
VolumeMonitor
-
-
Methodendetails
-
getClassHandler
-
getConnectedDrives
Gets a list of drives connected to the system.
The returned list should be freed with g_list_free(), after
its elements have been unreffed with g_object_unref().- Gibt zurück:
- a #GList of connected #GDrive objects.
-
getMountForUuid
Finds a #GMount object by its UUID (see g_mount_get_uuid())- Parameter:
uuid
- the UUID to look for- Gibt zurück:
- a #GMount or %NULL if no such mount is available. Free the returned object with g_object_unref().
-
getMountForUuid
Finds a #GMount object by its UUID (see g_mount_get_uuid())- Parameter:
uuid
- the UUID to look for- Gibt zurück:
- a #GMount or %NULL if no such mount is available. Free the returned object with g_object_unref().
-
getMounts
Gets a list of the mounts on the system.
The returned list should be freed with g_list_free(), after
its elements have been unreffed with g_object_unref().- Gibt zurück:
- a #GList of #GMount objects.
-
getVolumeForUuid
Finds a #GVolume object by its UUID (see g_volume_get_uuid())- Parameter:
uuid
- the UUID to look for- Gibt zurück:
- a #GVolume or %NULL if no such volume is available. Free the returned object with g_object_unref().
-
getVolumeForUuid
Finds a #GVolume object by its UUID (see g_volume_get_uuid())- Parameter:
uuid
- the UUID to look for- Gibt zurück:
- a #GVolume or %NULL if no such volume is available. Free the returned object with g_object_unref().
-
getVolumes
Gets a list of the volumes on the system.
The returned list should be freed with g_list_free(), after
its elements have been unreffed with g_object_unref().- Gibt zurück:
- a #GList of #GVolume objects.
-
onDriveChanged
Connect to signal "drive-changed".
SeeVolumeMonitor.OnDriveChanged.onDriveChanged(ch.bailu.gtk.gio.Drive)
for signal description.
FieldSIGNAL_ON_DRIVE_CHANGED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDriveConnected
Connect to signal "drive-connected".
SeeVolumeMonitor.OnDriveConnected.onDriveConnected(ch.bailu.gtk.gio.Drive)
for signal description.
FieldSIGNAL_ON_DRIVE_CONNECTED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDriveDisconnected
Connect to signal "drive-disconnected".
SeeVolumeMonitor.OnDriveDisconnected.onDriveDisconnected(ch.bailu.gtk.gio.Drive)
for signal description.
FieldSIGNAL_ON_DRIVE_DISCONNECTED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDriveEjectButton
Connect to signal "drive-eject-button".
SeeVolumeMonitor.OnDriveEjectButton.onDriveEjectButton(ch.bailu.gtk.gio.Drive)
for signal description.
FieldSIGNAL_ON_DRIVE_EJECT_BUTTON
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onDriveStopButton
Connect to signal "drive-stop-button".
SeeVolumeMonitor.OnDriveStopButton.onDriveStopButton(ch.bailu.gtk.gio.Drive)
for signal description.
FieldSIGNAL_ON_DRIVE_STOP_BUTTON
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMountAdded
Connect to signal "mount-added".
SeeVolumeMonitor.OnMountAdded.onMountAdded(ch.bailu.gtk.gio.Mount)
for signal description.
FieldSIGNAL_ON_MOUNT_ADDED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMountChanged
Connect to signal "mount-changed".
SeeVolumeMonitor.OnMountChanged.onMountChanged(ch.bailu.gtk.gio.Mount)
for signal description.
FieldSIGNAL_ON_MOUNT_CHANGED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMountPreUnmount
Connect to signal "mount-pre-unmount".
SeeVolumeMonitor.OnMountPreUnmount.onMountPreUnmount(ch.bailu.gtk.gio.Mount)
for signal description.
FieldSIGNAL_ON_MOUNT_PRE_UNMOUNT
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onMountRemoved
Connect to signal "mount-removed".
SeeVolumeMonitor.OnMountRemoved.onMountRemoved(ch.bailu.gtk.gio.Mount)
for signal description.
FieldSIGNAL_ON_MOUNT_REMOVED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onVolumeAdded
Connect to signal "volume-added".
SeeVolumeMonitor.OnVolumeAdded.onVolumeAdded(ch.bailu.gtk.gio.Volume)
for signal description.
FieldSIGNAL_ON_VOLUME_ADDED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onVolumeChanged
Connect to signal "volume-changed".
SeeVolumeMonitor.OnVolumeChanged.onVolumeChanged(ch.bailu.gtk.gio.Volume)
for signal description.
FieldSIGNAL_ON_VOLUME_CHANGED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
onVolumeRemoved
Connect to signal "volume-removed".
SeeVolumeMonitor.OnVolumeRemoved.onVolumeRemoved(ch.bailu.gtk.gio.Volume)
for signal description.
FieldSIGNAL_ON_VOLUME_REMOVED
contains original signal name and can be used as resource reference.- Parameter:
signal
- callback function (lambda).- Gibt zurück:
SignalHandler
. Can be used to disconnect signal and to release callback function.
-
adoptOrphanMount
Veraltet.This function should be called by any #GVolumeMonitor
implementation when a new #GMount object is created that is not
associated with a #GVolume object. It must be called just before
emitting the @mount_added signal.
If the return value is not %NULL, the caller must associate the
returned #GVolume object with the #GMount. This involves returning
it in its g_mount_get_volume() implementation. The caller must
also listen for the "removed" signal on the returned object
and give up its reference when handling that signal
Similarly, if implementing g_volume_monitor_adopt_orphan_mount(),
the implementor must take a reference to @mount and return it in
its g_volume_get_mount() implemented. Also, the implementor must
listen for the "unmounted" signal on @mount and give up its
reference upon handling that signal.
There are two main use cases for this function.
One is when implementing a user space file system driver that reads
blocks of a block device that is already represented by the native
volume monitor (for example a CD Audio file system driver). Such
a driver will generate its own #GMount object that needs to be
associated with the #GVolume object that represents the volume.
The other is for implementing a #GVolumeMonitor whose sole purpose
is to return #GVolume objects representing entries in the users
"favorite servers" list or similar.- Parameter:
mount
- a #GMount object to find a parent for- Gibt zurück:
- the #GVolume object that is the parent for @mount or %NULL if no wants to adopt the #GMount.
-
get
Gets the volume monitor used by gio.- Gibt zurück:
- a reference to the #GVolumeMonitor used by gio. Call g_object_unref() when done with it, after disconnecting any signal handlers.
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-