michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_fmradioparent_h__ michael@0: #define mozilla_dom_fmradioparent_h__ michael@0: michael@0: #include "FMRadioCommon.h" michael@0: #include "mozilla/dom/PFMRadioParent.h" michael@0: #include "mozilla/HalTypes.h" michael@0: michael@0: BEGIN_FMRADIO_NAMESPACE michael@0: michael@0: class PFMRadioRequestParent; michael@0: michael@0: class FMRadioParent MOZ_FINAL : public PFMRadioParent michael@0: , public FMRadioEventObserver michael@0: { michael@0: public: michael@0: FMRadioParent(); michael@0: ~FMRadioParent(); michael@0: michael@0: virtual bool michael@0: RecvGetStatusInfo(StatusInfo* aStatusInfo) MOZ_OVERRIDE; michael@0: michael@0: virtual PFMRadioRequestParent* michael@0: AllocPFMRadioRequestParent(const FMRadioRequestArgs& aArgs) MOZ_OVERRIDE; michael@0: michael@0: virtual bool michael@0: DeallocPFMRadioRequestParent(PFMRadioRequestParent* aActor) MOZ_OVERRIDE; michael@0: michael@0: /* FMRadioEventObserver */ michael@0: virtual void Notify(const FMRadioEventType& aType) MOZ_OVERRIDE; michael@0: michael@0: virtual bool michael@0: RecvEnableAudio(const bool& aAudioEnabled) MOZ_OVERRIDE; michael@0: }; michael@0: michael@0: END_FMRADIO_NAMESPACE michael@0: michael@0: #endif // mozilla_dom_fmradioparent_h__ michael@0: