dom/mobilemessage/src/Constants.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     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