Create  Edit  FrontPage  Index  Search  Changes  History  RSS  Login

GLib::VolumeMonitor

class GLib::VolumeMonitor

GLib::VolumeMonitor 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.

GLib::VolumeMonitor is not thread-default-context aware, and so should not be used other than from the main thread, with no thread-default-context active.

Class Methods

GLib::VolumeMonitor.get
Gets the volume monitor used by GIO.

Instance Methods

connected_drives
Gets an Array of drives connected to the system.
get_mount_for_uuid(uuid)
Finds a GLib::Mount object by its UUID (see GLib::Mount#uuid).
  • uuid: The UUID to look for
  • Returns: A GLib::Mount, or nil if no such mount is available
get_volume_for_uuid(uuid)
Finds a GLib::Volume object by its UUID (see GLib::Volume#uuid).
  • uuid: The UUID to look for
  • Returns: A GLib::Volume, or nil if no such volume is available
mounts
Gets an Array of the mounts on the system.
volumes
Gets an array of the volumes on the system.

Constants

EXTENSION_POINT_NAME
Extension point for volume monitor functionality. See Extending GIO.

Signals

drive-changed: self, drive
This signal is emitted when a drive changes.
drive-connected: self, drive
This signal is emitted when a drive is connected.
drive-disconnected: self, drive
This signal is emitted when a drive is disconnected.
drive-eject-button: self, drive
This signal is emitted when a drive’s eject button is pressed.
drive-stop-button: self, drive
This signal is emitted when a drive’s stop button is pressed.
mount-added: self, mount
This signal is emitted when a mount is added.
mount-changed: self, mount
This signal is emitted when a mount is changed.
mount-pre-unmount: self, mount
This signal is emitted when a mount is about to be removed.
mount-removed: self, mount
This signal is emitted when a mount is removed.
volume-added: self, volume
This signal is emitted when a volue is added.
volume-changed: self, volume
This signal is emitted when a volue is changed.
volume-removed: self, volume
This signal is emitted when a volue is removed.
Last modified:2010/12/27 21:59:23
Keyword(s):
References:[index-ruby-gio2] [Ruby/GIO] [index-ruby-glib2] [GLib::Mount] [GLib::VolumeMonitor] [GLib::Volume]