dom/mobilemessage/src/gonk/SmsService.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:dfcc8720b83a
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 #ifndef mozilla_dom_mobilemessage_SmsService_h
6 #define mozilla_dom_mobilemessage_SmsService_h
7
8 #include "nsISmsService.h"
9 #include "nsCOMPtr.h"
10 #include "nsIObserver.h"
11 #include "nsIRadioInterfaceLayer.h"
12 #include "nsTArray.h"
13 #include "nsString.h"
14 #include "mozilla/Attributes.h"
15
16 namespace mozilla {
17 namespace dom {
18 namespace mobilemessage {
19
20 class SmsService MOZ_FINAL : public nsISmsService
21 , public nsIObserver
22 {
23 public:
24 NS_DECL_ISUPPORTS
25 NS_DECL_NSISMSSERVICE
26 NS_DECL_NSIOBSERVER
27
28 SmsService();
29
30 protected:
31 nsCOMPtr<nsIRadioInterfaceLayer> mRil;
32 nsTArray<nsString> mSilentNumbers;
33 uint32_t mDefaultServiceId;
34 };
35
36 } // namespace mobilemessage
37 } // namespace dom
38 } // namespace mozilla
39
40 #endif // mozilla_dom_mobilemessage_SmsService_h

mercurial