jvconnected.ui.models.engine

class jvconnected.ui.models.engine.EngineModel(*args)[source]

Bases: jvconnected.ui.utils.GenericQObject

Qt Bridge to jvconnected.engine.Engine

This object creates an instance of jvconnected.engine.Engine and handles all necessary interaction with it

Attributes

engine – The engine instance

Events
deviceAdded(device: DeviceModel)

Fired when an active device is added to the engine

Parameters

device (jvconnected.ui.models.device.DeviceModel) – The model for the added device

configDeviceAdded(conf_device: DeviceConfigModel)

Fired when a device is detected or loaded from config

Parameters

conf_device (jvconnected.ui.models.device.DeviceConfigModel) – The model for the device

open()[source]

Open the engine See jvconnected.engine.Engine.open()

close()[source]

Close the engine See jvconnected.engine.Engine.close()

getDeviceConfig(device_id: str) jvconnected.ui.models.device.DeviceConfigModel[source]

Get a jvconnected.ui.models.device.DeviceConfigModel by its deviceId

getAllDeviceConfigIds() List[str][source]

Get a list of all device ids in the jvconnected.config.Config

getDevice(device_id: str) jvconnected.ui.models.device.DeviceModel[source]

Get a jvconnected.ui.models.device.DeviceModel by its deviceId

running = <PySide2.QtCore.Property object>

Run state