Commit cc84db57 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Do not wrap single listener as all of them are multi listener now

parent 6ac6f726
......@@ -231,7 +231,7 @@ class PythonTranslator(object):
listenedClass = _method.find_first_ancestor_by_type(AbsApi.Interface).listenedClass
callbackDict['callback_setter'] = listenedClass.name.to_snake_case(fullName=True) + '_cbs_set_' + _method.name.to_snake_case()[3:]
callbackDict['is_single_listener'] = listenedClass.singlelistener
#callbackDict['is_single_listener'] = listenedClass.singlelistener
callbackDict['is_multi_listener'] = listenedClass.multilistener
callbackDict['params'] = []
......@@ -422,8 +422,8 @@ class PythonTranslator(object):
if _obj.multilistener:
objDict['methods'].append(self.create_add_callbacks_method(_obj))
objDict['methods'].append(self.create_remove_callbacks_method(_obj))
if _obj.singlelistener:
objDict['properties'].append(self.create_get_callbacks_method(_obj))
#if _obj.singlelistener:
# objDict['properties'].append(self.create_get_callbacks_method(_obj))
for _method in _obj.classMethods:
objDict['methods'].append(self.translate_object_method(_obj, _method, True))
......@@ -466,8 +466,8 @@ class Pylinphone(object):
self.c_methods.append(translator.create_c_add_callback_for_interface(_class))
self.c_methods.append(translator.create_c_remove_callback_for_interface(_class))
self.factory_constructors.append(translator.create_listener_constructor(_class))
if _class.singlelistener:
self.c_methods.append(translator.create_c_get_callbacks_for_interface(_class))
#if _class.singlelistener:
# self.c_methods.append(translator.create_c_get_callbacks_for_interface(_class))
self.c_methods.append(translator.create_c_listener_constructor(_class))
self.c_classes.append(translator.translate_c_class(_class))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment