mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-07 22:02:12 +08:00
dringctrl: add signal callbacks with data
Change-Id: Ief11a7a484973c15ff5fd03fb64240f267527b2b
This commit is contained in:
@ -250,6 +250,9 @@ class DRingCtrl(Thread):
|
||||
self.onCallOver_cb()
|
||||
del self.activeCalls[callid]
|
||||
|
||||
def onCallStateChanged_cb(self, callid, state, code):
|
||||
pass
|
||||
|
||||
def onCallStateChanged(self, callid, state, code):
|
||||
""" On call state changed event, set the values for new calls,
|
||||
or delete the call from the list of active calls
|
||||
@ -286,13 +289,18 @@ class DRingCtrl(Thread):
|
||||
self.onCallInactive(callid,state)
|
||||
else:
|
||||
print("unknown state:" + str(state))
|
||||
self.onCallStateChanged_cb(callid, state, code)
|
||||
|
||||
def onConferenceCreated_cb(self):
|
||||
pass
|
||||
|
||||
def onConferenceCreated_callback(self, confId):
|
||||
pass
|
||||
|
||||
def onConferenceCreated(self, confId):
|
||||
self.currentConfId = confId
|
||||
self.onConferenceCreated_cb()
|
||||
self.onConferenceCreated_callback(confId)
|
||||
|
||||
def onDataTransferEvent(self, transferId, code):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user