Skip to content
Snippets Groups Projects
Commit e1e3a39a authored by Reese Wilson's avatar Reese Wilson
Browse files

dringctrl: add signal callbacks with data

Change-Id: Ief11a7a484973c15ff5fd03fb64240f267527b2b
parent f58647ea
No related branches found
No related tags found
No related merge requests found
...@@ -250,6 +250,9 @@ class DRingCtrl(Thread): ...@@ -250,6 +250,9 @@ class DRingCtrl(Thread):
self.onCallOver_cb() self.onCallOver_cb()
del self.activeCalls[callid] del self.activeCalls[callid]
def onCallStateChanged_cb(self, callid, state, code):
pass
def onCallStateChanged(self, callid, state, code): def onCallStateChanged(self, callid, state, code):
""" On call state changed event, set the values for new calls, """ On call state changed event, set the values for new calls,
or delete the call from the list of active calls or delete the call from the list of active calls
...@@ -286,13 +289,18 @@ class DRingCtrl(Thread): ...@@ -286,13 +289,18 @@ class DRingCtrl(Thread):
self.onCallInactive(callid,state) self.onCallInactive(callid,state)
else: else:
print("unknown state:" + str(state)) print("unknown state:" + str(state))
self.onCallStateChanged_cb(callid, state, code)
def onConferenceCreated_cb(self): def onConferenceCreated_cb(self):
pass pass
def onConferenceCreated_callback(self, confId):
pass
def onConferenceCreated(self, confId): def onConferenceCreated(self, confId):
self.currentConfId = confId self.currentConfId = confId
self.onConferenceCreated_cb() self.onConferenceCreated_cb()
self.onConferenceCreated_callback(confId)
def onDataTransferEvent(self, transferId, code): def onDataTransferEvent(self, transferId, code):
pass pass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment