Foundry.DeviceProvider

g Foundry.Contextual Foundry.Contextual Foundry.DeviceProvider Foundry.DeviceProvider Foundry.Contextual->Foundry.DeviceProvider GObject.GInterface GObject.GInterface Gio.ListModel Gio.ListModel GObject.GInterface->Gio.ListModel Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Gio.ListModel->Foundry.DeviceProvider Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

Foundry.Contextual (4), GObject.Object (37), Json.Serializable (8), Gio.ListModel (4)

Structs:

GObject.ObjectClass (5)

device_added (device)

device_removed (device)

dup_name ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5), Gio.ListModel (3)

do_dup_name ()

Properties

Inherited:

Foundry.Contextual (1)

Signals

Inherited:

GObject.Object (1), Gio.ListModel (1)

Fields

Inherited:

GObject.Object (1), Gio.ListModel (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.DeviceProvider(**kwargs)
Bases:

Foundry.Contextual, Gio.ListModel

Abstract:

Yes

Structure:

Foundry.DeviceProviderClass

Abstract base class for plugins which want to provide specific device integration.

device_added(device)
Parameters:

device (Foundry.Device) –

device_removed(device)
Parameters:

device (Foundry.Device) –

dup_name()
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.

do_dup_name() virtual
Returns:

the name of the provider

Return type:

str

Gets a name for the provider that is expected to be displayed to users such as “Flatpak”.