Confirmed users
716
edits
Bent.mozilla (talk | contribs) |
|||
Line 14: | Line 14: | ||
interface Telephony : EventTarget { | interface Telephony : EventTarget { | ||
attribute boolean muted; // Should these live on the call/group? | |||
attribute boolean speakerOn; | |||
attribute double speakerVolume; | |||
attribute | attribute any active; // Either a call or a group | ||
readonly attribute TelephonyCall[] liveCalls; | |||
readonly attribute CallGroup[] liveGroups; | |||
readonly attribute | |||
readonly attribute | |||
void startTone(DOMString tone); | void startTone(DOMString tone); | ||
Line 33: | Line 32: | ||
} | } | ||
interface | [Constructor(DOMString)] | ||
interface TelephonyCall : EventTarget { | |||
readonly attribute DOMString number; | readonly attribute DOMString number; | ||
Line 42: | Line 42: | ||
attribute Function onbusy; | attribute Function onbusy; | ||
attribute | attribute CallGroup? group; | ||
void answer(); // Should this make the | void answer(); // Should this make the call the active one? | ||
void hangUp(); | void hangUp(); | ||
} | } | ||
[Constructor()] | [Constructor()] | ||
interface | interface CallGroup { | ||
TelephonyCall item(unsigned long index); | |||
readonly attribute unsigned long length; | readonly attribute unsigned long length; | ||
} | } | ||
interface | interface CallEvent : Event { | ||
readonly attribute | readonly attribute TelephonyCall call; | ||
} | } |