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 file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_mobilemessage_SmsMessage_h michael@0: #define mozilla_dom_mobilemessage_SmsMessage_h michael@0: michael@0: #include "mozilla/dom/mobilemessage/SmsTypes.h" michael@0: #include "nsIDOMMozSmsMessage.h" michael@0: #include "nsString.h" michael@0: #include "mozilla/dom/mobilemessage/Types.h" michael@0: #include "mozilla/Attributes.h" michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: class SmsMessage MOZ_FINAL : public nsIDOMMozSmsMessage michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMMOZSMSMESSAGE michael@0: michael@0: SmsMessage(int32_t aId, michael@0: uint64_t aThreadId, michael@0: const nsString& aIccId, michael@0: mobilemessage::DeliveryState aDelivery, michael@0: mobilemessage::DeliveryStatus aDeliveryStatus, michael@0: const nsString& aSender, michael@0: const nsString& aReceiver, michael@0: const nsString& aBody, michael@0: mobilemessage::MessageClass aMessageClass, michael@0: uint64_t aTimestamp, michael@0: uint64_t aSentTimestamp, michael@0: uint64_t aDeliveryTimestamp, michael@0: bool aRead); michael@0: michael@0: SmsMessage(const mobilemessage::SmsMessageData& aData); michael@0: michael@0: static nsresult Create(int32_t aId, michael@0: uint64_t aThreadId, michael@0: const nsAString& aIccId, michael@0: const nsAString& aDelivery, michael@0: const nsAString& aDeliveryStatus, michael@0: const nsAString& aSender, michael@0: const nsAString& aReceiver, michael@0: const nsAString& aBody, michael@0: const nsAString& aMessageClass, michael@0: uint64_t aTimestamp, michael@0: uint64_t aSentTimestamp, michael@0: uint64_t aDeliveryTimestamp, michael@0: bool aRead, michael@0: JSContext* aCx, michael@0: nsIDOMMozSmsMessage** aMessage); michael@0: const mobilemessage::SmsMessageData& GetData() const; michael@0: michael@0: private: michael@0: // Don't try to use the default constructor. michael@0: SmsMessage(); michael@0: michael@0: mobilemessage::SmsMessageData mData; michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_mobilemessage_SmsMessage_h