Class e.p.c.u.UPnPMediaServer(pb.Referenceable, service_provider.ServiceProvider):

Part of elisa.plugins.coherence.upnp_media_server View In Hierarchy

Provides UPnP clients access to UPnP resources
Line # Kind Name Docs
199 Method __init__ Undocumented
209 Method initialize Initialize the component.
233 Method clean Clean the component.
239 Method add_media_location Undocumented
251 Method remove_media_location Undocumented
258 Method enable_coherence Undocumented
439 Method remote_get_media_root_id Undocumented
449 Method remote_get_media_node_with_id Returns a dict with following keys:
214 Method _bus_message_received Undocumented
266 Method _next_id Undocumented
275 Method _got_children Undocumented
318 Method _db_filter Undocumented
345 Method _get_containers Undocumented
402 Method _node_to_dict Undocumented

Inherited from ServiceProvider:

Line # Kind Name Docs
31 Method start Start the service.
38 Method stop Stop the service.

Inherited from Component (via ServiceProvider):

Line # Kind Name Docs
85 Class PathDescriptor Undocumented
97 Class Method create Create and initialize the component.
def __init__(self):
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 _bus_message_received(self, msg, sender):
Undocumented
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 add_media_location(self, location):
Undocumented
def remove_media_location(self, location):
Undocumented
def enable_coherence(self, host, port):
Undocumented
def _next_id(self):
Undocumented
@defer.deferredGenerator
def _got_children(self, children, parent):
Undocumented
def _db_filter(self, kind, media_type, parent):
Undocumented
def _get_containers(self, tree, parent=None):
Undocumented
def _node_to_dict(self, node, parent_id):
Undocumented
def remote_get_media_root_id(self, media_type):
Undocumented
def remote_get_media_node_with_id(self, container_id):
Returns a dict with following keys: id = id in the media db parent_id = parent_id in the media db name = title, album name or basename mimetype = 'directory' or real mimetype size = in bytes (??) children = list of objects for which this item is the parent location = filesystem path if item is a file
API Documentation for Elisa Media Center, generated by pydoctor at 2008-11-19 19:51:49.