dom/mobilemessage/src/Constants.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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/. */
     6 #ifndef mozilla_dom_mobilemessage_Constants_h
     7 #define mozilla_dom_mobilemessage_Constants_h
     9 namespace mozilla {
    10 namespace dom {
    11 namespace mobilemessage {
    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;
    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")
    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")
    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")
    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")
    49 #define MESSAGE_TYPE_SMS NS_LITERAL_STRING("sms")
    50 #define MESSAGE_TYPE_MMS NS_LITERAL_STRING("mms")
    52 } // namespace mobilemessage
    53 } // namespace dom
    54 } // namespace mozilla
    56 #endif // mozilla_dom_mobilemessage_Constants_h

mercurial