Class e.c.i.InputManager(Manager, gobject.GObject):

Part of elisa.core.input_manager View In Hierarchy

InputManager provides a common place to retrieve input events coming from a GUI toolkit, additional input sources or even a network. InputEvents can be pushed by elisa.core.components.input_provider.InputProviders or be polled by the InputManager, depending on the implementation chosen: elisa.core.components.input_provider.PollInputProvider or elisa.core.components.input_provider.PushInputProvider.

Other objects can connect to the manager's signals that are emitted when elisa.core.input_event.InputEvents coming from elisa.core.components.input_provider.InputProviders are received.

Line # Kind Name Docs
51 Method __init__ Undocumented
58 Method clean Undocumented
64 Method process_event Fire the signal corresponding to the event.
84 Method register_component Register a new InputProvider in the InputManager so that the
95 Method unregister_component Clean the InputProvider and unregister it from the InputManager;
106 Method _bind_component Undocumented
116 Method _unbind_component Undocumented
122 Method _check_polling Undocumented
134 Method _poll_events Poll each registered PollInputProvider for InputEvents to

Inherited from Manager:

Line # Kind Name Docs
194 Method plugin_status_changed_cb Callback meant to be invoked (by the plugin registry) when the status
70 Method _clean_component Undocumented
77 Method _load_components Asynchronously load and register a list of components.
117 Method _unload_components Asynchronously unregister and unload a list of components.
def __init__(self):
Undocumented
def clean(self):
Undocumented
def process_event(self, event):
Fire the signal corresponding to the event.

Each event type is mapped to a signal instance to which other elisa components can connect (e.g to monitor user key presses).

This method can be called by elisa.core.components.input_provider.PushInputProvider components when they receive input data from the input device.

Parameterseventthe event to process (type: elisa.core.input_event.InputEvent )
def register_component(self, component):
Register a new InputProvider in the InputManager so that the events collected by the former are propagated by the latter.
Parameterscomponentthe InputProvider instance to register (type: elisa.core.components.input_provider.InputProvider )
def unregister_component(self, component):
Clean the InputProvider and unregister it from the InputManager; no events from the InputProvider will be propagated anymore.
Parameterscomponentthe InputProvider instance to unregister (type: elisa.core.components.input_provider.InputProvider )
def _bind_component(self, result, component):
Undocumented
def _unbind_component(self, result, component):
Undocumented
def _check_polling(self):
Undocumented
def _poll_events(self):
Poll each registered PollInputProvider for InputEvents to process.
API Documentation for Elisa Media Center, generated by pydoctor at 2009-02-16 19:15:05.