Foundry.DeviceManager

g Foundry.Contextual Foundry.Contextual Foundry.Service Foundry.Service Foundry.Contextual->Foundry.Service Foundry.DeviceManager Foundry.DeviceManager Foundry.Service->Foundry.DeviceManager 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.DeviceManager Json.Serializable->Foundry.Contextual

Subclasses:

None

Methods

Inherited:

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

Structs:

Foundry.ServiceClass (3), GObject.ObjectClass (5)

dup_device ()

find_device (device_id)

set_device (device)

Virtual Methods

Inherited:

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

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

device

Foundry.Device

r/w/en

Signals

Inherited:

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

Fields

Inherited:

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

Class Details

class Foundry.DeviceManager(**kwargs)
Bases:

Foundry.Service, Gio.ListModel

Abstract:

No

Structure:

Foundry.DeviceManagerClass

Manage plugins providing device integration and their devices.

dup_device()
Returns:

a Foundry.Device or None

Return type:

Foundry.Device or None

Gets the active device to build for.

Typically this is a Foundry.LocalDevice unless targeting a non-local device.

find_device(device_id)
Parameters:

device_id (str) – an identifier matching a Foundry.Device :id

Returns:

a Foundry.Device or None

Return type:

Foundry.Device or None

Looks through available devices to find one matching device_id.

set_device(device)
Parameters:

device (Foundry.Device) –

Property Details

Foundry.DeviceManager.props.device
Name:

device

Type:

Foundry.Device

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY