dom/mobilemessage/src/SmsMessage.h

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef mozilla_dom_mobilemessage_SmsMessage_h
michael@0 7 #define mozilla_dom_mobilemessage_SmsMessage_h
michael@0 8
michael@0 9 #include "mozilla/dom/mobilemessage/SmsTypes.h"
michael@0 10 #include "nsIDOMMozSmsMessage.h"
michael@0 11 #include "nsString.h"
michael@0 12 #include "mozilla/dom/mobilemessage/Types.h"
michael@0 13 #include "mozilla/Attributes.h"
michael@0 14
michael@0 15 namespace mozilla {
michael@0 16 namespace dom {
michael@0 17
michael@0 18 class SmsMessage MOZ_FINAL : public nsIDOMMozSmsMessage
michael@0 19 {
michael@0 20 public:
michael@0 21 NS_DECL_ISUPPORTS
michael@0 22 NS_DECL_NSIDOMMOZSMSMESSAGE
michael@0 23
michael@0 24 SmsMessage(int32_t aId,
michael@0 25 uint64_t aThreadId,
michael@0 26 const nsString& aIccId,
michael@0 27 mobilemessage::DeliveryState aDelivery,
michael@0 28 mobilemessage::DeliveryStatus aDeliveryStatus,
michael@0 29 const nsString& aSender,
michael@0 30 const nsString& aReceiver,
michael@0 31 const nsString& aBody,
michael@0 32 mobilemessage::MessageClass aMessageClass,
michael@0 33 uint64_t aTimestamp,
michael@0 34 uint64_t aSentTimestamp,
michael@0 35 uint64_t aDeliveryTimestamp,
michael@0 36 bool aRead);
michael@0 37
michael@0 38 SmsMessage(const mobilemessage::SmsMessageData& aData);
michael@0 39
michael@0 40 static nsresult Create(int32_t aId,
michael@0 41 uint64_t aThreadId,
michael@0 42 const nsAString& aIccId,
michael@0 43 const nsAString& aDelivery,
michael@0 44 const nsAString& aDeliveryStatus,
michael@0 45 const nsAString& aSender,
michael@0 46 const nsAString& aReceiver,
michael@0 47 const nsAString& aBody,
michael@0 48 const nsAString& aMessageClass,
michael@0 49 uint64_t aTimestamp,
michael@0 50 uint64_t aSentTimestamp,
michael@0 51 uint64_t aDeliveryTimestamp,
michael@0 52 bool aRead,
michael@0 53 JSContext* aCx,
michael@0 54 nsIDOMMozSmsMessage** aMessage);
michael@0 55 const mobilemessage::SmsMessageData& GetData() const;
michael@0 56
michael@0 57 private:
michael@0 58 // Don't try to use the default constructor.
michael@0 59 SmsMessage();
michael@0 60
michael@0 61 mobilemessage::SmsMessageData mData;
michael@0 62 };
michael@0 63
michael@0 64 } // namespace dom
michael@0 65 } // namespace mozilla
michael@0 66
michael@0 67 #endif // mozilla_dom_mobilemessage_SmsMessage_h

mercurial