michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 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 michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_telephony_TelephonyIPCProvider_h michael@0: #define mozilla_dom_telephony_TelephonyIPCProvider_h michael@0: michael@0: #include "mozilla/dom/telephony/TelephonyCommon.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "nsIObserver.h" michael@0: #include "nsITelephonyProvider.h" michael@0: michael@0: BEGIN_TELEPHONY_NAMESPACE michael@0: michael@0: struct IPCTelephonyRequest; michael@0: class PTelephonyChild; michael@0: michael@0: class TelephonyIPCProvider MOZ_FINAL : public nsITelephonyProvider michael@0: , public nsITelephonyListener michael@0: , public nsIObserver michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSITELEPHONYPROVIDER michael@0: NS_DECL_NSITELEPHONYLISTENER michael@0: NS_DECL_NSIOBSERVER michael@0: michael@0: TelephonyIPCProvider(); michael@0: michael@0: protected: michael@0: virtual ~TelephonyIPCProvider(); michael@0: michael@0: private: michael@0: nsTArray > mListeners; michael@0: PTelephonyChild* mPTelephonyChild; michael@0: uint32_t mDefaultServiceId; michael@0: michael@0: nsresult SendRequest(nsITelephonyListener *aListener, michael@0: nsITelephonyCallback *aCallback, michael@0: const IPCTelephonyRequest& aRequest); michael@0: }; michael@0: michael@0: END_TELEPHONY_NAMESPACE michael@0: michael@0: #endif // mozilla_dom_telephony_TelephonyIPCProvider_h