Foundry.Device

g Foundry.Contextual Foundry.Contextual Foundry.Device Foundry.Device Foundry.Contextual->Foundry.Device GObject.GInterface GObject.GInterface Json.Serializable Json.Serializable GObject.GInterface->Json.Serializable GObject.Object GObject.Object GObject.Object->Foundry.Contextual Json.Serializable->Foundry.Contextual

Subclasses:

Foundry.LocalDevice

Methods

Inherited:

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

Structs:

GObject.ObjectClass (5)

dup_id ()

get_active ()

load_info ()

Virtual Methods

Inherited:

GObject.Object (7), Json.Serializable (5)

do_dup_id ()

do_load_info ()

Properties

Inherited:

Foundry.Contextual (1)

Name

Type

Flags

Short Description

active

bool

r

id

str

r

provider

Foundry.DeviceProvider

r

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

Foundry.Contextual

r

Class Details

class Foundry.Device(**kwargs)
Bases:

Foundry.Contextual

Abstract:

Yes

Structure:

Foundry.DeviceClass

Represents a local or remote device that can be deployed to.

dup_id()
Returns:

a newly allocated string

Return type:

str

Gets the user-visible id for the device.

get_active()
Return type:

bool

load_info()
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.DeviceInfo].

Return type:

Dex.Future

Loads information about the device.

do_dup_id() virtual
Returns:

a newly allocated string

Return type:

str

Gets the user-visible id for the device.

do_load_info() virtual
Returns:

a [class`Dex`.Future] that resolves to a [class`Foundry`.DeviceInfo].

Return type:

Dex.Future

Loads information about the device.

Property Details

Foundry.Device.props.active
Name:

active

Type:

bool

Default Value:

False

Flags:

READABLE

Foundry.Device.props.id
Name:

id

Type:

str

Default Value:

None

Flags:

READABLE

Foundry.Device.props.provider
Name:

provider

Type:

Foundry.DeviceProvider

Default Value:

None

Flags:

READABLE