| Home | Trees | Indices | Help |
|---|
|
|
twisted.application.service.Service --+
|
HardwareMonitor
A generic hardware monitor class based on HAL. Listens for device add/remove filtered on a specific subsystem.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
deviceInfo = Nonedict which will be filled with device information. |
|||
events = NoneIf set, point to a sparked.events.EventDispatcher to dispatch <subsystem>-{added,removed} events to. |
|||
subsystem = NoneThe HAL subsystem type to monitor. |
|||
uniquePath = NoneIf set, point to a directory where the symlinks to the unique devices will be made, e.g. |
|||
|
|||
This method will be called when a device has been added. If you subclass this class, this method can be overruled to do application-specific stuff. |
This method will be called when a device has been removed. If you subclass this class, this method can be overruled to do application-specific stuff. |
|
|
|
|||
deviceInfodict which will be filled with device information. Key is the HAL UDI (Unique Device Identifier).
|
subsystemThe HAL subsystem type to monitor. E.g. serial, video4linux, ...
|
uniquePathIf set, point to a directory where the symlinks to the unique devices will be made, e.g. /dev/serial/by-id/
|
| Home | Trees | Indices | Help |
|---|
| Generated by Epydoc 3.0.1 on Thu Sep 30 15:21:52 2010 | http://epydoc.sourceforge.net |