coherence.upnp.core.device (module)¶
Devices¶
This module contains two classes describing UPnP devices.
RootDevice
¶
A device representing a root device.
-
class
Device
(parent=None, udn=None)[source]¶ Bases:
eventdispatcher.eventdispatcher.EventDispatcher
,coherence.log.LogAble
Represents a UPnP’s device, but this is not a root device, it’s the base class used for any device. See
RootDevice
if you want a root device.-
Changed in version 0.9.0:
Migrated from extern.louie to EventDispatcher
The emitted events changed:
- Coherence.UPnP.Device.detection_completed => device_detection_completed
- Coherence.UPnP.Device.remove_client => device_remove_client
New events: device_service_notified, device_got_client
Changes some class variables to be EventDispatcher’s properties
-
logCategory
= 'device'¶
-
client
¶
-
icons
¶
-
devices
¶
-
detection_completed
¶
-
on_client
(*args)[source]¶ Automatically triggered whenever a client is set or changed. Emmit an event notifying that the client has changed.
New in version 0.9.0.
-
class
RootDevice
(infos)[source]¶ Bases:
coherence.upnp.core.device.Device
Description for a root device.
-
Changed in version 0.9.0:
Migrated from extern.louie to EventDispatcher
The emitted events changed:
- Coherence.UPnP.RootDevice.detection_completed => root_device_detection_completed
- Coherence.UPnP.RootDevice.removed => root_device_removed
-
root_detection_completed
¶