GObject.Object
Gio.VolumeMonitor
Import line: | Gio = imports.gi.Gio; |
GIR File: | Gio-2.0.gir |
C documentation: | GVolumeMonitor |
Class : | VolumeMonitor |
Subclasses: | Gio.NativeVolumeMonitor |
Extends: | GObject.Object |
Properties | Defined By | |
---|---|---|
parent_instance : GObject.Object
read only
|
Gio.VolumeMonitor | |
priv : void*
read only
|
Gio.VolumeMonitor |
Method / Constructor | Defined By | |
---|---|---|
new Gio.VolumeMonitor
(Object properties)
Create a new Gio.VolumeMonitor
Create a new Gio.VolumeMonitor
|
||
This function should be called by any GVolumeMonitor
implementation when a new GMount object is created that is not associated with a GVolume object.
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 Similary, 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 assoicated 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. if no wants to adopt the GMount. implementations should instead create shadow mounts with the URI of the mount they intend to adopt. See the proxy volume monitor in gvfs for an example of this. Also see g_mount_is_shadowed(), g_mount_shadow() and g_mount_unshadow() functions.
|
Gio.VolumeMonitor | |
Gio.VolumeMonitor.get
()
:
Gio.VolumeMonitor
Gets the volume monitor used by gio.
Gets the volume monitor used by gio.
g_object_unref() when done with it.
|
Gio.VolumeMonitor | |
get_connected_drives
()
:
Array
Gets a list of drives connected to the system.
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().
|
Gio.VolumeMonitor | |
Finds a GMount object by its UUID (see g_mount_get_uuid())
Free the returned object with g_object_unref(). |
Gio.VolumeMonitor | |
get_mounts
()
:
Array
Gets a list of the mounts on the system.
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().
|
Gio.VolumeMonitor | |
get_volume_for_uuid
(String uuid)
:
Gio.Volume
Finds a GVolume object by its UUID (see g_volume_get_uuid())
Free the returned object with g_object_unref().
Finds a GVolume object by its UUID (see g_volume_get_uuid())
Free the returned object with g_object_unref().
|
Gio.VolumeMonitor | |
get_volumes
()
:
Array
Gets a list of the volumes on the system.
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().
|
Gio.VolumeMonitor |
Event | Defined By | |
---|---|---|
drive_changed (VolumeMonitor self, Drive drive)
:
none
Emitted when a drive changes.
Emitted when a drive changes.
|
Gio.VolumeMonitor | |
drive_connected (VolumeMonitor self, Drive drive)
:
none
Emitted when a drive is connected to the system.
Emitted when a drive is connected to the system.
|
Gio.VolumeMonitor | |
drive_disconnected (VolumeMonitor self, Drive drive)
:
none
Emitted when a drive is disconnected from the system.
Emitted when a drive is disconnected from the system.
|
Gio.VolumeMonitor | |
drive_eject_button (VolumeMonitor self, Drive drive)
:
none
Emitted when the eject button is pressed on drive.
Emitted when the eject button is pressed on drive.
|
Gio.VolumeMonitor | |
drive_stop_button (VolumeMonitor self, Drive drive)
:
none
Emitted when the stop button is pressed on drive.
Emitted when the stop button is pressed on drive.
|
Gio.VolumeMonitor | |
mount_added (VolumeMonitor self, Mount mount)
:
none
Emitted when a mount is added.
Emitted when a mount is added.
|
Gio.VolumeMonitor | |
mount_changed (VolumeMonitor self, Mount mount)
:
none
Emitted when a mount changes.
Emitted when a mount changes.
|
Gio.VolumeMonitor | |
mount_pre_unmount (VolumeMonitor self, Mount mount)
:
none
Emitted when a mount is about to be removed.
Emitted when a mount is about to be removed.
|
Gio.VolumeMonitor | |
mount_removed (VolumeMonitor self, Mount mount)
:
none
Emitted when a mount is removed.
Emitted when a mount is removed.
|
Gio.VolumeMonitor | |
volume_added (VolumeMonitor self, Volume volume)
:
none
Emitted when a mountable volume is added to the system.
Emitted when a mountable volume is added to the system.
|
Gio.VolumeMonitor | |
volume_changed (VolumeMonitor self, Volume volume)
:
none
Emitted when mountable volume is changed.
Emitted when mountable volume is changed.
|
Gio.VolumeMonitor | |
volume_removed (VolumeMonitor self, Volume volume)
:
none
Emitted when a mountable volume is removed from the system.
Emitted when a mountable volume is removed from the system.
|
Gio.VolumeMonitor |