RB.DeviceSource

g GObject.GInterface GObject.GInterface RB.DeviceSource RB.DeviceSource GObject.GInterface->RB.DeviceSource

Implementations:

None

Methods

class

uri_is_source (source, uri)

class

want_uri (source, uri)

can_eject ()

default_eject ()

eject ()

set_display_details ()

Virtual Methods

do_can_eject ()

do_eject ()

Properties

None

Signals

None

Fields

None

Class Details

class RB.DeviceSource
Bases:

GObject.GInterface

Structure:

RB.DeviceSourceInterface

classmethod uri_is_source(source, uri)
Parameters:
Returns:

True if uri matches source

Return type:

bool

Returns True if uri matches source. This should be used to implement the uri_is_source RB.Source method.

classmethod want_uri(source, uri)
Parameters:
Returns:

URI match strength

Return type:

int

Checks whether uri identifies a path underneath the device’s mount point. Should be used to implement the RB.Source want_uri method.

can_eject()
Return type:

bool

default_eject()

Default method for ejecting devices. Implementations can perform any required work before ejecting, then call this do eject the device.

eject()

Ejects the device that the source represents.

set_display_details()

Sets the icon and display name for a device-based source. The details come from the mount and/or volume. This should be called in the source’s constructed method.

do_can_eject() virtual
Return type:

bool

do_eject() virtual

Ejects the device that the source represents.