2013-06-01 10:53:06 +04:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2012-05-21 15:12:37 +04: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/. */
|
2011-12-05 11:58:27 +04:00
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-01-10 02:28:47 +04:00
|
|
|
|
2011-12-05 11:58:27 +04:00
|
|
|
interface nsIDOMEventListener;
|
2012-01-10 02:28:47 +04:00
|
|
|
interface nsIDOMTelephonyCall;
|
2011-12-05 11:58:27 +04:00
|
|
|
|
2013-06-01 10:53:06 +04:00
|
|
|
[scriptable, builtinclass, uuid(dd9f3957-b0fe-4d3d-b738-79782f76f05d)]
|
2012-01-10 02:28:47 +04:00
|
|
|
interface nsIDOMTelephony : nsIDOMEventTarget
|
|
|
|
{
|
|
|
|
nsIDOMTelephonyCall dial(in DOMString number);
|
2012-07-20 16:08:24 +04:00
|
|
|
nsIDOMTelephonyCall dialEmergency(in DOMString number);
|
2011-12-05 11:58:27 +04:00
|
|
|
|
2011-12-12 22:30:43 +04:00
|
|
|
attribute boolean muted;
|
2012-01-10 02:28:47 +04:00
|
|
|
attribute boolean speakerEnabled;
|
2011-12-05 11:58:27 +04:00
|
|
|
|
2012-01-10 02:28:47 +04:00
|
|
|
// The call that is "active", i.e. receives microphone input and tones
|
|
|
|
// generated via startTone.
|
2013-06-01 10:53:06 +04:00
|
|
|
readonly attribute nsIDOMTelephonyCall active;
|
2011-12-05 11:58:27 +04:00
|
|
|
|
2012-01-10 02:28:47 +04:00
|
|
|
// Array of all calls that are currently connected.
|
2012-02-23 19:09:11 +04:00
|
|
|
readonly attribute jsval calls;
|
2011-12-05 11:58:27 +04:00
|
|
|
|
2012-01-10 02:28:47 +04:00
|
|
|
void startTone(in DOMString tone);
|
|
|
|
void stopTone();
|
2011-12-07 10:57:19 +04:00
|
|
|
|
2012-08-31 07:45:16 +04:00
|
|
|
[implicit_jscontext] attribute jsval onincoming;
|
|
|
|
[implicit_jscontext] attribute jsval oncallschanged;
|
2011-12-07 10:57:19 +04:00
|
|
|
};
|