1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/src/gonk/SmsService.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef mozilla_dom_mobilemessage_SmsService_h 1.9 +#define mozilla_dom_mobilemessage_SmsService_h 1.10 + 1.11 +#include "nsISmsService.h" 1.12 +#include "nsCOMPtr.h" 1.13 +#include "nsIObserver.h" 1.14 +#include "nsIRadioInterfaceLayer.h" 1.15 +#include "nsTArray.h" 1.16 +#include "nsString.h" 1.17 +#include "mozilla/Attributes.h" 1.18 + 1.19 +namespace mozilla { 1.20 +namespace dom { 1.21 +namespace mobilemessage { 1.22 + 1.23 +class SmsService MOZ_FINAL : public nsISmsService 1.24 + , public nsIObserver 1.25 +{ 1.26 +public: 1.27 + NS_DECL_ISUPPORTS 1.28 + NS_DECL_NSISMSSERVICE 1.29 + NS_DECL_NSIOBSERVER 1.30 + 1.31 + SmsService(); 1.32 + 1.33 +protected: 1.34 + nsCOMPtr<nsIRadioInterfaceLayer> mRil; 1.35 + nsTArray<nsString> mSilentNumbers; 1.36 + uint32_t mDefaultServiceId; 1.37 +}; 1.38 + 1.39 +} // namespace mobilemessage 1.40 +} // namespace dom 1.41 +} // namespace mozilla 1.42 + 1.43 +#endif // mozilla_dom_mobilemessage_SmsService_h