dom/mobilemessage/src/Constants.h

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:281df4bc026b
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #ifndef mozilla_dom_mobilemessage_Constants_h
7 #define mozilla_dom_mobilemessage_Constants_h
8
9 namespace mozilla {
10 namespace dom {
11 namespace mobilemessage {
12
13 // Defined in the .cpp.
14 extern const char* kSmsReceivedObserverTopic;
15 extern const char* kSmsRetrievingObserverTopic;
16 extern const char* kSmsSendingObserverTopic;
17 extern const char* kSmsSentObserverTopic;
18 extern const char* kSmsFailedObserverTopic;
19 extern const char* kSmsDeliverySuccessObserverTopic;
20 extern const char* kSmsDeliveryErrorObserverTopic;
21 extern const char* kSilentSmsReceivedObserverTopic;
22 extern const char* kSmsReadSuccessObserverTopic;
23 extern const char* kSmsReadErrorObserverTopic;
24
25 #define DELIVERY_RECEIVED NS_LITERAL_STRING("received")
26 #define DELIVERY_SENDING NS_LITERAL_STRING("sending")
27 #define DELIVERY_SENT NS_LITERAL_STRING("sent")
28 #define DELIVERY_ERROR NS_LITERAL_STRING("error")
29 #define DELIVERY_NOT_DOWNLOADED NS_LITERAL_STRING("not-downloaded")
30
31 #define DELIVERY_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable")
32 #define DELIVERY_STATUS_SUCCESS NS_LITERAL_STRING("success")
33 #define DELIVERY_STATUS_PENDING NS_LITERAL_STRING("pending")
34 #define DELIVERY_STATUS_ERROR NS_LITERAL_STRING("error")
35 #define DELIVERY_STATUS_REJECTED NS_LITERAL_STRING("rejected")
36 #define DELIVERY_STATUS_MANUAL NS_LITERAL_STRING("manual")
37
38 #define READ_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable")
39 #define READ_STATUS_SUCCESS NS_LITERAL_STRING("success")
40 #define READ_STATUS_PENDING NS_LITERAL_STRING("pending")
41 #define READ_STATUS_ERROR NS_LITERAL_STRING("error")
42
43 #define MESSAGE_CLASS_NORMAL NS_LITERAL_STRING("normal")
44 #define MESSAGE_CLASS_CLASS_0 NS_LITERAL_STRING("class-0")
45 #define MESSAGE_CLASS_CLASS_1 NS_LITERAL_STRING("class-1")
46 #define MESSAGE_CLASS_CLASS_2 NS_LITERAL_STRING("class-2")
47 #define MESSAGE_CLASS_CLASS_3 NS_LITERAL_STRING("class-3")
48
49 #define MESSAGE_TYPE_SMS NS_LITERAL_STRING("sms")
50 #define MESSAGE_TYPE_MMS NS_LITERAL_STRING("mms")
51
52 } // namespace mobilemessage
53 } // namespace dom
54 } // namespace mozilla
55
56 #endif // mozilla_dom_mobilemessage_Constants_h

mercurial