1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
7 enum CallIdPresentation {
9 // Call number/name has been withheld by the calling party.
11 // Call number is not available due to calling party being of type payphone.
13 // Call number/name is not available due to networking problems or other reason.
17 [Pref="dom.telephony.enabled"]
18 interface TelephonyCallId {
19 // It is an empty string when "numberPresentation" is not "allowed."
20 readonly attribute DOMString number;
22 // This attribute is not relevant for outgoing calls. Default value is
24 readonly attribute CallIdPresentation numberPresentation;
26 // This attribute is not relevant for outgoing calls. It is an empty string
27 // 1) when the call is outgoing, or 2) when the call is incoming and
28 // "namePresentation" is not "allowed." However, it could still be empty
29 // even the call is incoming and "namePresentation" is "allowed."
30 readonly attribute DOMString name;
32 // This attribute is not relevant for outgoing calls. Default value is
34 readonly attribute CallIdPresentation namePresentation;