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_SmsSegmentInfo_h michael@0: #define mozilla_dom_mobilemessage_SmsSegmentInfo_h michael@0: michael@0: #include "nsIDOMSmsSegmentInfo.h" michael@0: #include "mozilla/Attributes.h" michael@0: #include "mozilla/dom/mobilemessage/SmsTypes.h" michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: michael@0: class SmsSegmentInfo MOZ_FINAL : public nsIDOMMozSmsSegmentInfo michael@0: { michael@0: public: michael@0: NS_DECL_ISUPPORTS michael@0: NS_DECL_NSIDOMMOZSMSSEGMENTINFO michael@0: michael@0: SmsSegmentInfo(int32_t aSegments, michael@0: int32_t aCharsPerSegment, michael@0: int32_t aCharsAvailableInLastSegment); michael@0: michael@0: SmsSegmentInfo(const mobilemessage::SmsSegmentInfoData& aData); michael@0: michael@0: const mobilemessage::SmsSegmentInfoData& GetData() const; michael@0: michael@0: private: michael@0: mobilemessage::SmsSegmentInfoData mData; michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_mobilemessage_SmsSegmentInfo_h