Gio.MountIface

Fields

Name

Type

Access

Description

can_eject

object

r

Checks if a Gio.Mount can be ejected.

can_unmount

object

r

Checks if a Gio.Mount can be unmounted.

changed

object

r

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

eject

object

r

Starts ejecting a Gio.Mount.

eject_finish

object

r

Finishes an eject operation.

eject_with_operation

object

r

Starts ejecting a Gio.Mount using a Gio.MountOperation.

eject_with_operation_finish

object

r

Finishes an eject operation using a Gio.MountOperation.

g_iface

GObject.TypeInterface

r

The parent interface.

get_default_location

object

r

Gets a Gio.File indication a start location that can be use as the entry point for this mount.

get_drive

object

r

Gets a Gio.Drive the volume of the mount is located on. Returns None if the Gio.Mount is not associated with a Gio.Drive or a Gio.Volume. This is convenience method for getting the Gio.Volume and using that to get the Gio.Drive.

get_icon

object

r

Gets a Gio.Icon for the Gio.Mount.

get_name

object

r

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

get_root

object

r

Gets a Gio.File to the root directory of the Gio.Mount.

get_sort_key

object

r

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

get_symbolic_icon

object

r

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

get_uuid

object

r

Gets the UUID for the Gio.Mount. 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.

get_volume

object

r

Gets a Gio.Volume the mount is located on. Returns None if the Gio.Mount is not associated with a Gio.Volume.

guess_content_type

object

r

Starts guessing the type of the content of a Gio.Mount. See Gio.Mount.guess_content_type() for more information on content type guessing. This operation was added in 2.18.

guess_content_type_finish

object

r

Finishes a content type guessing operation. Added in 2.18.

guess_content_type_sync

object

r

Synchronous variant of guess_content_type. Added in 2.18

pre_unmount

object

r

The ::pre-unmount signal that is emitted when the Gio.Mount will soon be emitted. If the recipient is somehow holding the mount open by keeping an open file on it it should close the file.

remount

object

r

Starts remounting a Gio.Mount.

remount_finish

object

r

Finishes a remounting operation.

unmount

object

r

Starts unmounting a Gio.Mount.

unmount_finish

object

r

Finishes an unmounting operation.

unmount_with_operation

object

r

Starts unmounting a Gio.Mount using a Gio.MountOperation.

unmount_with_operation_finish

object

r

Finishes an unmounting operation using a Gio.MountOperation.

unmounted

object

r

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

Methods

None

Details

class Gio.MountIface

Interface for implementing operations for mounts.