Confirmed users
978
edits
(→Implementation Details: Impl update) |
(Internal API - nsITelephonyProvider) |
||
| Line 117: | Line 117: | ||
=== Implementation Details === | === Implementation Details of Web API === | ||
[[File:WebTelephony-multisim-proposal-api_v4.png|600x600px]] | [[File:WebTelephony-multisim-proposal-api_v4.png|600x600px]] | ||
=== Internal API === | |||
interface nsITelephonyProvider | |||
{ | |||
void registerTelephonyMsg(in nsITelephonyListener listener); | |||
void unregisterTelephonyMsg(in nsITelephonyListener listener); | |||
void enumerateCalls(in nsITelephonyListener listener); | |||
void dial(in DOMString number, in unsigned long serviceId); | |||
void dialEmergency(in DOMString number, in unsigned long serviceId); | |||
void startTone(in DOMString dtmfChar, in unsigned long serviceId); | |||
void stopTone(in unsigned long serviceId); | |||
void hangUp(in unsigned long callIndex, in unsigned long serviceId); | |||
void answerCall(in unsigned long callIndex, in unsigned long serviceId); | |||
void rejectCall(in unsigned long callIndex, in unsigned long serviceId); | |||
void holdCall(in unsigned long callIndex, in unsigned long serviceId); | |||
void resumeCall(in unsigned long callIndex, in unsigned long serviceId); | |||
attribute bool microphoneMuted; | |||
attribute bool speakerEnabled; | |||
} | |||
== Proposal: Architecture == | == Proposal: Architecture == | ||