dom/icc/interfaces/nsIIccProvider.idl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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 file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 #include "nsISupports.idl"
michael@0 6
michael@0 7 interface nsIDOMDOMRequest;
michael@0 8 interface nsIDOMMozIccInfo;
michael@0 9 interface nsIDOMWindow;
michael@0 10
michael@0 11 [scriptable, uuid(7c0ada3d-d8d4-493e-9243-fa3df39855e4)]
michael@0 12 interface nsIIccListener : nsISupports
michael@0 13 {
michael@0 14 void notifyStkCommand(in DOMString aMessage);
michael@0 15 void notifyStkSessionEnd();
michael@0 16 void notifyCardStateChanged();
michael@0 17 void notifyIccInfoChanged();
michael@0 18 };
michael@0 19
michael@0 20 /**
michael@0 21 * XPCOM component (in the content process) that provides the ICC information.
michael@0 22 */
michael@0 23 [scriptable, uuid(7c67ab92-52a3-4e11-995c-c0ad2f66c4cb)]
michael@0 24 interface nsIIccProvider : nsISupports
michael@0 25 {
michael@0 26 /**
michael@0 27 * Called when a content process registers receiving unsolicited messages from
michael@0 28 * RadioInterfaceLayer in the chrome process. Only a content process that has
michael@0 29 * the 'mobileconnection' permission is allowed to register.
michael@0 30 */
michael@0 31 void registerIccMsg(in unsigned long clientId, in nsIIccListener listener);
michael@0 32 void unregisterIccMsg(in unsigned long clientId, in nsIIccListener listener);
michael@0 33
michael@0 34 /**
michael@0 35 * UICC Information
michael@0 36 */
michael@0 37 nsIDOMMozIccInfo getIccInfo(in unsigned long clientId);
michael@0 38
michael@0 39 /**
michael@0 40 * Card State
michael@0 41 */
michael@0 42 DOMString getCardState(in unsigned long clientId);
michael@0 43
michael@0 44 /**
michael@0 45 * STK interfaces.
michael@0 46 */
michael@0 47 void sendStkResponse(in unsigned long clientId,
michael@0 48 in nsIDOMWindow window,
michael@0 49 in jsval command,
michael@0 50 in jsval response);
michael@0 51 void sendStkMenuSelection(in unsigned long clientId,
michael@0 52 in nsIDOMWindow window,
michael@0 53 in unsigned short itemIdentifier,
michael@0 54 in boolean helpRequested);
michael@0 55 void sendStkTimerExpiration(in unsigned long clientId,
michael@0 56 in nsIDOMWindow window,
michael@0 57 in jsval timer);
michael@0 58 void sendStkEventDownload(in unsigned long clientId,
michael@0 59 in nsIDOMWindow window,
michael@0 60 in jsval event);
michael@0 61
michael@0 62 /**
michael@0 63 * Card lock interfaces.
michael@0 64 */
michael@0 65 nsIDOMDOMRequest getCardLockState(in unsigned long clientId,
michael@0 66 in nsIDOMWindow window,
michael@0 67 in DOMString lockType);
michael@0 68 nsIDOMDOMRequest unlockCardLock(in unsigned long clientId,
michael@0 69 in nsIDOMWindow window,
michael@0 70 in jsval info);
michael@0 71 nsIDOMDOMRequest setCardLock(in unsigned long clientId,
michael@0 72 in nsIDOMWindow window,
michael@0 73 in jsval info);
michael@0 74 nsIDOMDOMRequest getCardLockRetryCount(in unsigned long clientId,
michael@0 75 in nsIDOMWindow window,
michael@0 76 in DOMString lockType);
michael@0 77
michael@0 78 /**
michael@0 79 * Phonebook interfaces.
michael@0 80 */
michael@0 81 nsIDOMDOMRequest readContacts(in unsigned long clientId,
michael@0 82 in nsIDOMWindow window,
michael@0 83 in DOMString contactType);
michael@0 84
michael@0 85 nsIDOMDOMRequest updateContact(in unsigned long clientId,
michael@0 86 in nsIDOMWindow window,
michael@0 87 in DOMString contactType,
michael@0 88 in jsval contact,
michael@0 89 in DOMString pin2);
michael@0 90
michael@0 91 /**
michael@0 92 * Secure Card Icc communication channel
michael@0 93 */
michael@0 94 nsIDOMDOMRequest iccOpenChannel(in unsigned long clientId,
michael@0 95 in nsIDOMWindow window,
michael@0 96 in DOMString aid);
michael@0 97
michael@0 98 nsIDOMDOMRequest iccExchangeAPDU(in unsigned long clientId,
michael@0 99 in nsIDOMWindow window,
michael@0 100 in long channel,
michael@0 101 in jsval apdu);
michael@0 102
michael@0 103 nsIDOMDOMRequest iccCloseChannel(in unsigned long clientId,
michael@0 104 in nsIDOMWindow window,
michael@0 105 in long channel);
michael@0 106
michael@0 107 /**
michael@0 108 * Helpers
michael@0 109 */
michael@0 110 nsIDOMDOMRequest matchMvno(in unsigned long clientId,
michael@0 111 in nsIDOMWindow window,
michael@0 112 in DOMString mvnoType,
michael@0 113 in DOMString mvnoData);
michael@0 114 };

mercurial