Class e.p.w.w.WMDResource(ResourceProvider):

Part of elisa.plugins.wmd.wmd_resource View In Hierarchy

WMD resource provider. Provides volumes:// URI and sends messages on the bus when devices are plugged or unplugged (devices include CDs and DVDs).
Line # Kind Name Docs
97 Method initialize Initialize the component.
108 Method clean Clean the component.
121 Method get Simple method to retrieve volumes. You can access it with
145 Method _get_impl Undocumented
160 Method _udi_from_unit Undocumented
164 Method _create_model_from_unit Undocumented
180 Method _is_audio_cd Undocumented
187 Method _find_protocol Undocumented
203 Method _get_hotplug_info Get the hotplug info for the unit from its device driver.
224 Method _device_io_control Send a control code to the driver handling unit, getting a result in
242 Method _is_removable Undocumented
250 Method _filter Undocumented
260 Method _get_volume_info Undocumented
284 Method _drive_units_from_mask Undocumented
295 Method _on_device_change Undocumented
328 Method _send_new_devices Undocumented
344 Method _send_removed_devices Undocumented

Inherited from ResourceProvider:

Line # Kind Name Docs
103 Method post Update the resource pointed by uri with parameters.
116 Method put Put one resource into another. Both resources are identified with URIs.
138 Method delete Delete a Resource represented by a URI.

Inherited from Component (via ResourceProvider):

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.

Inherited from Loggable (via ResourceProvider, Component):

Line # Kind Name Docs
81 Method __init__ Undocumented
def initialize(self):
Initialize the component.

This method is called by Component.create to finish the initialization of a component.

Returnsa deferred called when a component is fully initialized (type: twisted.internet.defer.Deferred )
def clean(self):
Clean the component.

This method is called when a component is not needed anymore to clean its state.

Returnsa deferred called when the component has finished cleaning its state (type: twisted.internet.defer.Deferred )
def get(self, uri, context_model=None):
Simple method to retrieve volumes. You can access it with volumes:// and apply a filter parameter. If you specify it only these kind of volumes show up. Example:


:

 C{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

def _get_impl(self, filters, model):
Undocumented
def _udi_from_unit(self, unit):
Undocumented
def _create_model_from_unit(self, unit, protocol, volume_info):
Undocumented
def _is_audio_cd(self, unit):
Undocumented
def _find_protocol(self, unit, volume_info):
Undocumented
def _get_hotplug_info(self, unit):
Get the hotplug info for the unit from its device driver.
def _device_io_control(self, ioctl, unit, fmt):
Send a control code to the driver handling unit, getting a result in the format specified by fmt.
def _is_removable(self, unit):
Undocumented
def _filter(self, unit, protocol, filters):
Undocumented
def _get_volume_info(self, unit):
Undocumented
def _drive_units_from_mask(self, mask):
Undocumented
def _on_device_change(self, hwnd, msg, wparam, lparam):
Undocumented
def _send_new_devices(self, units):
Undocumented
def _send_removed_devices(self, units):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-03-02 18:56:05.