| Trees | Indices | Help |
|
|---|
|
|
HAL resource provider. Provides volumes:// URI and sends messages on the bus when devices are plugged or unplugged (devices include CDs and DVDs).
| Instance Methods | |||
twisted.internet.defer.Deferred
|
|
||
twisted.internet.defer.Deferred
|
|
||
| tuple of elisa.core.components.model.Model elisa.core.utils.defer.Deferred |
|
||
|
|||
|
|||
|
Inherited from Inherited from |
|||
| Inherited from core.components.resource_provider.ResourceProvider | |||
|---|---|---|---|
| elisa.core.utils.defer.Deferred |
|
||
| elisa.core.utils.defer.Deferred |
|
||
| elisa.core.utils.defer.Deferred |
|
||
| Inherited from core.component.Component | |||
|
|||
|
|||
| Inherited from core.log.Loggable | |||
|
|||
| Class Methods | |||
| Inherited from core.component.Component | |||
|---|---|---|---|
| elisa.core.component.Component or a subclass |
|
||
| Class Variables | |
log_category = "hal_resource"
|
|
volumes_uri = '^volumes://'
|
|
volumes_re = re.compile(volumes_uri)
|
|
device_uri = '^device://'
|
|
device_re = re.compile(device_uri)
|
|
| str |
supported_uri = volumes_uri+ '|'+ device_uriregular expression defining what URIs a ResourceProvider can handle |
default_filter = 'removable', 'dvd', 'cdda'
|
|
|
Inherited from |
|
| Inherited from core.component.Component | |
|---|---|
config_doc = {}
|
|
default_config = {}
|
|
name = property(fget= name__get, fset= name__set)
|
|
path = PathDescriptor()
|
|
| Properties | |
|
Inherited from |
| Method Details |
Initialize the component. This method is called by
|
Clean the component. This method is called when a component is not needed anymore to clean its state.
|
Simple method to retrieve volumes or other devices. Access to volumes is done using the : volumes://localhost/?filter=dvd,cdda would only give you dvds and cddas. The three knows filters are: dvd, removable and cdda. The default is that all filters are applied (like filter=dvd,cdda,removable). In return you get a elisa.plugins.base.models.device.DevicesModel Access to any kind of device is done using the
: device://localhost/org/freedesktop/Hal/devices/computer would return a elisa.plugins.hal.hal.HALDeviceModel containing all the informations about the computer device. Please note though, that get() will return a None model at first and that the correct model will be returned by the callback of the deferred.
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Tue Dec 1 10:55:05 2009 | http://epydoc.sourceforge.net |