dom/telephony/ipc/PTelephony.ipdl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* vim: set sw=2 ts=8 et ft=cpp : */
michael@0 3 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 6
michael@0 7 include protocol PContent;
michael@0 8 include protocol PTelephonyRequest;
michael@0 9 include TelephonyTypes;
michael@0 10
michael@0 11 namespace mozilla {
michael@0 12 namespace dom {
michael@0 13 namespace telephony {
michael@0 14
michael@0 15 struct EnumerateCallsRequest
michael@0 16 {
michael@0 17 // empty.
michael@0 18 };
michael@0 19
michael@0 20 struct DialRequest
michael@0 21 {
michael@0 22 uint32_t clientId;
michael@0 23 nsString number;
michael@0 24 bool isEmergency;
michael@0 25 };
michael@0 26
michael@0 27 union IPCTelephonyRequest
michael@0 28 {
michael@0 29 EnumerateCallsRequest;
michael@0 30 DialRequest;
michael@0 31 };
michael@0 32
michael@0 33 sync protocol PTelephony {
michael@0 34 manager PContent;
michael@0 35 manages PTelephonyRequest;
michael@0 36
michael@0 37 child:
michael@0 38 NotifyCallError(uint32_t aClientId, int32_t aCallIndex, nsString aError);
michael@0 39
michael@0 40 NotifyCallStateChanged(uint32_t aClientId, IPCCallStateData aData);
michael@0 41
michael@0 42 NotifyCdmaCallWaiting(uint32_t aClientId, nsString aNumber);
michael@0 43
michael@0 44 NotifyConferenceCallStateChanged(uint16_t aCallState);
michael@0 45
michael@0 46 NotifyConferenceError(nsString aName, nsString aMessage);
michael@0 47
michael@0 48 NotifySupplementaryService(uint32_t aClientId, int32_t aCallIndex,
michael@0 49 uint16_t aNotification);
michael@0 50
michael@0 51 parent:
michael@0 52 /**
michael@0 53 * Sent when the child no longer needs to use PTelephony.
michael@0 54 */
michael@0 55 __delete__();
michael@0 56
michael@0 57 /**
michael@0 58 * Sent when the child makes an asynchronous request to the parent.
michael@0 59 */
michael@0 60 PTelephonyRequest(IPCTelephonyRequest request);
michael@0 61
michael@0 62 RegisterListener();
michael@0 63
michael@0 64 UnregisterListener();
michael@0 65
michael@0 66 HangUpCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 67
michael@0 68 AnswerCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 69
michael@0 70 RejectCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 71
michael@0 72 HoldCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 73
michael@0 74 ResumeCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 75
michael@0 76 ConferenceCall(uint32_t aClientId);
michael@0 77
michael@0 78 SeparateCall(uint32_t aClientId, uint32_t aCallIndex);
michael@0 79
michael@0 80 HoldConference(uint32_t aClientId);
michael@0 81
michael@0 82 ResumeConference(uint32_t aClientId);
michael@0 83
michael@0 84 StartTone(uint32_t aClientId, nsString aTone);
michael@0 85
michael@0 86 StopTone(uint32_t aClientId);
michael@0 87
michael@0 88 sync GetMicrophoneMuted()
michael@0 89 returns (bool aMuted);
michael@0 90
michael@0 91 SetMicrophoneMuted(bool aMuted);
michael@0 92
michael@0 93 sync GetSpeakerEnabled()
michael@0 94 returns (bool aEnabled);
michael@0 95
michael@0 96 SetSpeakerEnabled(bool aEnabled);
michael@0 97 };
michael@0 98
michael@0 99 } /* namespace telephony */
michael@0 100 } /* namespace dom */
michael@0 101 } /* namespace mozilla */

mercurial