зеркало из https://github.com/mozilla/gecko-dev.git
Bug 843452 - Part 4-1: Interface changes for gonk backend. r=hsinyi
This commit is contained in:
Родитель
bbf6e5c16f
Коммит
892cdd18e9
|
@ -13,4 +13,9 @@ XPIDL_SOURCES += [
|
|||
'nsINeighboringCellInfo.idl',
|
||||
]
|
||||
|
||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk':
|
||||
XPIDL_SOURCES += [
|
||||
'nsIMobileConnectionGonkService.idl',
|
||||
]
|
||||
|
||||
XPIDL_MODULE = 'dom_mobileconnection'
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#include "nsIMobileConnectionService.idl"
|
||||
|
||||
%{C++
|
||||
#define NS_MOBILECONNECTION_GONK_SERVICE_CONTRACTID \
|
||||
"@mozilla.org/mobileconnection/mobileconnectiongonkservice;1"
|
||||
%}
|
||||
|
||||
[scriptable, uuid(c5baceda-247a-4018-855d-ad5b00f2e4e2)]
|
||||
interface nsIMobileConnectionGonkService : nsIMobileConnectionService
|
||||
{
|
||||
void notifyNetworkInfoChanged(in unsigned long clientId, in jsval networkInfo);
|
||||
|
||||
void notifyVoiceInfoChanged(in unsigned long clientId, in jsval voiceInfo);
|
||||
|
||||
void notifyDataInfoChanged(in unsigned long clientId, in jsval dataInfo);
|
||||
|
||||
void notifyDataError(in unsigned long clientId, in DOMString message);
|
||||
|
||||
void notifySignalStrengthChanged(in unsigned long clientId, in jsval signal);
|
||||
|
||||
void notifyOperatorChanged(in unsigned long clientId, in jsval info);
|
||||
|
||||
void notifyOtaStatusChanged(in unsigned long clientId, in DOMString status);
|
||||
|
||||
void notifyRadioStateChanged(in unsigned long clientId,
|
||||
in DOMString radioState);
|
||||
|
||||
void notifyUssdReceived(in unsigned long clientId,
|
||||
in DOMString message,
|
||||
in boolean sessionEnded);
|
||||
|
||||
void notifyEmergencyCallbackModeChanged(in unsigned long clientId,
|
||||
in boolean active,
|
||||
in unsigned long timeoutMs);
|
||||
|
||||
void notifyIccChanged(in unsigned long clientId, in DOMString iccId);
|
||||
|
||||
void notifyNetworkSelectModeChanged(in unsigned long clientId,
|
||||
in DOMString mode);
|
||||
|
||||
void notifySpnAvailable(in unsigned long clientId);
|
||||
|
||||
void notifyLastHomeNetworkChanged(in unsigned long clientId,
|
||||
in DOMString network);
|
||||
};
|
|
@ -31,24 +31,14 @@ interface nsIVoicemailInfo : nsISupports
|
|||
readonly attribute DOMString displayName;
|
||||
};
|
||||
|
||||
[scriptable, uuid(8f33281f-b262-4bc6-9862-2cab897245ac)]
|
||||
[scriptable, uuid(0226a2c1-a3b9-416a-92cb-c89e4dad4be0)]
|
||||
interface nsIRilContext : nsISupports
|
||||
{
|
||||
readonly attribute DOMString radioState;
|
||||
|
||||
readonly attribute DOMString cardState;
|
||||
|
||||
readonly attribute long retryCount;
|
||||
|
||||
readonly attribute DOMString imsi;
|
||||
|
||||
readonly attribute DOMString networkSelectionMode;
|
||||
|
||||
readonly attribute nsIDOMMozIccInfo iccInfo;
|
||||
|
||||
readonly attribute nsIMobileConnectionInfo voice;
|
||||
|
||||
readonly attribute nsIMobileConnectionInfo data;
|
||||
};
|
||||
|
||||
[scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
|
||||
|
|
Загрузка…
Ссылка в новой задаче