2011-11-24 16:48:57 -08:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2011-11-24 16:48:57 -08:00
|
|
|
|
|
|
|
#ifndef mozilla_dom_sms_Constants_h
|
|
|
|
#define mozilla_dom_sms_Constants_h
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace dom {
|
|
|
|
namespace sms {
|
|
|
|
|
2012-12-11 01:09:42 -08:00
|
|
|
// Defined in the .cpp.
|
|
|
|
extern const char* kSmsReceivedObserverTopic;
|
|
|
|
extern const char* kSmsSendingObserverTopic;
|
|
|
|
extern const char* kSmsSentObserverTopic;
|
|
|
|
extern const char* kSmsFailedObserverTopic;
|
|
|
|
extern const char* kSmsDeliverySuccessObserverTopic;
|
|
|
|
extern const char* kSmsDeliveryErrorObserverTopic;
|
2011-11-24 16:48:57 -08:00
|
|
|
|
2011-12-23 21:02:52 -08:00
|
|
|
#define DELIVERY_RECEIVED NS_LITERAL_STRING("received")
|
2012-12-11 01:09:42 -08:00
|
|
|
#define DELIVERY_SENDING NS_LITERAL_STRING("sending")
|
2011-12-23 21:02:52 -08:00
|
|
|
#define DELIVERY_SENT NS_LITERAL_STRING("sent")
|
2012-12-11 01:09:42 -08:00
|
|
|
#define DELIVERY_ERROR NS_LITERAL_STRING("error")
|
2011-12-23 21:02:52 -08:00
|
|
|
|
2012-10-30 03:53:24 -07:00
|
|
|
#define DELIVERY_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable")
|
|
|
|
#define DELIVERY_STATUS_SUCCESS NS_LITERAL_STRING("success")
|
|
|
|
#define DELIVERY_STATUS_PENDING NS_LITERAL_STRING("pending")
|
|
|
|
#define DELIVERY_STATUS_ERROR NS_LITERAL_STRING("error")
|
|
|
|
|
2012-10-31 02:10:44 -07:00
|
|
|
#define MESSAGE_CLASS_NORMAL NS_LITERAL_STRING("normal")
|
|
|
|
#define MESSAGE_CLASS_CLASS_0 NS_LITERAL_STRING("class-0")
|
|
|
|
#define MESSAGE_CLASS_CLASS_1 NS_LITERAL_STRING("class-1")
|
|
|
|
#define MESSAGE_CLASS_CLASS_2 NS_LITERAL_STRING("class-2")
|
|
|
|
#define MESSAGE_CLASS_CLASS_3 NS_LITERAL_STRING("class-3")
|
|
|
|
|
2011-11-24 16:48:57 -08:00
|
|
|
} // namespace sms
|
|
|
|
} // namespace dom
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // mozilla_dom_sms_Constants_h
|