gecko-dev/dom/system/gonk/nsIDataCallManager.idl

68 lines
2.0 KiB
Plaintext

/* 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 "nsINetworkManager.idl"
[scriptable, uuid(e48d290b-ea3b-4987-9333-2e01f64c92ba)]
interface nsIRilNetworkInterface : nsINetworkInterface
{
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.
};
[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(aac54873-5771-4093-a72b-fe39967c6607)]
interface nsIDataCallManager : nsISupports
{
/**
* Get the corresponding data call handler.
*
* @param clientId
* clientId of the data call handler to get.
*/
nsIDataCallHandler getDataCallHandler(in unsigned long clientId);
};