1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_dom_telephony_TelephonyIPCService_h
7 #define mozilla_dom_telephony_TelephonyIPCService_h
9 #include "mozilla/dom/telephony/TelephonyCommon.h"
10 #include "mozilla/Attributes.h"
11 #include "nsIObserver.h"
12 #include "nsITelephonyService.h"
14 BEGIN_TELEPHONY_NAMESPACE
16 class IPCTelephonyRequest
;
17 class PTelephonyChild
;
19 class TelephonyIPCService MOZ_FINAL
: public nsITelephonyService
20 , public nsITelephonyListener
25 NS_DECL_NSITELEPHONYSERVICE
26 NS_DECL_NSITELEPHONYLISTENER
29 TelephonyIPCService();
31 void NoteActorDestroyed();
34 ~TelephonyIPCService();
36 nsTArray
<nsCOMPtr
<nsITelephonyListener
> > mListeners
;
37 PTelephonyChild
* mPTelephonyChild
;
38 uint32_t mDefaultServiceId
;
40 nsresult
SendRequest(nsITelephonyListener
*aListener
,
41 nsITelephonyCallback
*aCallback
,
42 const IPCTelephonyRequest
& aRequest
);
45 END_TELEPHONY_NAMESPACE
47 #endif // mozilla_dom_telephony_TelephonyIPCService_h