??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
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()