diff options
Diffstat (limited to 'dom/system/gonk/nsIDataCallManager.idl')
-rw-r--r-- | dom/system/gonk/nsIDataCallManager.idl | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/dom/system/gonk/nsIDataCallManager.idl b/dom/system/gonk/nsIDataCallManager.idl new file mode 100644 index 000000000..de8477801 --- /dev/null +++ b/dom/system/gonk/nsIDataCallManager.idl @@ -0,0 +1,81 @@ +/* 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 "nsISupports.idl" +#include "nsINetworkInterface.idl" + +[scriptable, uuid(b8bcd6aa-5b06-4362-a68c-317878429e51)] +interface nsIRilNetworkInfo : nsINetworkInfo +{ + readonly attribute unsigned long serviceId; + readonly attribute DOMString iccId; + + /* The following attributes are for MMS proxy settings. */ + readonly attribute DOMString mmsc; // Empty string if not set. + readonly attribute DOMString mmsProxy; // Empty string if not set. + readonly attribute long mmsPort; // -1 if not set. + + /** + * Get the list of pcscf addresses, could be IPv4 or IPv6. + * + * @param count + * The length of the list of pcscf addresses. + * + * @returns the list of pcscf addresses. + */ + void getPcscf([optional] out unsigned long count, + [array, size_is(count), retval] out wstring pcscf); +}; + +[scriptable, function, uuid(cb2f0f5b-67f4-4c14-93e8-01e66b630464)] +interface nsIDeactivateDataCallsCallback : nsISupports +{ + /** + * Callback function used to notify when all data calls are disconnected. + */ + void notifyDataCallsDisconnected(); +}; + +[scriptable, uuid(e3feec20-36b4-47de-a7a5-e32a65f20186)] +interface nsIDataCallHandler : nsISupports +{ + /** + * PDP APIs + * + * @param networkType + * Mobile network type, that is, + * nsINetworkInterface.NETWORK_TYPE_MOBILE or one of the + * nsINetworkInterface.NETWORK_TYPE_MOBILE_* values. + */ + void setupDataCallByType(in long networkType); + void deactivateDataCallByType(in long networkType); + long getDataCallStateByType(in long networkType); + + /** + * Deactivate all data calls. + * + * @param callback + * Callback to notify when all data calls are disconnected. + */ + void deactivateDataCalls(in nsIDeactivateDataCallsCallback callback); + + /** + * Called to reconsider data call state. + */ + void updateRILNetworkInterface(); +}; + +[scriptable, uuid(2c46e37d-88dc-4d25-bb37-e1c0d3e9cb5f)] +interface nsIDataCallManager : nsISupports +{ + readonly attribute long dataDefaultServiceId; + + /** + * Get the corresponding data call handler. + * + * @param clientId + * clientId of the data call handler to get. + */ + nsIDataCallHandler getDataCallHandler(in unsigned long clientId); +};
\ No newline at end of file |