Gio.VolumeIface

Fields

Name

Type

Access

Description

can_eject

object

r

Checks if a Gio.Volume can be ejected.

can_mount

object

r

Returns True if the Gio.Volume can be mounted.

changed

object

r

Changed signal that is emitted when the volume’s state has changed.

eject

object

r

Ejects a given Gio.Volume.

eject_finish

object

r

Finishes an eject operation.

eject_with_operation

object

r

Starts ejecting a Gio.Volume using a Gio.MountOperation.

eject_with_operation_finish

object

r

Finishes an eject operation using a Gio.MountOperation.

enumerate_identifiers

object

r

Returns an array strings listing the kinds of identifiers which the Gio.Volume has.

g_iface

GObject.TypeInterface

r

The parent interface.

get_activation_root

object

r

Returns the activation root for the Gio.Volume if it is known in advance or None if it is not known.

get_drive

object

r

Gets a Gio.Drive the volume is located on. Returns None if the Gio.Volume is not associated with a Gio.Drive.

get_icon

object

r

Gets a Gio.Icon for the Gio.Volume.

get_identifier

object

r

Returns the identifier of the given kind, or None if the Gio.Volume doesn’t have one.

get_mount

object

r

Gets a Gio.Mount representing the mounted volume. Returns None if the Gio.Volume is not mounted.

get_name

object

r

Gets a string containing the name of the Gio.Volume.

get_sort_key

object

r

Gets a key used for sorting Gio.Volume instance or None if no such key exists.

get_symbolic_icon

object

r

Gets a symbolic Gio.Icon for the Gio.Volume.

get_uuid

object

r

Gets the UUID for the Gio.Volume. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns None if there is no UUID available.

mount_finish

object

r

Finishes a mount operation.

mount_fn

object

r

Mounts a given Gio.Volume. Gio.Volume implementations must emit the Gio.MountOperation ::aborted signal before completing a mount operation that is aborted while awaiting input from the user through a Gio.MountOperation instance.

removed

object

r

The removed signal that is emitted when the Gio.Volume have been removed. If the recipient is holding references to the object they should release them so the object can be finalized.

should_automount

object

r

Returns True if the Gio.Volume should be automatically mounted.

Methods

None

Details

class Gio.VolumeIface

Interface for implementing operations for mountable volumes.