DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165
/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /home/jenkins/src/releases/comm-beta/mozilla/intl/locale/mozILocaleService.idl
 */

#ifndef __gen_mozILocaleService_h__
#define __gen_mozILocaleService_h__


#ifndef __gen_nsISupports_h__
#include "nsISupports.h"
#endif

#include "js/GCAnnotations.h"

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
// Define Contractid and CID
#define MOZ_LOCALESERVICE_CID \
  { 0x92735ff4, 0x6384, 0x4ad6, { 0x85, 0x08, 0x75, 0x70, 0x10, 0xe1, 0x49, 0xee } }
#define MOZ_LOCALESERVICE_CONTRACTID "@mozilla.org/intl/localeservice;1"

/* starting interface:    mozILocaleService */
#define MOZILOCALESERVICE_IID_STR "c27f8983-b48b-4d1a-92d7-feb8106f212d"

#define MOZILOCALESERVICE_IID \
  {0xc27f8983, 0xb48b, 0x4d1a, \
    { 0x92, 0xd7, 0xfe, 0xb8, 0x10, 0x6f, 0x21, 0x2d }}

class NS_NO_VTABLE mozILocaleService : public nsISupports {
 public:

  NS_DECLARE_STATIC_IID_ACCESSOR(MOZILOCALESERVICE_IID)

  enum {
    langNegStrategyFiltering = 0,
    langNegStrategyMatching = 1,
    langNegStrategyLookup = 2
  };

  /* readonly attribute ACString defaultLocale; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetDefaultLocale(nsACString& aDefaultLocale) = 0;

  /* readonly attribute ACString lastFallbackLocale; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetLastFallbackLocale(nsACString& aLastFallbackLocale) = 0;

  /* void getAppLocalesAsLangTags ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aLocales); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAppLocalesAsLangTags(uint32_t *aCount, char * **aLocales) = 0;

  /* void getAppLocalesAsBCP47 ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aLocales); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAppLocalesAsBCP47(uint32_t *aCount, char * **aLocales) = 0;

  /* void getRegionalPrefsLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aOutArray); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRegionalPrefsLocales(uint32_t *aCount, char * **aOutArray) = 0;

  /* void negotiateLanguages ([array, size_is (aRequestedCount)] in string aRequested, [array, size_is (aAvailableCount)] in string aAvailable, [optional] in string aDefaultLocale, [optional] in long langNegStrategy, [optional] in unsigned long aRequestedCount, [optional] in unsigned long aAvailableCount, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aLocales); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD NegotiateLanguages(const char * *aRequested, const char * *aAvailable, const char * aDefaultLocale, int32_t langNegStrategy, uint32_t aRequestedCount, uint32_t aAvailableCount, uint32_t *aCount, char * **aLocales) = 0;

  /* ACString getAppLocaleAsLangTag (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAppLocaleAsLangTag(nsACString& _retval) = 0;

  /* ACString getAppLocaleAsBCP47 (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAppLocaleAsBCP47(nsACString& _retval) = 0;

  /* void getRequestedLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aLocales); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRequestedLocales(uint32_t *aCount, char * **aLocales) = 0;

  /* ACString getRequestedLocale (); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetRequestedLocale(nsACString& _retval) = 0;

  /* void setRequestedLocales ([array, size_is (aRequestedCount)] in string aRequested, [optional] in unsigned long aRequestedCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetRequestedLocales(const char * *aRequested, uint32_t aRequestedCount) = 0;

  /* void getAvailableLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aLocales); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetAvailableLocales(uint32_t *aCount, char * **aLocales) = 0;

  /* readonly attribute boolean isAppLocaleRTL; */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetIsAppLocaleRTL(bool *aIsAppLocaleRTL) = 0;

