LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIStringBundle.h (source / functions) Found Hit Coverage
Test: app.info Lines: 2 2 100.0 %
Date: 2012-06-02 Functions: 2 2 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/intl/strres/public/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            4569 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStringBundle : public nsISupports {
      41                 :  public: 
      42                 : 
      43                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLE_IID)
      44                 : 
      45                 :   /* wstring GetStringFromID (in long aID); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromID(PRInt32 aID, PRUnichar * *_retval NS_OUTPARAM) = 0;
      47                 : 
      48                 :   /* wstring GetStringFromName (in wstring aName); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromName(const PRUnichar * aName, PRUnichar * *_retval NS_OUTPARAM) = 0;
      50                 : 
      51                 :   /* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromID(PRInt32 aID, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromName(const PRUnichar * aName, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* nsISimpleEnumerator getSimpleEnumeration (); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetStringFromID(PRInt32 aID, PRUnichar * *_retval NS_OUTPARAM); \
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromName(const PRUnichar * aName, PRUnichar * *_retval NS_OUTPARAM); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromID(PRInt32 aID, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromName(const PRUnichar * aName, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval NS_OUTPARAM); 
      71                 : 
      72                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      73                 : #define NS_FORWARD_NSISTRINGBUNDLE(_to) \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromID(PRInt32 aID, PRUnichar * *_retval NS_OUTPARAM) { return _to GetStringFromID(aID, _retval); } \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromName(const PRUnichar * aName, PRUnichar * *_retval NS_OUTPARAM) { return _to GetStringFromName(aName, _retval); } \
      76                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromID(PRInt32 aID, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) { return _to FormatStringFromID(aID, params, length, _retval); } \
      77                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromName(const PRUnichar * aName, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) { return _to FormatStringFromName(aName, params, length, _retval); } \
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return _to GetSimpleEnumeration(_retval); } 
      79                 : 
      80                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      81                 : #define NS_FORWARD_SAFE_NSISTRINGBUNDLE(_to) \
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromID(PRInt32 aID, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromID(aID, _retval); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD GetStringFromName(const PRUnichar * aName, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStringFromName(aName, _retval); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromID(PRInt32 aID, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromID(aID, params, length, _retval); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD FormatStringFromName(const PRUnichar * aName, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStringFromName(aName, params, length, _retval); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetSimpleEnumeration(nsISimpleEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSimpleEnumeration(_retval); } 
      87                 : 
      88                 : #if 0
      89                 : /* Use the code below as a template for the implementation class for this interface. */
      90                 : 
      91                 : /* Header file */
      92                 : class nsStringBundle : public nsIStringBundle
      93                 : {
      94                 : public:
      95                 :   NS_DECL_ISUPPORTS
      96                 :   NS_DECL_NSISTRINGBUNDLE
      97                 : 
      98                 :   nsStringBundle();
      99                 : 
     100                 : private:
     101                 :   ~nsStringBundle();
     102                 : 
     103                 : protected:
     104                 :   /* additional members */
     105                 : };
     106                 : 
     107                 : /* Implementation file */
     108                 : NS_IMPL_ISUPPORTS1(nsStringBundle, nsIStringBundle)
     109                 : 
     110                 : nsStringBundle::nsStringBundle()
     111                 : {
     112                 :   /* member initializers and constructor code */
     113                 : }
     114                 : 
     115                 : nsStringBundle::~nsStringBundle()
     116                 : {
     117                 :   /* destructor code */
     118                 : }
     119                 : 
     120                 : /* wstring GetStringFromID (in long aID); */
     121                 : NS_IMETHODIMP nsStringBundle::GetStringFromID(PRInt32 aID, PRUnichar * *_retval NS_OUTPARAM)
     122                 : {
     123                 :     return NS_ERROR_NOT_IMPLEMENTED;
     124                 : }
     125                 : 
     126                 : /* wstring GetStringFromName (in wstring aName); */
     127                 : NS_IMETHODIMP nsStringBundle::GetStringFromName(const PRUnichar * aName, PRUnichar * *_retval NS_OUTPARAM)
     128                 : {
     129                 :     return NS_ERROR_NOT_IMPLEMENTED;
     130                 : }
     131                 : 
     132                 : /* wstring formatStringFromID (in long aID, [array, size_is (length)] in wstring params, in unsigned long length); */
     133                 : NS_IMETHODIMP nsStringBundle::FormatStringFromID(PRInt32 aID, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM)
     134                 : {
     135                 :     return NS_ERROR_NOT_IMPLEMENTED;
     136                 : }
     137                 : 
     138                 : /* wstring formatStringFromName (in wstring aName, [array, size_is (length)] in wstring params, in unsigned long length); */
     139                 : NS_IMETHODIMP nsStringBundle::FormatStringFromName(const PRUnichar * aName, const PRUnichar * *params, PRUint32 length, PRUnichar * *_retval NS_OUTPARAM)
     140                 : {
     141                 :     return NS_ERROR_NOT_IMPLEMENTED;
     142                 : }
     143                 : 
     144                 : /* nsISimpleEnumerator getSimpleEnumeration (); */
     145                 : NS_IMETHODIMP nsStringBundle::GetSimpleEnumeration(nsISimpleEnumerator * *_retval NS_OUTPARAM)
     146                 : {
     147                 :     return NS_ERROR_NOT_IMPLEMENTED;
     148                 : }
     149                 : 
     150                 : /* End of implementation class template. */
     151                 : #endif
     152                 : 
     153                 : 
     154                 : /* starting interface:    nsIStringBundleService */
     155                 : #define NS_ISTRINGBUNDLESERVICE_IID_STR "d85a17c0-aa7c-11d2-9b8c-00805f8a16d9"
     156                 : 
     157                 : #define NS_ISTRINGBUNDLESERVICE_IID \
     158                 :   {0xd85a17c0, 0xaa7c, 0x11d2, \
     159                 :     { 0x9b, 0x8c, 0x00, 0x80, 0x5f, 0x8a, 0x16, 0xd9 }}
     160                 : 
     161            1404 : class NS_NO_VTABLE NS_SCRIPTABLE nsIStringBundleService : public nsISupports {
     162                 :  public: 
     163                 : 
     164                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTRINGBUNDLESERVICE_IID)
     165                 : 
     166                 :   /* nsIStringBundle createBundle (in string aURLSpec); */
     167                 :   NS_SCRIPTABLE NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval NS_OUTPARAM) = 0;
     168                 : 
     169                 :   /* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
     170                 :   NS_SCRIPTABLE NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval NS_OUTPARAM) = 0;
     171                 : 
     172                 :   /* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
     173                 :   NS_SCRIPTABLE NS_IMETHOD FormatStatusMessage(nsresult aStatus, const PRUnichar * aStatusArg, PRUnichar * *_retval NS_OUTPARAM) = 0;
     174                 : 
     175                 :   /* void flushBundles (); */
     176                 :   NS_SCRIPTABLE NS_IMETHOD FlushBundles(void) = 0;
     177                 : 
     178                 : };
     179                 : 
     180                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIStringBundleService, NS_ISTRINGBUNDLESERVICE_IID)
     181                 : 
     182                 : /* Use this macro when declaring classes that implement this interface. */
     183                 : #define NS_DECL_NSISTRINGBUNDLESERVICE \
     184                 :   NS_SCRIPTABLE NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval NS_OUTPARAM); \
     185                 :   NS_SCRIPTABLE NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval NS_OUTPARAM); \
     186                 :   NS_SCRIPTABLE NS_IMETHOD FormatStatusMessage(nsresult aStatus, const PRUnichar * aStatusArg, PRUnichar * *_retval NS_OUTPARAM); \
     187                 :   NS_SCRIPTABLE NS_IMETHOD FlushBundles(void); 
     188                 : 
     189                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     190                 : #define NS_FORWARD_NSISTRINGBUNDLESERVICE(_to) \
     191                 :   NS_SCRIPTABLE NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval NS_OUTPARAM) { return _to CreateBundle(aURLSpec, _retval); } \
     192                 :   NS_SCRIPTABLE NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval NS_OUTPARAM) { return _to CreateExtensibleBundle(aRegistryKey, _retval); } \
     193                 :   NS_SCRIPTABLE NS_IMETHOD FormatStatusMessage(nsresult aStatus, const PRUnichar * aStatusArg, PRUnichar * *_retval NS_OUTPARAM) { return _to FormatStatusMessage(aStatus, aStatusArg, _retval); } \
     194                 :   NS_SCRIPTABLE NS_IMETHOD FlushBundles(void) { return _to FlushBundles(); } 
     195                 : 
     196                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     197                 : #define NS_FORWARD_SAFE_NSISTRINGBUNDLESERVICE(_to) \
     198                 :   NS_SCRIPTABLE NS_IMETHOD CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateBundle(aURLSpec, _retval); } \
     199                 :   NS_SCRIPTABLE NS_IMETHOD CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateExtensibleBundle(aRegistryKey, _retval); } \
     200                 :   NS_SCRIPTABLE NS_IMETHOD FormatStatusMessage(nsresult aStatus, const PRUnichar * aStatusArg, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FormatStatusMessage(aStatus, aStatusArg, _retval); } \
     201                 :   NS_SCRIPTABLE NS_IMETHOD FlushBundles(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FlushBundles(); } 
     202                 : 
     203                 : #if 0
     204                 : /* Use the code below as a template for the implementation class for this interface. */
     205                 : 
     206                 : /* Header file */
     207                 : class nsStringBundleService : public nsIStringBundleService
     208                 : {
     209                 : public:
     210                 :   NS_DECL_ISUPPORTS
     211                 :   NS_DECL_NSISTRINGBUNDLESERVICE
     212                 : 
     213                 :   nsStringBundleService();
     214                 : 
     215                 : private:
     216                 :   ~nsStringBundleService();
     217                 : 
     218                 : protected:
     219                 :   /* additional members */
     220                 : };
     221                 : 
     222                 : /* Implementation file */
     223                 : NS_IMPL_ISUPPORTS1(nsStringBundleService, nsIStringBundleService)
     224                 : 
     225                 : nsStringBundleService::nsStringBundleService()
     226                 : {
     227                 :   /* member initializers and constructor code */
     228                 : }
     229                 : 
     230                 : nsStringBundleService::~nsStringBundleService()
     231                 : {
     232                 :   /* destructor code */
     233                 : }
     234                 : 
     235                 : /* nsIStringBundle createBundle (in string aURLSpec); */
     236                 : NS_IMETHODIMP nsStringBundleService::CreateBundle(const char * aURLSpec, nsIStringBundle * *_retval NS_OUTPARAM)
     237                 : {
     238                 :     return NS_ERROR_NOT_IMPLEMENTED;
     239                 : }
     240                 : 
     241                 : /* nsIStringBundle createExtensibleBundle (in string aRegistryKey); */
     242                 : NS_IMETHODIMP nsStringBundleService::CreateExtensibleBundle(const char * aRegistryKey, nsIStringBundle * *_retval NS_OUTPARAM)
     243                 : {
     244                 :     return NS_ERROR_NOT_IMPLEMENTED;
     245                 : }
     246                 : 
     247                 : /* wstring formatStatusMessage (in nsresult aStatus, in wstring aStatusArg); */
     248                 : NS_IMETHODIMP nsStringBundleService::FormatStatusMessage(nsresult aStatus, const PRUnichar * aStatusArg, PRUnichar * *_retval NS_OUTPARAM)
     249                 : {
     250                 :     return NS_ERROR_NOT_IMPLEMENTED;
     251                 : }
     252                 : 
     253                 : /* void flushBundles (); */
     254                 : NS_IMETHODIMP nsStringBundleService::FlushBundles()
     255                 : {
     256                 :     return NS_ERROR_NOT_IMPLEMENTED;
     257                 : }
     258                 : 
     259                 : /* End of implementation class template. */
     260                 : #endif
     261                 : 
     262                 : 
     263                 : #endif /* __gen_nsIStringBundle_h__ */

Generated by: LCOV version 1.7