зеркало из https://github.com/mozilla/gecko-dev.git
Bug 912849 - part4 - gonk & ril impl. r=vicamo
This commit is contained in:
Родитель
361966b5bc
Коммит
820981b6d2
|
@ -1021,6 +1021,10 @@ RadioInterface.prototype = {
|
||||||
message.callIndex,
|
message.callIndex,
|
||||||
message.notification);
|
message.notification);
|
||||||
break;
|
break;
|
||||||
|
case "conferenceError":
|
||||||
|
gTelephonyProvider.notifyConferenceError(message.errorName,
|
||||||
|
message.errorMsg);
|
||||||
|
break;
|
||||||
case "emergencyCbModeChange":
|
case "emergencyCbModeChange":
|
||||||
this.handleEmergencyCbModeChange(message);
|
this.handleEmergencyCbModeChange(message);
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -5040,6 +5040,10 @@ RIL[REQUEST_SWITCH_HOLDING_AND_ACTIVE] = function REQUEST_SWITCH_HOLDING_AND_ACT
|
||||||
RIL[REQUEST_CONFERENCE] = function REQUEST_CONFERENCE(length, options) {
|
RIL[REQUEST_CONFERENCE] = function REQUEST_CONFERENCE(length, options) {
|
||||||
if (options.rilRequestError) {
|
if (options.rilRequestError) {
|
||||||
this._hasConferenceRequest = false;
|
this._hasConferenceRequest = false;
|
||||||
|
options = {rilMessageType: "conferenceError",
|
||||||
|
errorName: "addError",
|
||||||
|
errorMsg: RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]};
|
||||||
|
this.sendChromeMessage(options);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -5629,7 +5633,15 @@ RIL[REQUEST_BASEBAND_VERSION] = function REQUEST_BASEBAND_VERSION(length, option
|
||||||
this.basebandVersion = Buf.readString();
|
this.basebandVersion = Buf.readString();
|
||||||
if (DEBUG) debug("Baseband version: " + this.basebandVersion);
|
if (DEBUG) debug("Baseband version: " + this.basebandVersion);
|
||||||
};
|
};
|
||||||
RIL[REQUEST_SEPARATE_CONNECTION] = null;
|
RIL[REQUEST_SEPARATE_CONNECTION] = function REQUEST_SEPARATE_CONNECTION(length, options) {
|
||||||
|
if (options.rilRequestError) {
|
||||||
|
options = {rilMessageType: "conferenceError",
|
||||||
|
errorName: "removeError",
|
||||||
|
errorMsg: RIL_ERROR_TO_GECKO_ERROR[options.rilRequestError]};
|
||||||
|
this.sendChromeMessage(options);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
RIL[REQUEST_SET_MUTE] = null;
|
RIL[REQUEST_SET_MUTE] = null;
|
||||||
RIL[REQUEST_GET_MUTE] = null;
|
RIL[REQUEST_GET_MUTE] = null;
|
||||||
RIL[REQUEST_QUERY_CLIP] = function REQUEST_QUERY_CLIP(length, options) {
|
RIL[REQUEST_QUERY_CLIP] = function REQUEST_QUERY_CLIP(length, options) {
|
||||||
|
|
|
@ -574,6 +574,12 @@ TelephonyProvider.prototype = {
|
||||||
this._notifyAllListeners("conferenceCallStateChanged", [aState]);
|
this._notifyAllListeners("conferenceCallStateChanged", [aState]);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
notifyConferenceError: function notifyConferenceError(aName, aMessage) {
|
||||||
|
if (DEBUG) debug("handleConferenceError: " + aName + "." +
|
||||||
|
" Error details: " + aMessage);
|
||||||
|
this._notifyAllListeners("notifyConferenceError", [aName, aMessage]);
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* nsIObserver interface.
|
* nsIObserver interface.
|
||||||
*/
|
*/
|
||||||
|
|
Загрузка…
Ссылка в новой задаче