mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
91 lines
2.6 KiB
Plaintext
91 lines
2.6 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"
|
|
|
|
interface nsIIccInfo;
|
|
interface nsIMobileConnectionInfo;
|
|
interface nsIMobileMessageCallback;
|
|
|
|
[scriptable, uuid(6e0f45b8-410e-11e3-8c8e-b715b2cd0128)]
|
|
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, uuid(4441e660-4ad0-11e4-916c-0800200c9a66)]
|
|
interface nsIRilContext : nsISupports
|
|
{
|
|
/**
|
|
* One of the nsIIccProvider.CARD_STATE_* values.
|
|
*/
|
|
readonly attribute unsigned long cardState;
|
|
|
|
readonly attribute DOMString imsi;
|
|
|
|
readonly attribute nsIIccInfo iccInfo;
|
|
};
|
|
|
|
[scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
|
|
interface nsIRilSendWorkerMessageCallback : nsISupports
|
|
{
|
|
boolean handleResponse(in jsval response);
|
|
};
|
|
|
|
[scriptable, uuid(622e8809-1a89-45f7-9b35-7e49b5aaa69f)]
|
|
interface nsIRadioInterface : nsISupports
|
|
{
|
|
readonly attribute nsIRilContext rilContext;
|
|
|
|
/**
|
|
* PDP APIs
|
|
*/
|
|
void setupDataCallByType(in DOMString apntype);
|
|
void deactivateDataCallByType(in DOMString apntype);
|
|
long getDataCallStateByType(in DOMString apntype);
|
|
|
|
void updateRILNetworkInterface();
|
|
|
|
/**
|
|
* SMS-related functionality.
|
|
*/
|
|
void getSegmentInfoForText(in DOMString text,
|
|
in nsIMobileMessageCallback request);
|
|
|
|
void sendSMS(in DOMString number,
|
|
in DOMString message,
|
|
in boolean silent,
|
|
in nsIMobileMessageCallback request);
|
|
|
|
void sendWorkerMessage(in DOMString type,
|
|
[optional] in jsval message,
|
|
[optional] in nsIRilSendWorkerMessageCallback callback);
|
|
|
|
void getSmscAddress(in nsIMobileMessageCallback request);
|
|
};
|
|
|
|
[scriptable, uuid(78b65e8c-68e7-4510-9a05-65bba12b283e)]
|
|
interface nsIRadioInterfaceLayer : nsISupports
|
|
{
|
|
readonly attribute unsigned long numRadioInterfaces;
|
|
|
|
nsIRadioInterface getRadioInterface(in unsigned long clientId);
|
|
|
|
/**
|
|
* Select a proper client for dialing emergency call.
|
|
*
|
|
* @return clientId or -1 if none of the clients are avaialble.
|
|
*/
|
|
unsigned long getClientIdForEmergencyCall();
|
|
|
|
void setMicrophoneMuted(in boolean muted);
|
|
};
|