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