2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
2011-12-05 07:58:27 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
2012-04-19 21:33:25 +00:00
|
|
|
|
2013-05-30 10:04:48 +00:00
|
|
|
interface nsIDOMMozIccInfo;
|
2012-04-19 21:33:25 +00:00
|
|
|
interface nsIDOMMozMobileConnectionInfo;
|
2013-01-04 06:26:24 +00:00
|
|
|
interface nsIDOMMozSmsSegmentInfo;
|
2013-05-30 10:04:48 +00:00
|
|
|
interface nsIMobileMessageCallback;
|
2012-07-19 03:26:49 +00:00
|
|
|
|
2012-08-14 01:54:42 +00:00
|
|
|
[scriptable, uuid(1e602d20-d066-4399-8997-daf36b3158ef)]
|
2012-01-19 20:53:32 +00:00
|
|
|
interface nsIRILDataCallInfo : nsISupports
|
2012-01-18 01:34:09 +00:00
|
|
|
{
|
2012-06-26 06:43:22 +00:00
|
|
|
/**
|
|
|
|
* Current data call state, one of the
|
|
|
|
* nsINetworkInterface::NETWORK_STATE_* constants.
|
|
|
|
*/
|
2012-06-22 05:53:12 +00:00
|
|
|
readonly attribute unsigned long state;
|
2012-01-18 01:34:09 +00:00
|
|
|
readonly attribute AString cid;
|
|
|
|
readonly attribute AString apn;
|
2012-06-22 05:53:12 +00:00
|
|
|
readonly attribute AString ifname;
|
2012-08-14 01:54:42 +00:00
|
|
|
readonly attribute AString ip;
|
|
|
|
readonly attribute AString netmask;
|
|
|
|
readonly attribute AString broadcast;
|
|
|
|
readonly attribute AString gw;
|
|
|
|
readonly attribute jsval dns;
|
2012-01-18 01:34:09 +00:00
|
|
|
};
|
|
|
|
|
2012-06-22 05:53:12 +00:00
|
|
|
[scriptable, uuid(5bcac053-c245-46f0-bb45-d0039bfb89f5)]
|
2012-01-19 20:53:32 +00:00
|
|
|
interface nsIRILDataCallback : nsISupports
|
2012-01-18 01:34:09 +00:00
|
|
|
{
|
|
|
|
/**
|
2012-01-19 20:53:32 +00:00
|
|
|
* Notified when a data call changes state.
|
2012-01-18 01:34:09 +00:00
|
|
|
*
|
2012-06-22 05:53:12 +00:00
|
|
|
* @param dataCall
|
|
|
|
* A nsIRILDataCallInfo object.
|
2012-01-18 01:34:09 +00:00
|
|
|
*/
|
2012-06-22 05:53:12 +00:00
|
|
|
void dataCallStateChanged(in nsIRILDataCallInfo dataCall);
|
2012-01-18 01:34:09 +00:00
|
|
|
|
2012-01-19 20:53:32 +00:00
|
|
|
/**
|
|
|
|
* Called when nsIRadioInterfaceLayer is asked to enumerate the current
|
|
|
|
* data call state.
|
|
|
|
*
|
|
|
|
* @param datacalls
|
|
|
|
* Array of nsIRILDataCallInfo objects.
|
|
|
|
* @param length
|
|
|
|
* Lenght of the aforementioned array.
|
|
|
|
*/
|
|
|
|
void receiveDataCallList([array,size_is(length)] in nsIRILDataCallInfo dataCalls,
|
|
|
|
in unsigned long length);
|
2012-01-18 01:34:09 +00:00
|
|
|
};
|
|
|
|
|
2012-12-25 06:56:30 +00:00
|
|
|
[scriptable, uuid(c0c5cb9f-6372-4b5a-b74c-baacc2da5e4f)]
|
|
|
|
interface nsIVoicemailInfo : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute DOMString number;
|
|
|
|
|
|
|
|
readonly attribute DOMString displayName;
|
|
|
|
};
|
|
|
|
|
2013-05-30 10:04:48 +00:00
|
|
|
[scriptable, uuid(95e1be50-c912-11e2-8b8b-0800200c9a66)]
|
2012-06-11 06:50:13 +00:00
|
|
|
interface nsIRilContext : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute DOMString radioState;
|
|
|
|
|
|
|
|
readonly attribute DOMString cardState;
|
|
|
|
|
2013-05-06 21:03:00 +00:00
|
|
|
readonly attribute long retryCount;
|
|
|
|
|
2013-01-10 13:20:37 +00:00
|
|
|
readonly attribute DOMString imsi;
|
|
|
|
|
2013-03-29 02:56:07 +00:00
|
|
|
readonly attribute DOMString networkSelectionMode;
|
|
|
|
|
2013-05-30 10:04:48 +00:00
|
|
|
readonly attribute nsIDOMMozIccInfo iccInfo;
|
2012-06-11 06:50:13 +00:00
|
|
|
|
|
|
|
readonly attribute nsIDOMMozMobileConnectionInfo voice;
|
|
|
|
|
|
|
|
readonly attribute nsIDOMMozMobileConnectionInfo data;
|
|
|
|
};
|
|
|
|
|
2013-07-29 22:50:22 +00:00
|
|
|
[scriptable, uuid(715c972b-97c5-48fd-a8b1-d50e6852153a)]
|
2013-07-02 09:36:33 +00:00
|
|
|
interface nsIRadioInterface : nsISupports
|
2011-12-24 05:02:52 +00:00
|
|
|
{
|
2012-05-24 05:12:07 +00:00
|
|
|
/**
|
|
|
|
* Activates or deactivates radio power.
|
|
|
|
*/
|
|
|
|
void setRadioEnabled(in bool value);
|
|
|
|
|
2012-06-11 06:50:13 +00:00
|
|
|
readonly attribute nsIRilContext rilContext;
|
2012-01-09 22:28:47 +00:00
|
|
|
|
2012-12-25 06:56:30 +00:00
|
|
|
readonly attribute nsIVoicemailInfo voicemailInfo;
|
|
|
|
|
2012-01-19 20:53:32 +00:00
|
|
|
/**
|
|
|
|
* PDP APIs
|
|
|
|
*/
|
2012-09-26 12:57:37 +00:00
|
|
|
void setupDataCallByType(in DOMString apntype);
|
|
|
|
void deactivateDataCallByType(in DOMString apntype);
|
|
|
|
long getDataCallStateByType(in DOMString apntype);
|
2012-01-18 01:34:09 +00:00
|
|
|
void setupDataCall(in long radioTech,
|
|
|
|
in DOMString apn,
|
|
|
|
in DOMString user,
|
|
|
|
in DOMString passwd,
|
|
|
|
in long chappap,
|
|
|
|
in DOMString pdptype);
|
|
|
|
void deactivateDataCall(in DOMString cid,
|
|
|
|
in DOMString reason);
|
|
|
|
void getDataCallList();
|
2012-02-19 23:44:29 +00:00
|
|
|
|
2012-01-19 20:53:32 +00:00
|
|
|
void registerDataCallCallback(in nsIRILDataCallback callback);
|
|
|
|
void unregisterDataCallCallback(in nsIRILDataCallback callback);
|
2012-01-18 01:34:09 +00:00
|
|
|
|
2013-01-23 04:05:34 +00:00
|
|
|
void updateRILNetworkInterface();
|
|
|
|
|
2011-12-24 05:02:52 +00:00
|
|
|
/**
|
|
|
|
* SMS-related functionality.
|
|
|
|
*/
|
2013-01-04 06:26:24 +00:00
|
|
|
nsIDOMMozSmsSegmentInfo getSegmentInfoForText(in DOMString text);
|
|
|
|
|
2012-02-19 23:44:29 +00:00
|
|
|
void sendSMS(in DOMString number,
|
|
|
|
in DOMString message,
|
2013-07-29 22:50:22 +00:00
|
|
|
in boolean silent,
|
2013-03-09 07:22:02 +00:00
|
|
|
in nsIMobileMessageCallback request);
|
2011-12-05 07:58:27 +00:00
|
|
|
};
|
2013-07-02 09:36:33 +00:00
|
|
|
|
|
|
|
[scriptable, uuid(44b03951-1444-4c03-bd37-0bcb3a01b56f)]
|
|
|
|
interface nsIRadioInterfaceLayer : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute unsigned long numRadioInterfaces;
|
|
|
|
|
|
|
|
nsIRadioInterface getRadioInterface(in long clientId);
|
|
|
|
};
|