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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIStringBundle.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIStringBundle_h__
       6             : #define __gen_nsIStringBundle_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsISupports_h__
      10             : #include "nsISupports.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsISimpleEnumerator_h__
      14             : #include "nsISimpleEnumerator.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             : // Define Contractid and CID
      23             : // {D85A17C1-AA7C-11d2-9B8C-00805F8A16D9}
      24             : #define NS_STRINGBUNDLESERVICE_CID \
      25             : { 0xd85a17c1, 0xaa7c, 0x11d2, \
      26             :   { 0x9b, 0x8c, 0x0, 0x80, 0x5f, 0x8a, 0x16, 0xd9 } }
      27             : #define NS_STRINGBUNDLE_CONTRACTID "@mozilla.org/intl/stringbundle;1"
      28             : /** 
      29             :  * observer needs to check if the bundle handle matches
      30             :  */
      31             : #define NS_STRBUNDLE_LOADED_TOPIC "strbundle-loaded"
      32             : 
      33             : /* starting interface:    nsIStringBundle */
      34             : #define NS_ISTRINGBUNDLE_IID_STR "d85a17c2-aa7c-11d2-9b8c-00805f8a16d9"
      35             : 
      36             : #define NS_ISTRINGBUNDLE_IID \
      37             :   {0xd85a17c2, 0xaa7c, 0x11d2, \
      38             :     { 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
      39             : 
      40          26 : class NS_NO_VTABLE nsIStringBundle : public nsISupports {
      41             :  public:
      42             : 
      43             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLE_IID)
      44             : 
      45             :   /* wstring GetStringFromID (in long aID); */
      46             :   NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) = 0;
      47             : 
      48             :   /* wstring GetStringFromName (in wstring aName); */
      49             :   NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) = 0;
      50             : 
      51             :   /* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
      52             :   NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) = 0;
      53             : 
      54             :   /* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
      55             :   NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) = 0;
      56             : 
      57             :   /* nsISimpleEnumerator getSimpleEnumeration (); */
      58             :   NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) = 0;
      59             : 
      60             : };
      61             : 
      62             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringBundle, NS_ISTRINGBUNDLE_IID)
      63             : 
      64             : /* Use this macro when declaring classes that implement this interface. */
      65             : #define NS_DECL_NSISTRINGBUNDLE \
      66             :   NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override; \
      67             :   NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override; \
      68             :   NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override; \
      69             :   NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override; \
      70             :   NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override; 
      71             : 
      72             : /* Use this macro when declaring the members of this interface when the
      73             :    class doesn't implement the interface. This is useful for forwarding. */
      74             : #define NS_DECL_NON_VIRTUAL_NSISTRINGBUNDLE \
      75             :   nsresult GetStringFromID(int32_t aID, char16_t * *_retval); \
      76             :   nsresult GetStringFromName(const char16_t * aName, char16_t * *_retval); \
      77             :   nsresult FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval); \
      78             :   nsresult FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval); \
      79             :   nsresult GetSimpleEnumeration(nsISimpleEnumerator * *_retval); 
      80             : 
      81             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      82             : #define NS_FORWARD_NSISTRINGBUNDLE(_to) \
      83             :   NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override { return _to GetStringFromID(aID, _retval); } \
      84             :   NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override { return _to GetStringFromName(aName, _retval); } \
      85             :   NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return _to FormatStringFromID(aID, params, length, _retval); } \
      86             :   NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return _to FormatStringFromName(aName, params, length, _retval); } \
      87             :   NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override { return _to GetSimpleEnumeration(_retval); } 
      88             : 
      89             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      90             : #define NS_FORWARD_SAFE_NSISTRINGBUNDLE(_to) \
      91             :   NS_IMETHOD GetStringFromID(int32_t aID, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromID(aID, _retval); } \
      92             :   NS_IMETHOD GetStringFromName(const char16_t * aName, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromName(aName, _retval); } \
      93             :   NS_IMETHOD FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromID(aID, params, length, _retval); } \
      94             :   NS_IMETHOD FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromName(aName, params, length, _retval); } \
      95             :   NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSimpleEnumeration(_retval); } 
      96             : 
      97             : #if 0
      98             : /* Use the code below as a template for the implementation class for this interface. */
      99             : 
     100             : /* Header file */
     101             : class nsStringBundle : public nsIStringBundle
     102             : {
     103             : public:
     104             :   NS_DECL_ISUPPORTS
     105             :   NS_DECL_NSISTRINGBUNDLE
     106             : 
     107             :   nsStringBundle();
     108             : 
     109             : private:
     110             :   ~nsStringBundle();
     111             : 
     112             : protected:
     113             :   /* additional members */
     114             : };
     115             : 
     116             : /* Implementation file */
     117             : NS_IMPL_ISUPPORTS(nsStringBundle, nsIStringBundle)
     118             : 
     119             : nsStringBundle::nsStringBundle()
     120             : {
     121             :   /* member initializers and constructor code */
     122             : }
     123             : 
     124             : nsStringBundle::~nsStringBundle()
     125             : {
     126             :   /* destructor code */
     127             : }
     128             : 
     129             : /* wstring GetStringFromID (in long aID); */
     130             : NS_IMETHODIMP nsStringBundle::GetStringFromID(int32_t aID, char16_t * *_retval)
     131             : {
     132             :     return NS_ERROR_NOT_IMPLEMENTED;
     133             : }
     134             : 
     135             : /* wstring GetStringFromName (in wstring aName); */
     136             : NS_IMETHODIMP nsStringBundle::GetStringFromName(const char16_t * aName, char16_t * *_retval)
     137             : {
     138             :     return NS_ERROR_NOT_IMPLEMENTED;
     139             : }
     140             : 
     141             : /* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
     142             : NS_IMETHODIMP nsStringBundle::FormatStringFromID(int32_t aID, const char16_t * *params, uint32_t length, char16_t * *_retval)
     143             : {
     144             :     return NS_ERROR_NOT_IMPLEMENTED;
     145             : }
     146             : 
     147             : /* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
     148             : NS_IMETHODIMP nsStringBundle::FormatStringFromName(const char16_t * aName, const char16_t * *params, uint32_t length, char16_t * *_retval)
     149             : {
     150             :     return NS_ERROR_NOT_IMPLEMENTED;
     151             : }
     152             : 
     153             : /* nsISimpleEnumerator getSimpleEnumeration (); */
     154             : NS_IMETHODIMP nsStringBundle::GetSimpleEnumeration(nsISimpleEnumerator * *_retval)
     155             : {
     156             :     return NS_ERROR_NOT_IMPLEMENTED;
     157             : }
     158             : 
     159             : /* End of implementation class template. */
     160             : #endif
     161             : 
     162             : 
     163             : /* starting interface:    nsIStringBundleService */
     164             : #define NS_ISTRINGBUNDLESERVICE_IID_STR "d85a17c0-aa7c-11d2-9b8c-00805f8a16d9"
     165             : 
     166             : #define NS_ISTRINGBUNDLESERVICE_IID \
     167             :   {0xd85a17c0, 0xaa7c, 0x11d2, \
     168             :     { 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
     169             : 
     170           3 : class NS_NO_VTABLE nsIStringBundleService : public nsISupports {
     171             :  public:
     172             : 
     173             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLESERVICE_IID)
     174             : 
     175             :   /* nsIStringBundle createBundle (in string aURLSpec); */
     176             :   NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) = 0;
     177             : 
     178             :   /* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
     179             :   NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) = 0;
     180             : 
     181             :   /* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
     182             :   NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) = 0;
     183             : 
     184             :   /* void flushBundles (); */
     185             :   NS_IMETHOD FlushBundles(void) = 0;
     186             : 
     187             : };
     188             : 
     189             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringBundleService, NS_ISTRINGBUNDLESERVICE_IID)
     190             : 
     191             : /* Use this macro when declaring classes that implement this interface. */
     192             : #define NS_DECL_NSISTRINGBUNDLESERVICE \
     193             :   NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override; \
     194             :   NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override; \
     195             :   NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override; \
     196             :   NS_IMETHOD FlushBundles(void) override; 
     197             : 
     198             : /* Use this macro when declaring the members of this interface when the
     199             :    class doesn't implement the interface. This is useful for forwarding. */
     200             : #define NS_DECL_NON_VIRTUAL_NSISTRINGBUNDLESERVICE \
     201             :   nsresult CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval); \
     202             :   nsresult CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval); \
     203             :   nsresult FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval); \
     204             :   nsresult FlushBundles(void); 
     205             : 
     206             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     207             : #define NS_FORWARD_NSISTRINGBUNDLESERVICE(_to) \
     208             :   NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override { return _to CreateBundle(aURLSpec, _retval); } \
     209             :   NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override { return _to CreateExtensibleBundle(aRegistryKey, _retval); } \
     210             :   NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override { return _to FormatStatusMessage(aStatus, aStatusArg, _retval); } \
     211             :   NS_IMETHOD FlushBundles(void) override { return _to FlushBundles(); } 
     212             : 
     213             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     214             : #define NS_FORWARD_SAFE_NSISTRINGBUNDLESERVICE(_to) \
     215             :   NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBundle(aURLSpec, _retval); } \
     216             :   NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateExtensibleBundle(aRegistryKey, _retval); } \
     217             :   NS_IMETHOD FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStatusMessage(aStatus, aStatusArg, _retval); } \
     218             :   NS_IMETHOD FlushBundles(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushBundles(); } 
     219             : 
     220             : #if 0
     221             : /* Use the code below as a template for the implementation class for this interface. */
     222             : 
     223             : /* Header file */
     224             : class nsStringBundleService : public nsIStringBundleService
     225             : {
     226             : public:
     227             :   NS_DECL_ISUPPORTS
     228             :   NS_DECL_NSISTRINGBUNDLESERVICE
     229             : 
     230             :   nsStringBundleService();
     231             : 
     232             : private:
     233             :   ~nsStringBundleService();
     234             : 
     235             : protected:
     236             :   /* additional members */
     237             : };
     238             : 
     239             : /* Implementation file */
     240             : NS_IMPL_ISUPPORTS(nsStringBundleService, nsIStringBundleService)
     241             : 
     242             : nsStringBundleService::nsStringBundleService()
     243             : {
     244             :   /* member initializers and constructor code */
     245             : }
     246             : 
     247             : nsStringBundleService::~nsStringBundleService()
     248             : {
     249             :   /* destructor code */
     250             : }
     251             : 
     252             : /* nsIStringBundle createBundle (in string aURLSpec); */
     253             : NS_IMETHODIMP nsStringBundleService::CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval)
     254             : {
     255             :     return NS_ERROR_NOT_IMPLEMENTED;
     256             : }
     257             : 
     258             : /* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
     259             : NS_IMETHODIMP nsStringBundleService::CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval)
     260             : {
     261             :     return NS_ERROR_NOT_IMPLEMENTED;
     262             : }
     263             : 
     264             : /* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
     265             : NS_IMETHODIMP nsStringBundleService::FormatStatusMessage(nsresult aStatus, const char16_t * aStatusArg, char16_t * *_retval)
     266             : {
     267             :     return NS_ERROR_NOT_IMPLEMENTED;
     268             : }
     269             : 
     270             : /* void flushBundles (); */
     271             : NS_IMETHODIMP nsStringBundleService::FlushBundles()
     272             : {
     273             :     return NS_ERROR_NOT_IMPLEMENTED;
     274             : }
     275             : 
     276             : /* End of implementation class template. */
     277             : #endif
     278             : 
     279             : 
     280             : #endif /* __gen_nsIStringBundle_h__ */

Generated by: LCOV version 1.13