Class: Gio::VolumeMonitor

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#connected_drivesGLib::List

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().

Returns:

  • (GLib::List)

    a #GList of connected #GDrive objects.

#get_mount_for_uuid(uuid) ⇒ Gio::Mount

Finds a #GMount object by its UUID (see g_mount_get_uuid())

Parameters:

  • uuid (String)

    the UUID to look for

Returns:

  • (Gio::Mount)

    a #GMount or nil if no such mount is available. Free the returned object with g_object_unref().

#get_volume_for_uuid(uuid) ⇒ Gio::Volume

Finds a #GVolume object by its UUID (see g_volume_get_uuid())

Parameters:

  • uuid (String)

    the UUID to look for

Returns:

  • (Gio::Volume)

    a #GVolume or nil if no such volume is available. Free the returned object with g_object_unref().

#mountsGLib::List

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().

Returns:

  • (GLib::List)

    a #GList of #GMount objects.

#volumesGLib::List

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().

Returns:

  • (GLib::List)

    a #GList of #GVolume objects.