2012-10-17 04:17:19 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/.
|
|
|
|
*/
|
|
|
|
|
2014-10-14 23:50:00 -07:00
|
|
|
[Pref="dom.telephony.enabled",
|
|
|
|
CheckPermissions="telephony mobileconnection",
|
|
|
|
AvailableIn="CertifiedApps",
|
2014-01-02 21:55:27 -08:00
|
|
|
Constructor(DOMString type, optional USSDReceivedEventInit eventInitDict)]
|
2013-06-18 11:48:45 -07:00
|
|
|
interface USSDReceivedEvent : Event
|
|
|
|
{
|
2014-10-14 23:50:00 -07:00
|
|
|
readonly attribute unsigned long serviceId;
|
2013-06-18 11:48:45 -07:00
|
|
|
readonly attribute DOMString? message;
|
2014-10-14 23:50:00 -07:00
|
|
|
readonly attribute USSDSession? session; // null if session is ended.
|
|
|
|
readonly attribute boolean sessionEnded; // deprecated. Bug 1070831
|
2013-06-18 11:48:45 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary USSDReceivedEventInit : EventInit
|
|
|
|
{
|
2014-10-14 23:50:00 -07:00
|
|
|
unsigned long serviceId = 0;
|
2012-10-31 05:53:09 -07:00
|
|
|
DOMString? message = null;
|
2014-10-14 23:50:00 -07:00
|
|
|
USSDSession? session = null;
|
2012-10-17 04:17:19 -07:00
|
|
|
boolean sessionEnded = false;
|
2013-06-18 11:48:45 -07:00
|
|
|
};
|