2012-04-19 14:33:25 -07: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/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIDOMMozMobileConnectionInfo;
|
2012-06-19 15:52:06 -07:00
|
|
|
interface nsIDOMMozMobileNetworkInfo;
|
2012-04-19 14:33:25 -07:00
|
|
|
interface nsIDOMDOMRequest;
|
|
|
|
interface nsIDOMWindow;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* XPCOM component (in the content process) that provides the mobile
|
|
|
|
* network information.
|
|
|
|
*/
|
2012-06-10 16:44:50 -07:00
|
|
|
[scriptable, uuid(fb3fac34-c1c2-45a9-ad18-a7af0f7997c9)]
|
2012-04-19 14:33:25 -07:00
|
|
|
interface nsIMobileConnectionProvider : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute DOMString cardState;
|
|
|
|
readonly attribute nsIDOMMozMobileConnectionInfo voiceConnectionInfo;
|
|
|
|
readonly attribute nsIDOMMozMobileConnectionInfo dataConnectionInfo;
|
2012-06-19 15:52:06 -07:00
|
|
|
readonly attribute DOMString networkSelectionMode;
|
2012-04-19 14:33:25 -07:00
|
|
|
|
|
|
|
nsIDOMDOMRequest getNetworks(in nsIDOMWindow window);
|
2012-06-19 15:52:06 -07:00
|
|
|
nsIDOMDOMRequest selectNetwork(in nsIDOMWindow window, in nsIDOMMozMobileNetworkInfo network);
|
|
|
|
nsIDOMDOMRequest selectNetworkAutomatically(in nsIDOMWindow window);
|
|
|
|
|
2012-04-11 21:01:49 -07:00
|
|
|
nsIDOMDOMRequest getCardLock(in nsIDOMWindow window, in DOMString lockType);
|
|
|
|
nsIDOMDOMRequest unlockCardLock(in nsIDOMWindow window, in jsval info);
|
|
|
|
nsIDOMDOMRequest setCardLock(in nsIDOMWindow window, in jsval info);
|
2012-04-10 05:04:27 -07:00
|
|
|
|
2012-06-10 16:44:50 -07:00
|
|
|
nsIDOMDOMRequest sendUSSD(in nsIDOMWindow window, in DOMString ussd);
|
|
|
|
nsIDOMDOMRequest cancelUSSD(in nsIDOMWindow window);
|
2012-04-10 05:04:27 -07:00
|
|
|
|
|
|
|
void sendStkResponse(in nsIDOMWindow window,
|
|
|
|
in jsval response);
|
|
|
|
void sendStkMenuSelection(in nsIDOMWindow window,
|
|
|
|
in unsigned short itemIdentifier,
|
|
|
|
in boolean helpRequested);
|
2012-04-19 14:33:25 -07:00
|
|
|
};
|