  /* void setAvailableLocales ([array, size_is (aAvailableCount)] in string aAvailable, [optional] in unsigned long aAvailableCount); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD SetAvailableLocales(const char * *aAvailable, uint32_t aAvailableCount) = 0;

  /* void getPackagedLocales ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out string aOutArray); */
  JS_HAZ_CAN_RUN_SCRIPT NS_IMETHOD GetPackagedLocales(uint32_t *aCount, char * **aOutArray) = 0;

};

  NS_DEFINE_STATIC_IID_ACCESSOR(mozILocaleService, MOZILOCALESERVICE_IID)

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_MOZILOCALESERVICE \
  NS_IMETHOD GetDefaultLocale(nsACString& aDefaultLocale) override; \
  NS_IMETHOD GetLastFallbackLocale(nsACString& aLastFallbackLocale) override; \
  NS_IMETHOD GetAppLocalesAsLangTags(uint32_t *aCount, char * **aLocales) override; \
  NS_IMETHOD GetAppLocalesAsBCP47(uint32_t *aCount, char * **aLocales) override; \
  NS_IMETHOD GetRegionalPrefsLocales(uint32_t *aCount, char * **aOutArray) override; \
  NS_IMETHOD NegotiateLanguages(const char * *aRequested, const char * *aAvailable, const char * aDefaultLocale, int32_t langNegStrategy, uint32_t aRequestedCount, uint32_t aAvailableCount, uint32_t *aCount, char * **aLocales) override; \
  NS_IMETHOD GetAppLocaleAsLangTag(nsACString& _retval) override; \
  NS_IMETHOD GetAppLocaleAsBCP47(nsACString& _retval) override; \
  NS_IMETHOD GetRequestedLocales(uint32_t *aCount, char * **aLocales) override; \
  NS_IMETHOD GetRequestedLocale(nsACString& _retval) override; \
  NS_IMETHOD SetRequestedLocales(const char * *aRequested, uint32_t aRequestedCount) override; \
  NS_IMETHOD GetAvailableLocales(uint32_t *aCount, char * **aLocales) override; \
  NS_IMETHOD GetIsAppLocaleRTL(bool *aIsAppLocaleRTL) override; \
  NS_IMETHOD SetAvailableLocales(const char * *aAvailable, uint32_t aAvailableCount) override; \
  NS_IMETHOD GetPackagedLocales(uint32_t *aCount, char * **aOutArray) override; 

/* Use this macro when declaring the members of this interface when the
   class doesn't implement the interface. This is useful for forwarding. */
