LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsILocaleService.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/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           0 : class NS_NO_VTABLE nsILocaleService : public nsISupports {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ILOCALESERVICE_IID)
      33             : 
      34             :   /* nsILocale newLocale (in AString aLocale); */
      35             :   NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval) = 0;
      36             : 
      37             :   /* nsILocale getSystemLocale (); */
      38             :   NS_IMETHOD GetSystemLocale(nsILocale * *_retval) = 0;
      39             : 
      40             :   /* nsILocale getApplicationLocale (); */
      41             :   NS_IMETHOD GetApplicationLocale(nsILocale * *_retval) = 0;
      42             : 
      43             :   /* nsILocale getLocaleFromAcceptLanguage (in string acceptLanguage); */
      44             :   NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval) = 0;
      45             : 
      46             :   /* AString getLocaleComponentForUserAgent (); */
      47             :   NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval) = 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_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval) override; \
      56             :   NS_IMETHOD GetSystemLocale(nsILocale * *_retval) override; \
      57             :   NS_IMETHOD GetApplicationLocale(nsILocale * *_retval) override; \
      58             :   NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval) override; \
      59             :   NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval) override; 
      60             : 
      61             : /* Use this macro when declaring the members of this interface when the
      62             :    class doesn't implement the interface. This is useful for forwarding. */
      63             : #define NS_DECL_NON_VIRTUAL_NSILOCALESERVICE \
      64             :   nsresult NewLocale(const nsAString & aLocale, nsILocale * *_retval); \
      65             :   nsresult GetSystemLocale(nsILocale * *_retval); \
      66             :   nsresult GetApplicationLocale(nsILocale * *_retval); \
      67             :   nsresult GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval); \
      68             :   nsresult GetLocaleComponentForUserAgent(nsAString & _retval); 
      69             : 
      70             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      71             : #define NS_FORWARD_NSILOCALESERVICE(_to) \
      72             :   NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval) override { return _to NewLocale(aLocale, _retval); } \
      73             :   NS_IMETHOD GetSystemLocale(nsILocale * *_retval) override { return _to GetSystemLocale(_retval); } \
      74             :   NS_IMETHOD GetApplicationLocale(nsILocale * *_retval) override { return _to GetApplicationLocale(_retval); } \
      75             :   NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval) override { return _to GetLocaleFromAcceptLanguage(acceptLanguage, _retval); } \
      76             :   NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval) override { return _to GetLocaleComponentForUserAgent(_retval); } 
      77             : 
      78             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      79             : #define NS_FORWARD_SAFE_NSILOCALESERVICE(_to) \
      80             :   NS_IMETHOD NewLocale(const nsAString & aLocale, nsILocale * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->NewLocale(aLocale, _retval); } \
      81             :   NS_IMETHOD GetSystemLocale(nsILocale * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSystemLocale(_retval); } \
      82             :   NS_IMETHOD GetApplicationLocale(nsILocale * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetApplicationLocale(_retval); } \
      83             :   NS_IMETHOD GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocaleFromAcceptLanguage(acceptLanguage, _retval); } \
      84             :   NS_IMETHOD GetLocaleComponentForUserAgent(nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLocaleComponentForUserAgent(_retval); } 
      85             : 
      86             : #if 0
      87             : /* Use the code below as a template for the implementation class for this interface. */
      88             : 
      89             : /* Header file */
      90             : class nsLocaleService : public nsILocaleService
      91             : {
      92             : public:
      93             :   NS_DECL_ISUPPORTS
      94             :   NS_DECL_NSILOCALESERVICE
      95             : 
      96             :   nsLocaleService();
      97             : 
      98             : private:
      99             :   ~nsLocaleService();
     100             : 
     101             : protected:
     102             :   /* additional members */
     103             : };
     104             : 
     105             : /* Implementation file */
     106             : NS_IMPL_ISUPPORTS(nsLocaleService, nsILocaleService)
     107             : 
     108             : nsLocaleService::nsLocaleService()
     109             : {
     110             :   /* member initializers and constructor code */
     111             : }
     112             : 
     113             : nsLocaleService::~nsLocaleService()
     114             : {
     115             :   /* destructor code */
     116             : }
     117             : 
     118             : /* nsILocale newLocale (in AString aLocale); */
     119             : NS_IMETHODIMP nsLocaleService::NewLocale(const nsAString & aLocale, nsILocale * *_retval)
     120             : {
     121             :     return NS_ERROR_NOT_IMPLEMENTED;
     122             : }
     123             : 
     124             : /* nsILocale getSystemLocale (); */
     125             : NS_IMETHODIMP nsLocaleService::GetSystemLocale(nsILocale * *_retval)
     126             : {
     127             :     return NS_ERROR_NOT_IMPLEMENTED;
     128             : }
     129             : 
     130             : /* nsILocale getApplicationLocale (); */
     131             : NS_IMETHODIMP nsLocaleService::GetApplicationLocale(nsILocale * *_retval)
     132             : {
     133             :     return NS_ERROR_NOT_IMPLEMENTED;
     134             : }
     135             : 
     136             : /* nsILocale getLocaleFromAcceptLanguage (in string acceptLanguage); */
     137             : NS_IMETHODIMP nsLocaleService::GetLocaleFromAcceptLanguage(const char * acceptLanguage, nsILocale * *_retval)
     138             : {
     139             :     return NS_ERROR_NOT_IMPLEMENTED;
     140             : }
     141             : 
     142             : /* AString getLocaleComponentForUserAgent (); */
     143             : NS_IMETHODIMP nsLocaleService::GetLocaleComponentForUserAgent(nsAString & _retval)
     144             : {
     145             :     return NS_ERROR_NOT_IMPLEMENTED;
     146             : }
     147             : 
     148             : /* End of implementation class template. */
     149             : #endif
     150             : 
     151             : 
     152             : // {C8E518C1-47AE-11d3-91CD-00105AA3F7DC}
     153             : #define NS_LOCALESERVICE_CID {0xc8e518c1,0x47ae,0x11d3,{0x91,0xcd,0x0,0x10,0x5a,0xa3,0xf7,0xdc}}
     154             : #define NS_LOCALESERVICE_CONTRACTID "@mozilla.org/intl/nslocaleservice;1"
     155             : extern nsresult
     156             : NS_NewLocaleService(nsILocaleService** result);
     157             : 
     158             : #endif /* __gen_nsILocaleService_h__ */

Generated by: LCOV version 1.13