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 michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_mobilemessage_Constants_h michael@0: #define mozilla_dom_mobilemessage_Constants_h michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: namespace mobilemessage { michael@0: michael@0: // Defined in the .cpp. michael@0: extern const char* kSmsReceivedObserverTopic; michael@0: extern const char* kSmsRetrievingObserverTopic; michael@0: extern const char* kSmsSendingObserverTopic; michael@0: extern const char* kSmsSentObserverTopic; michael@0: extern const char* kSmsFailedObserverTopic; michael@0: extern const char* kSmsDeliverySuccessObserverTopic; michael@0: extern const char* kSmsDeliveryErrorObserverTopic; michael@0: extern const char* kSilentSmsReceivedObserverTopic; michael@0: extern const char* kSmsReadSuccessObserverTopic; michael@0: extern const char* kSmsReadErrorObserverTopic; michael@0: michael@0: #define DELIVERY_RECEIVED NS_LITERAL_STRING("received") michael@0: #define DELIVERY_SENDING NS_LITERAL_STRING("sending") michael@0: #define DELIVERY_SENT NS_LITERAL_STRING("sent") michael@0: #define DELIVERY_ERROR NS_LITERAL_STRING("error") michael@0: #define DELIVERY_NOT_DOWNLOADED NS_LITERAL_STRING("not-downloaded") michael@0: michael@0: #define DELIVERY_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable") michael@0: #define DELIVERY_STATUS_SUCCESS NS_LITERAL_STRING("success") michael@0: #define DELIVERY_STATUS_PENDING NS_LITERAL_STRING("pending") michael@0: #define DELIVERY_STATUS_ERROR NS_LITERAL_STRING("error") michael@0: #define DELIVERY_STATUS_REJECTED NS_LITERAL_STRING("rejected") michael@0: #define DELIVERY_STATUS_MANUAL NS_LITERAL_STRING("manual") michael@0: michael@0: #define READ_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable") michael@0: #define READ_STATUS_SUCCESS NS_LITERAL_STRING("success") michael@0: #define READ_STATUS_PENDING NS_LITERAL_STRING("pending") michael@0: #define READ_STATUS_ERROR NS_LITERAL_STRING("error") michael@0: michael@0: #define MESSAGE_CLASS_NORMAL NS_LITERAL_STRING("normal") michael@0: #define MESSAGE_CLASS_CLASS_0 NS_LITERAL_STRING("class-0") michael@0: #define MESSAGE_CLASS_CLASS_1 NS_LITERAL_STRING("class-1") michael@0: #define MESSAGE_CLASS_CLASS_2 NS_LITERAL_STRING("class-2") michael@0: #define MESSAGE_CLASS_CLASS_3 NS_LITERAL_STRING("class-3") michael@0: michael@0: #define MESSAGE_TYPE_SMS NS_LITERAL_STRING("sms") michael@0: #define MESSAGE_TYPE_MMS NS_LITERAL_STRING("mms") michael@0: michael@0: } // namespace mobilemessage michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif // mozilla_dom_mobilemessage_Constants_h