dom/system/gonk/nsIRadioInterfaceLayer.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6 #include "nsINetworkManager.idl"
michael@0 7
michael@0 8 interface nsIDOMMozIccInfo;
michael@0 9 interface nsIDOMMozMobileConnectionInfo;
michael@0 10 interface nsIMobileMessageCallback;
michael@0 11
michael@0 12 [scriptable, uuid(6e0f45b8-410e-11e3-8c8e-b715b2cd0128)]
michael@0 13 interface nsIRilNetworkInterface : nsINetworkInterface
michael@0 14 {
michael@0 15 readonly attribute unsigned long serviceId;
michael@0 16 readonly attribute DOMString iccId;
michael@0 17
michael@0 18 /* The following attributes are for MMS proxy settings. */
michael@0 19 readonly attribute DOMString mmsc; // Empty string if not set.
michael@0 20 readonly attribute DOMString mmsProxy; // Empty string if not set.
michael@0 21 readonly attribute long mmsPort; // -1 if not set.
michael@0 22 };
michael@0 23
michael@0 24 [scriptable, uuid(c0c5cb9f-6372-4b5a-b74c-baacc2da5e4f)]
michael@0 25 interface nsIVoicemailInfo : nsISupports
michael@0 26 {
michael@0 27 readonly attribute DOMString number;
michael@0 28
michael@0 29 readonly attribute DOMString displayName;
michael@0 30 };
michael@0 31
michael@0 32 [scriptable, uuid(95e1be50-c912-11e2-8b8b-0800200c9a66)]
michael@0 33 interface nsIRilContext : nsISupports
michael@0 34 {
michael@0 35 readonly attribute DOMString radioState;
michael@0 36
michael@0 37 readonly attribute DOMString cardState;
michael@0 38
michael@0 39 readonly attribute long retryCount;
michael@0 40
michael@0 41 readonly attribute DOMString imsi;
michael@0 42
michael@0 43 readonly attribute DOMString networkSelectionMode;
michael@0 44
michael@0 45 readonly attribute nsIDOMMozIccInfo iccInfo;
michael@0 46
michael@0 47 readonly attribute nsIDOMMozMobileConnectionInfo voice;
michael@0 48
michael@0 49 readonly attribute nsIDOMMozMobileConnectionInfo data;
michael@0 50 };
michael@0 51
michael@0 52 [scriptable, function, uuid(3bc96351-53b0-47a1-a888-c74c64b60f25)]
michael@0 53 interface nsIRilSendWorkerMessageCallback : nsISupports
michael@0 54 {
michael@0 55 boolean handleResponse(in jsval response);
michael@0 56 };
michael@0 57
michael@0 58 [scriptable, uuid(181d460e-220e-4274-8ba4-43f122eb518d)]
michael@0 59 interface nsIRadioInterface : nsISupports
michael@0 60 {
michael@0 61 readonly attribute nsIRilContext rilContext;
michael@0 62
michael@0 63 /**
michael@0 64 * PDP APIs
michael@0 65 */
michael@0 66 void setupDataCallByType(in DOMString apntype);
michael@0 67 void deactivateDataCallByType(in DOMString apntype);
michael@0 68 long getDataCallStateByType(in DOMString apntype);
michael@0 69
michael@0 70 void updateRILNetworkInterface();
michael@0 71
michael@0 72 /**
michael@0 73 * SMS-related functionality.
michael@0 74 */
michael@0 75 void getSegmentInfoForText(in DOMString text,
michael@0 76 in nsIMobileMessageCallback request);
michael@0 77
michael@0 78 void sendSMS(in DOMString number,
michael@0 79 in DOMString message,
michael@0 80 in boolean silent,
michael@0 81 in nsIMobileMessageCallback request);
michael@0 82
michael@0 83 void sendWorkerMessage(in DOMString type,
michael@0 84 [optional] in jsval message,
michael@0 85 [optional] in nsIRilSendWorkerMessageCallback callback);
michael@0 86
michael@0 87 void getSmscAddress(in nsIMobileMessageCallback request);
michael@0 88 };
michael@0 89
michael@0 90 [scriptable, uuid(d035c32e-b491-11e3-9f9d-c716fab88bd6)]
michael@0 91 interface nsIRadioInterfaceLayer : nsISupports
michael@0 92 {
michael@0 93 readonly attribute unsigned long numRadioInterfaces;
michael@0 94
michael@0 95 nsIRadioInterface getRadioInterface(in unsigned long clientId);
michael@0 96
michael@0 97 void setMicrophoneMuted(in boolean muted);
michael@0 98 };

mercurial