Closed Bug 1125024 Opened 11 years ago Closed 11 years ago

[Telephony] Use nsIGonkTelephonyService.notifyCallStateChanged to replace notifyCallDisconnected

Categories

(Firefox OS Graveyard :: RIL, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: aknow, Assigned: aknow)

Details

Attachments

(1 file, 1 obsolete file)

I think notifyCallDisconnected(call) could be replace by notifyCallStateChanged(call) with call.state == DISCONNECTED. The reasons why I'd like to do this are: - 1. To simplify and reduce the interface. - 2. It's not symmetric. We provide a special interface for removing a call but we don't have a similar one for adding a new call.
NI hsinyi for her opinion.
Flags: needinfo?(htsai)
This makes sense to me!
Flags: needinfo?(htsai)
Attached patch Remove notifyCallDisconnected (obsolete) — Splinter Review
I forgot that there is no CALL_STATE_DISCONNECTED in ril. So I chose to use CALL_STATE_UNKNOWN. We also use the same state for conferenceCallState to represent something is 'not existing'.
Attachment #8553658 - Flags: review?(htsai)
Attachment #8553658 - Attachment is obsolete: true
Attachment #8553658 - Flags: review?(htsai)
Attachment #8554355 - Flags: review?(htsai)
Comment on attachment 8554355 [details] [diff] [review] #2 Remove notifyCallDisconnected Review of attachment 8554355 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/telephony/gonk/TelephonyService.js @@ +270,5 @@ > > _convertRILCallState: function(aState) { > switch (aState) { > case RIL.CALL_STATE_UNKNOWN: > + return nsITelephonyService.CALL_STATE_DISCONNECTED; This change works fine for a single call, but it sort of changes "conference call" behaviour. To not require changes on gaia or qcril, I'd suggest either 1) map nsITelephonyService.CALL_STATE_DISCONNECTED to an empty string in [1], or 2) introduce RIL.CALL_STATE_DISCONNECTED How do you think? thank you! [1] https://dxr.mozilla.org/mozilla-central/source/dom/telephony/TelephonyCallGroup.cpp?from=TelephonyCallGroup.cpp#93
Attachment #8554355 - Flags: review?(htsai)
I am going to do a change that introducing nsIGonkTelephonyService.notifyCurrentCalls to replace both notifyCallStateChanged and notifyCallDisconnected. With that change, this bug is not needed. So, set it to WONTFIX.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: