mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
9d2e533edb
Backed out changeset 86356906ecf0 (bug 969218) Backed out changeset 46fa16a18c27 (bug 969218) Backed out changeset 75219ceb5175 (bug 969218) Backed out changeset b9f4ba525eec (bug 969218) Backed out changeset 323c1329614b (bug 969218) Backed out changeset e0fa4e0eee36 (bug 969218)
86 lines
2.5 KiB
C++
86 lines
2.5 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#ifndef mozilla_dom_telephony_TelephonyChild_h
|
|
#define mozilla_dom_telephony_TelephonyChild_h
|
|
|
|
#include "mozilla/dom/telephony/TelephonyCommon.h"
|
|
#include "mozilla/dom/telephony/PTelephonyChild.h"
|
|
#include "mozilla/dom/telephony/PTelephonyRequestChild.h"
|
|
#include "nsITelephonyProvider.h"
|
|
|
|
BEGIN_TELEPHONY_NAMESPACE
|
|
|
|
class TelephonyChild : public PTelephonyChild
|
|
{
|
|
public:
|
|
TelephonyChild(nsITelephonyListener* aListener);
|
|
|
|
protected:
|
|
virtual ~TelephonyChild() {}
|
|
|
|
virtual void
|
|
ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
|
|
|
virtual PTelephonyRequestChild*
|
|
AllocPTelephonyRequestChild() MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
DeallocPTelephonyRequestChild(PTelephonyRequestChild* aActor) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyCallError(const uint32_t& aClientId, const int32_t& aCallIndex,
|
|
const nsString& aError) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyCallStateChanged(const uint32_t& aClientId,
|
|
const IPCCallStateData& aData) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyCdmaCallWaiting(const uint32_t& aClientId,
|
|
const nsString& aNumber) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyConferenceCallStateChanged(const uint16_t& aCallState) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyConferenceError(const nsString& aName,
|
|
const nsString& aMessage) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifySupplementaryService(const uint32_t& aClientId,
|
|
const int32_t& aCallIndex,
|
|
const uint16_t& aNotification) MOZ_OVERRIDE;
|
|
|
|
private:
|
|
nsCOMPtr<nsITelephonyListener> mListener;
|
|
};
|
|
|
|
class TelephonyRequestChild : public PTelephonyRequestChild
|
|
{
|
|
public:
|
|
TelephonyRequestChild(nsITelephonyListener* aListener);
|
|
|
|
protected:
|
|
virtual ~TelephonyRequestChild() {}
|
|
|
|
virtual void
|
|
ActorDestroy(ActorDestroyReason aWhy) MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
Recv__delete__() MOZ_OVERRIDE;
|
|
|
|
virtual bool
|
|
RecvNotifyEnumerateCallState(const uint32_t& aClientId,
|
|
const IPCCallStateData& aData) MOZ_OVERRIDE;
|
|
|
|
private:
|
|
nsCOMPtr<nsITelephonyListener> mListener;
|
|
};
|
|
|
|
END_TELEPHONY_NAMESPACE
|
|
|
|
#endif // mozilla_dom_telephony_TelephonyChild_h
|