2012-01-09 14:28:47 -08:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
|
|
|
|
/* vim: set ts=2 et sw=2 tw=40: */
|
2012-05-21 04:12:37 -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/. */
|
2011-12-04 23:58:27 -08:00
|
|
|
|
|
|
|
#include "nsIDOMEventTarget.idl"
|
2012-05-14 21:13:06 -07:00
|
|
|
#include "nsIDOMDOMError.idl"
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMEventListener;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[scriptable, builtinclass, uuid(0662d161-6df7-41fc-a044-0ab0c668680c)]
|
2012-01-09 14:28:47 -08:00
|
|
|
interface nsIDOMTelephonyCall : nsIDOMEventTarget
|
|
|
|
{
|
2011-12-04 23:58:27 -08:00
|
|
|
readonly attribute DOMString number;
|
2012-01-09 14:28:47 -08:00
|
|
|
|
|
|
|
readonly attribute DOMString state;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-05-14 21:13:06 -07:00
|
|
|
readonly attribute nsIDOMDOMError error;
|
|
|
|
|
2011-12-04 23:58:27 -08:00
|
|
|
void answer();
|
2012-01-09 14:28:47 -08:00
|
|
|
void hangUp();
|
2012-04-05 01:12:42 -07:00
|
|
|
void hold();
|
|
|
|
void resume();
|
2012-01-09 14:28:47 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onstatechange;
|
2011-12-04 23:58:27 -08:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval ondialing;
|
|
|
|
[implicit_jscontext] attribute jsval onalerting;
|
|
|
|
[implicit_jscontext] attribute jsval onbusy;
|
|
|
|
[implicit_jscontext] attribute jsval onconnecting;
|
|
|
|
[implicit_jscontext] attribute jsval onconnected;
|
|
|
|
[implicit_jscontext] attribute jsval ondisconnecting;
|
|
|
|
[implicit_jscontext] attribute jsval ondisconnected;
|
|
|
|
[implicit_jscontext] attribute jsval onholding;
|
|
|
|
[implicit_jscontext] attribute jsval onheld;
|
|
|
|
[implicit_jscontext] attribute jsval onresuming;
|
2012-05-14 21:13:06 -07:00
|
|
|
|
2012-08-30 20:45:16 -07:00
|
|
|
[implicit_jscontext] attribute jsval onerror;
|
2011-12-06 22:57:19 -08:00
|
|
|
};
|