LCOV - app.info - objdir/dist/include/nsILocaleService.h

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsILocaleService.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 1 | 1 | 100.0 %
| Date: | 2012-04-21 | Functions: | 1 | 1 | 100.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/intl/locale/idl/nsILocaleService.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsILocaleService_h__
           6                 : #define __gen_nsILocaleService_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : #ifndef __gen_nsILocale_h__
          14                 : #include "nsILocale.h"
          15                 : #endif
          16                 :
          17                 : /* For IDL files that don't want to include root IDL files. */
          18                 : #ifndef NS_NO_VTABLE
          19                 : #define NS_NO_VTABLE
          20                 : #endif
          21                 :
          22                 : /* starting interface:    nsILocaleService */
          23                 : #define NS_ILOCALESERVICE_IID_STR "c2edc848-4219-4440-abbf-98119882c83f"
          24                 :
          25                 : #define NS_ILOCALESERVICE_IID \
          26                 :   {0xc2edc848, 0x4219, 0x4440, \
          27                 :     { 0xab, 0xbf, 0x98, 0x11, 0x98, 0x82, 0xc8, 0x3f }}
          28                 :
          29              83 : class NS_NO_VTABLE NS_SCRIPTABLE nsILocaleService : public nsISupports {
          30                 :  public:
          31                 :
          32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALESERVICE_IID)
          33                 :
          34                 :   /* nsILocale newLocale (in AString aLocale); */
          35                 :   NS_SCRIPTABLE NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval NS_OUTPARAM) = 0;
          36                 :
          37                 :   /* nsILocale getSystemLocale (); */
          38                 :   NS_SCRIPTABLE NS_IMETHOD GetSystemLocale(nsILocale * *_retval NS_OUTPARAM) = 0;
          39                 :
          40                 :   /* nsILocale getApplicationLocale (); */
          41                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationLocale(nsILocale * *_retval NS_OUTPARAM) = 0;
          42                 :
          43                 :   /* nsILocale getLocaleFromAcceptLanguage (in string acceptLanguage); */
          44                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval NS_OUTPARAM) = 0;
          45                 :
          46                 :   /* AString getLocaleComponentForUserAgent (); */
          47                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval NS_OUTPARAM) = 0;
          48                 :
          49                 : };
          50                 :
          51                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsILocaleService, NS_ILOCALESERVICE_IID)
          52                 :
          53                 : /* Use this macro when declaring classes that implement this interface. */
          54                 : #define NS_DECL_NSILOCALESERVICE \
          55                 :   NS_SCRIPTABLE NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval NS_OUTPARAM); \
          56                 :   NS_SCRIPTABLE NS_IMETHOD GetSystemLocale(nsILocale * *_retval NS_OUTPARAM); \
          57                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationLocale(nsILocale * *_retval NS_OUTPARAM); \
          58                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval NS_OUTPARAM); \
          59                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval NS_OUTPARAM);
          60                 :
          61                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          62                 : #define NS_FORWARD_NSILOCALESERVICE(_to) \
          63                 :   NS_SCRIPTABLE NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval NS_OUTPARAM) { return _to NewLocale(aLocale, _retval); } \
          64                 :   NS_SCRIPTABLE NS_IMETHOD GetSystemLocale(nsILocale * *_retval NS_OUTPARAM) { return _to GetSystemLocale(_retval); } \
          65                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationLocale(nsILocale * *_retval NS_OUTPARAM) { return _to GetApplicationLocale(_retval); } \
          66                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval NS_OUTPARAM) { return _to GetLocaleFromAcceptLanguage(acceptLanguage, _retval); } \
          67                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval NS_OUTPARAM) { return _to GetLocaleComponentForUserAgent(_retval); }
          68                 :
          69                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          70                 : #define NS_FORWARD_SAFE_NSILOCALESERVICE(_to) \
          71                 :   NS_SCRIPTABLE NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->NewLocale(aLocale, _retval); } \
          72                 :   NS_SCRIPTABLE NS_IMETHOD GetSystemLocale(nsILocale * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemLocale(_retval); } \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetApplicationLocale(nsILocale * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationLocale(_retval); } \
          74                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocaleFromAcceptLanguage(acceptLanguage, _retval); } \
          75                 :   NS_SCRIPTABLE NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocaleComponentForUserAgent(_retval); }
          76                 :
          77                 : #if 0
          78                 : /* Use the code below as a template for the implementation class for this interface. */
          79                 :
          80                 : /* Header file */
          81                 : class nsLocaleService : public nsILocaleService
          82                 : {
          83                 : public:
          84                 :   NS_DECL_ISUPPORTS
          85                 :   NS_DECL_NSILOCALESERVICE
          86                 :
          87                 :   nsLocaleService();
          88                 :
          89                 : private:
          90                 :   ~nsLocaleService();
          91                 :
          92                 : protected:
          93                 :   /* additional members */
          94                 : };
          95                 :
          96                 : /* Implementation file */
          97                 : NS_IMPL_ISUPPORTS1(nsLocaleService, nsILocaleService)
          98                 :
          99                 : nsLocaleService::nsLocaleService()
         100                 : {
         101                 :   /* member initializers and constructor code */
         102                 : }
         103                 :
         104                 : nsLocaleService::~nsLocaleService()
         105                 : {
         106                 :   /* destructor code */
         107                 : }
         108                 :
         109                 : /* nsILocale newLocale (in AString aLocale); */
         110                 : NS_IMETHODIMP nsLocaleService::NewLocale(const nsAString & aLocale, nsILocale * *_retval NS_OUTPARAM)
         111                 : {
         112                 :     return NS_ERROR_NOT_IMPLEMENTED;
         113                 : }
         114                 :
         115                 : /* nsILocale getSystemLocale (); */
         116                 : NS_IMETHODIMP nsLocaleService::GetSystemLocale(nsILocale * *_retval NS_OUTPARAM)
         117                 : {
         118                 :     return NS_ERROR_NOT_IMPLEMENTED;
         119                 : }
         120                 :
         121                 : /* nsILocale getApplicationLocale (); */
         122                 : NS_IMETHODIMP nsLocaleService::GetApplicationLocale(nsILocale * *_retval NS_OUTPARAM)
         123                 : {
         124                 :     return NS_ERROR_NOT_IMPLEMENTED;
         125                 : }
         126                 :
         127                 : /* nsILocale getLocaleFromAcceptLanguage (in string acceptLanguage); */
         128                 : NS_IMETHODIMP nsLocaleService::GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval NS_OUTPARAM)
         129                 : {
         130                 :     return NS_ERROR_NOT_IMPLEMENTED;
         131                 : }
         132                 :
         133                 : /* AString getLocaleComponentForUserAgent (); */
         134                 : NS_IMETHODIMP nsLocaleService::GetLocaleComponentForUserAgent(nsAString & _retval NS_OUTPARAM)
         135                 : {
         136                 :     return NS_ERROR_NOT_IMPLEMENTED;
         137                 : }
         138                 :
         139                 : /* End of implementation class template. */
         140                 : #endif
         141                 :
         142                 :
         143                 : // {C8E518C1-47AE-11d3-91CD-00105AA3F7DC}
         144                 : #define NS_LOCALESERVICE_CID {0xc8e518c1,0x47ae,0x11d3,{0x91,0xcd,0x0,0x10,0x5a,0xa3,0xf7,0xdc}}
         145                 : #define NS_LOCALESERVICE_CONTRACTID "@mozilla.org/intl/nslocaleservice;1"
         146                 : extern nsresult
         147                 : NS_NewLocaleService(nsILocaleService** result);
         148                 :
         149                 : #endif /* __gen_nsILocaleService_h__ */

Generated by: LCOV version 1.7