#define NS_DECL_NON_VIRTUAL_MOZILOCALESERVICE \
  nsresult GetDefaultLocale(nsACString& aDefaultLocale); \
  nsresult GetLastFallbackLocale(nsACString& aLastFallbackLocale); \
  nsresult GetAppLocalesAsLangTags(uint32_t *aCount, char * **aLocales); \
  nsresult GetAppLocalesAsBCP47(uint32_t *aCount, char * **aLocales); \
  nsresult GetRegionalPrefsLocales(uint32_t *aCount, char * **aOutArray); \
  nsresult NegotiateLanguages(const char * *aRequested, const char * *aAvailable, const char * aDefaultLocale, int32_t langNegStrategy, uint32_t aRequestedCount, uint32_t aAvailableCount, uint32_t *aCount, char * **aLocales); \
  nsresult GetAppLocaleAsLangTag(nsACString& _retval); \
  nsresult GetAppLocaleAsBCP47(nsACString& _retval); \
  nsresult GetRequestedLocales(uint32_t *aCount, char * **aLocales); \
  nsresult GetRequestedLocale(nsACString& _retval); \
  nsresult SetRequestedLocales(const char * *aRequested, uint32_t aRequestedCount); \
  nsresult GetAvailableLocales(uint32_t *aCount, char * **aLocales); \
  nsresult GetIsAppLocaleRTL(bool *aIsAppLocaleRTL); \
  nsresult SetAvailableLocales(const char * *aAvailable, uint32_t aAvailableCount); \
  nsresult GetPackagedLocales(uint32_t *aCount, char * **aOutArray); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_MOZILOCALESERVICE(_to) \
  NS_IMETHOD GetDefaultLocale(nsACString& aDefaultLocale) override { return _to GetDefaultLocale(aDefaultLocale); } \
  NS_IMETHOD GetLastFallbackLocale(nsACString& aLastFallbackLocale) override { return _to GetLastFallbackLocale(aLastFallbackLocale); } \
  NS_IMETHOD GetAppLocalesAsLangTags(uint32_t *aCount, char * **aLocales) override { return _to GetAppLocalesAsLangTags(aCount, aLocales); } \
  NS_IMETHOD GetAppLocalesAsBCP47(uint32_t *aCount, char * **aLocales) override { return _to GetAppLocalesAsBCP47(aCount, aLocales); } \
  NS_IMETHOD GetRegionalPrefsLocales(uint32_t *aCount, char * **aOutArray) override { return _to GetRegionalPrefsLocales(aCount, aOutArray); } \
  NS_IMETHOD NegotiateLanguages(const char * *aRequested, const char * *aAvailable, const char * aDefaultLocale, int32_t langNegStrategy, uint32_t aRequestedCount, uint32_t aAvailableCount, uint32_t *aCount, char * **aLocales) override { return _to NegotiateLanguages(aRequested, aAvailable, aDefaultLocale, langNegStrategy, aRequestedCount, aAvailableCount, aCount, aLocales); } \
  NS_IMETHOD GetAppLocaleAsLangTag(nsACString& _retval) override { return _to GetAppLocaleAsLangTag(_retval); } \
  NS_IMETHOD GetAppLocaleAsBCP47(nsACString& _retval) override { return _to GetAppLocaleAsBCP47(_retval); } \
  NS_IMETHOD GetRequestedLocales(uint32_t *aCount, char * **aLocales) override { return _to GetRequestedLocales(aCount, aLocales); } \
  NS_IMETHOD GetRequestedLocale(nsACString& _retval) override { return _to GetRequestedLocale(_retval); } \
  NS_IMETHOD SetRequestedLocales(const char * *aRequested, uint32_t aRequestedCount) override { return _to SetRequestedLocales(aRequested, aRequestedCount); } \
  NS_IMETHOD GetAvailableLocales(uint32_t *aCount, char * **aLocales) override { return _to GetAvailableLocales(aCount, aLocales); } \
  NS_IMETHOD GetIsAppLocaleRTL(bool *aIsAppLocaleRTL) override { return _to GetIsAppLocaleRTL(aIsAppLocaleRTL); } \
  NS_IMETHOD SetAvailableLocales(const char * *aAvailable, uint32_t aAvailableCount) override { return _to SetAvailableLocales(aAvailable, aAvailableCount); } \
  NS_IMETHOD GetPackagedLocales(uint32_t *aCount, char * **aOutArray) override { return _to GetPackagedLocales(aCount, aOutArray); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_MOZILOCALESERVICE(_to) \
  NS_IMETHOD GetDefaultLocale(nsACString& aDefaultLocale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDefaultLocale(aDefaultLocale); } \
  NS_IMETHOD GetLastFallbackLocale(nsACString& aLastFallbackLocale) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFallbackLocale(aLastFallbackLocale); } \
  NS_IMETHOD GetAppLocalesAsLangTags(uint32_t *aCount, char * **aLocales) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppLocalesAsLangTags(aCount, aLocales); } \
  NS_IMETHOD GetAppLocalesAsBCP47(uint32_t *aCount, char * **aLocales) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppLocalesAsBCP47(aCount, aLocales); } \
  NS_IMETHOD GetRegionalPrefsLocales(uint32_t *aCount, char * **aOutArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRegionalPrefsLocales(aCount, aOutArray); } \
  NS_IMETHOD NegotiateLanguages(const char * *aRequested, const char * *aAvailable, const char * aDefaultLocale, int32_t langNegStrategy, uint32_t aRequestedCount, uint32_t aAvailableCount, uint32_t *aCount, char * **aLocales) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NegotiateLanguages(aRequested, aAvailable, aDefaultLocale, langNegStrategy, aRequestedCount, aAvailableCount, aCount, aLocales); } \
  NS_IMETHOD GetAppLocaleAsLangTag(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppLocaleAsLangTag(_retval); } \
  NS_IMETHOD GetAppLocaleAsBCP47(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAppLocaleAsBCP47(_retval); } \
  NS_IMETHOD GetRequestedLocales(uint32_t *aCount, char * **aLocales) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedLocales(aCount, aLocales); } \
  NS_IMETHOD GetRequestedLocale(nsACString& _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestedLocale(_retval); } \
  NS_IMETHOD SetRequestedLocales(const char * *aRequested, uint32_t aRequestedCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRequestedLocales(aRequested, aRequestedCount); } \
  NS_IMETHOD GetAvailableLocales(uint32_t *aCount, char * **aLocales) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAvailableLocales(aCount, aLocales); } \
  NS_IMETHOD GetIsAppLocaleRTL(bool *aIsAppLocaleRTL) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsAppLocaleRTL(aIsAppLocaleRTL); } \
  NS_IMETHOD SetAvailableLocales(const char * *aAvailable, uint32_t aAvailableCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAvailableLocales(aAvailable, aAvailableCount); } \
  NS_IMETHOD GetPackagedLocales(uint32_t *aCount, char * **aOutArray) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPackagedLocales(aCount, aOutArray); } 


#endif /* __gen_mozILocaleService_h__ */