dom/mobilemessage/src/Constants.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/mobilemessage/src/Constants.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,56 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef mozilla_dom_mobilemessage_Constants_h
    1.10 +#define mozilla_dom_mobilemessage_Constants_h
    1.11 +
    1.12 +namespace mozilla {
    1.13 +namespace dom {
    1.14 +namespace mobilemessage {
    1.15 +
    1.16 +// Defined in the .cpp.
    1.17 +extern const char* kSmsReceivedObserverTopic;
    1.18 +extern const char* kSmsRetrievingObserverTopic;
    1.19 +extern const char* kSmsSendingObserverTopic;
    1.20 +extern const char* kSmsSentObserverTopic;
    1.21 +extern const char* kSmsFailedObserverTopic;
    1.22 +extern const char* kSmsDeliverySuccessObserverTopic;
    1.23 +extern const char* kSmsDeliveryErrorObserverTopic;
    1.24 +extern const char* kSilentSmsReceivedObserverTopic;
    1.25 +extern const char* kSmsReadSuccessObserverTopic;
    1.26 +extern const char* kSmsReadErrorObserverTopic;
    1.27 +
    1.28 +#define DELIVERY_RECEIVED       NS_LITERAL_STRING("received")
    1.29 +#define DELIVERY_SENDING        NS_LITERAL_STRING("sending")
    1.30 +#define DELIVERY_SENT           NS_LITERAL_STRING("sent")
    1.31 +#define DELIVERY_ERROR          NS_LITERAL_STRING("error")
    1.32 +#define DELIVERY_NOT_DOWNLOADED NS_LITERAL_STRING("not-downloaded")
    1.33 +
    1.34 +#define DELIVERY_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable")
    1.35 +#define DELIVERY_STATUS_SUCCESS        NS_LITERAL_STRING("success")
    1.36 +#define DELIVERY_STATUS_PENDING        NS_LITERAL_STRING("pending")
    1.37 +#define DELIVERY_STATUS_ERROR          NS_LITERAL_STRING("error")
    1.38 +#define DELIVERY_STATUS_REJECTED       NS_LITERAL_STRING("rejected")
    1.39 +#define DELIVERY_STATUS_MANUAL         NS_LITERAL_STRING("manual")
    1.40 +
    1.41 +#define READ_STATUS_NOT_APPLICABLE NS_LITERAL_STRING("not-applicable")
    1.42 +#define READ_STATUS_SUCCESS        NS_LITERAL_STRING("success")
    1.43 +#define READ_STATUS_PENDING        NS_LITERAL_STRING("pending")
    1.44 +#define READ_STATUS_ERROR          NS_LITERAL_STRING("error")
    1.45 +
    1.46 +#define MESSAGE_CLASS_NORMAL  NS_LITERAL_STRING("normal")
    1.47 +#define MESSAGE_CLASS_CLASS_0 NS_LITERAL_STRING("class-0")
    1.48 +#define MESSAGE_CLASS_CLASS_1 NS_LITERAL_STRING("class-1")
    1.49 +#define MESSAGE_CLASS_CLASS_2 NS_LITERAL_STRING("class-2")
    1.50 +#define MESSAGE_CLASS_CLASS_3 NS_LITERAL_STRING("class-3")
    1.51 +
    1.52 +#define MESSAGE_TYPE_SMS NS_LITERAL_STRING("sms")
    1.53 +#define MESSAGE_TYPE_MMS NS_LITERAL_STRING("mms")
    1.54 +
    1.55 +} // namespace mobilemessage
    1.56 +} // namespace dom
    1.57 +} // namespace mozilla
    1.58 +
    1.59 +#endif // mozilla_dom_mobilemessage_Constants_h

mercurial