dom/fmradio/ipc/FMRadioParent.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0b3eb1071fa9
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */
2 /* vim: set ts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 #ifndef mozilla_dom_fmradioparent_h__
8 #define mozilla_dom_fmradioparent_h__
9
10 #include "FMRadioCommon.h"
11 #include "mozilla/dom/PFMRadioParent.h"
12 #include "mozilla/HalTypes.h"
13
14 BEGIN_FMRADIO_NAMESPACE
15
16 class PFMRadioRequestParent;
17
18 class FMRadioParent MOZ_FINAL : public PFMRadioParent
19 , public FMRadioEventObserver
20 {
21 public:
22 FMRadioParent();
23 ~FMRadioParent();
24
25 virtual bool
26 RecvGetStatusInfo(StatusInfo* aStatusInfo) MOZ_OVERRIDE;
27
28 virtual PFMRadioRequestParent*
29 AllocPFMRadioRequestParent(const FMRadioRequestArgs& aArgs) MOZ_OVERRIDE;
30
31 virtual bool
32 DeallocPFMRadioRequestParent(PFMRadioRequestParent* aActor) MOZ_OVERRIDE;
33
34 /* FMRadioEventObserver */
35 virtual void Notify(const FMRadioEventType& aType) MOZ_OVERRIDE;
36
37 virtual bool
38 RecvEnableAudio(const bool& aAudioEnabled) MOZ_OVERRIDE;
39 };
40
41 END_FMRADIO_NAMESPACE
42
43 #endif // mozilla_dom_fmradioparent_h__
44

mercurial