from . import interfaces from . import controller from . import dbus_exporter as dbus def export(*args, **kwargs): """Decorator, use to mark exportable methods.""" def wrapper(method): method.export_params = [ args, kwargs ] return method return wrapper def signal(*args, **kwargs): """Decorator, use to mark exportable signals.""" def wrapper(method): method.signal_params = [ args, kwargs ] return method return wrapper def register_exporter(instance): if not isinstance(instance, interfaces.ExporterInterface): raise Exception() ctl = controller.ExportsController.get_instance() return ctl.register_exporter(instance) def register_object(instance): if not isinstance(instance, interfaces.ExportableInterface): raise Exception() ctl = controller.ExportsController.get_instance() return ctl.register_object(instance) def start(): ctl = controller.ExportsController.get_instance() return ctl.start() def stop(): ctl = controller.ExportsController.get_instance() return ctl.stop()
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.__init__.pyo.40009 | File | 2.16 KB | 0644 |
|
.controller.pyo.40009 | File | 3.47 KB | 0644 |
|
.dbus_exporter.pyo.40009 | File | 6.91 KB | 0644 |
|
.interfaces.pyo.40009 | File | 1.51 KB | 0644 |
|
__init__.py | File | 1014 B | 0644 |
|
__init__.pyc | File | 2.16 KB | 0644 |
|
__init__.pyo | File | 2.16 KB | 0644 |
|
controller.py | File | 1.91 KB | 0644 |
|
controller.pyc | File | 3.47 KB | 0644 |
|
controller.pyo | File | 3.47 KB | 0644 |
|
dbus_exporter.py | File | 4.92 KB | 0644 |
|
dbus_exporter.pyc | File | 6.91 KB | 0644 |
|
dbus_exporter.pyo | File | 6.91 KB | 0644 |
|
interfaces.py | File | 555 B | 0644 |
|
interfaces.pyc | File | 1.51 KB | 0644 |
|
interfaces.pyo | File | 1.51 KB | 0644 |
|