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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/intl/uconv/idl/nsICharsetConverterManager.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsICharsetConverterManager_h__
       6                 : #define __gen_nsICharsetConverterManager_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsIAtom_h__
      14                 : #include "nsIAtom.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                 : #include "nsIUnicodeDecoder.h"
      22                 : #include "nsIUnicodeEncoder.h"
      23                 : #include "nsStringGlue.h"
      24                 : // XXX change to NS_CHARSETCONVERTERMANAGER_CID
      25                 : #define NS_ICHARSETCONVERTERMANAGER_CID \
      26                 :   {0x3c1c0163, 0x9bd0, 0x11d3, { 0x9d, 0x9, 0x0, 0x50, 0x4, 0x0, 0x7, 0xb2}}
      27                 : // XXX change to NS_CHARSETCONVERTERMANAGER_PID
      28                 : #define NS_CHARSETCONVERTERMANAGER_CONTRACTID "@mozilla.org/charset-converter-manager;1"
      29                 : class nsIUnicodeDecoder; /* forward declaration */
      30                 : 
      31                 : class nsIUnicodeEncoder; /* forward declaration */
      32                 : 
      33                 : class nsIUTF8StringEnumerator; /* forward declaration */
      34                 : 
      35                 : 
      36                 : /* starting interface:    nsICharsetConverterManager */
      37                 : #define NS_ICHARSETCONVERTERMANAGER_IID_STR "bf733b00-198f-4553-a061-637a21793330"
      38                 : 
      39                 : #define NS_ICHARSETCONVERTERMANAGER_IID \
      40                 :   {0xbf733b00, 0x198f, 0x4553, \
      41                 :     { 0xa0, 0x61, 0x63, 0x7a, 0x21, 0x79, 0x33, 0x30 }}
      42                 : 
      43             594 : class NS_NO_VTABLE NS_SCRIPTABLE nsICharsetConverterManager : public nsISupports {
      44                 :  public: 
      45                 : 
      46                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICHARSETCONVERTERMANAGER_IID)
      47                 : 
      48                 :   /* [noscript] nsIUnicodeDecoder getUnicodeDecoder (in string charset); */
      49                 :   NS_IMETHOD GetUnicodeDecoder(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) = 0;
      50                 : 
      51                 :   /* [noscript] nsIUnicodeDecoder getUnicodeDecoderRaw (in string charset); */
      52                 :   NS_IMETHOD GetUnicodeDecoderRaw(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) = 0;
      53                 : 
      54                 :   /* [noscript] nsIUnicodeDecoder getUnicodeDecoderInternal (in string charset); */
      55                 :   NS_IMETHOD GetUnicodeDecoderInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) = 0;
      56                 : 
      57                 :   /* [noscript] nsIUnicodeDecoder getUnicodeDecoderRawInternal (in string charset); */
      58                 :   NS_IMETHOD GetUnicodeDecoderRawInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) = 0;
      59                 : 
      60                 :   /* [noscript] nsIUnicodeEncoder getUnicodeEncoder (in string charset); */
      61                 :   NS_IMETHOD GetUnicodeEncoder(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* [noscript] nsIUnicodeEncoder getUnicodeEncoderRaw (in string charset); */
      64                 :   NS_IMETHOD GetUnicodeEncoderRaw(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) = 0;
      65                 : 
      66                 :   /* ACString getCharsetAlias (in string aCharset); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString & _retval NS_OUTPARAM) = 0;
      68                 : 
      69                 :   /* nsIUTF8StringEnumerator getDecoderList (); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
      71                 : 
      72                 :   /* nsIUTF8StringEnumerator getEncoderList (); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD GetEncoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
      74                 : 
      75                 :   /* nsIUTF8StringEnumerator GetCharsetDetectorList (); */
      76                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetDetectorList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) = 0;
      77                 : 
      78                 :   /* AString getCharsetTitle (in string aCharset); */
      79                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString & _retval NS_OUTPARAM) = 0;
      80                 : 
      81                 :   /* AString getCharsetData (in string aCharset, in wstring aProp); */
      82                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetData(const char * aCharset, const PRUnichar * aProp, nsAString & _retval NS_OUTPARAM) = 0;
      83                 : 
      84                 :   /* nsIAtom getCharsetLangGroup (in string aCharset); */
      85                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) = 0;
      86                 : 
      87                 :   /* nsIAtom getCharsetLangGroupRaw (in string aCharset); */
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) = 0;
      89                 : 
      90                 : };
      91                 : 
      92                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsICharsetConverterManager, NS_ICHARSETCONVERTERMANAGER_IID)
      93                 : 
      94                 : /* Use this macro when declaring classes that implement this interface. */
      95                 : #define NS_DECL_NSICHARSETCONVERTERMANAGER \
      96                 :   NS_IMETHOD GetUnicodeDecoder(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM); \
      97                 :   NS_IMETHOD GetUnicodeDecoderRaw(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM); \
      98                 :   NS_IMETHOD GetUnicodeDecoderInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM); \
      99                 :   NS_IMETHOD GetUnicodeDecoderRawInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM); \
     100                 :   NS_IMETHOD GetUnicodeEncoder(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM); \
     101                 :   NS_IMETHOD GetUnicodeEncoderRaw(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString & _retval NS_OUTPARAM); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetEncoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetDetectorList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM); \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString & _retval NS_OUTPARAM); \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetData(const char * aCharset, const PRUnichar * aProp, nsAString & _retval NS_OUTPARAM); \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM); \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM); 
     110                 : 
     111                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     112                 : #define NS_FORWARD_NSICHARSETCONVERTERMANAGER(_to) \
     113                 :   NS_IMETHOD GetUnicodeDecoder(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return _to GetUnicodeDecoder(charset, _retval); } \
     114                 :   NS_IMETHOD GetUnicodeDecoderRaw(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return _to GetUnicodeDecoderRaw(charset, _retval); } \
     115                 :   NS_IMETHOD GetUnicodeDecoderInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return _to GetUnicodeDecoderInternal(charset, _retval); } \
     116                 :   NS_IMETHOD GetUnicodeDecoderRawInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return _to GetUnicodeDecoderRawInternal(charset, _retval); } \
     117                 :   NS_IMETHOD GetUnicodeEncoder(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) { return _to GetUnicodeEncoder(charset, _retval); } \
     118                 :   NS_IMETHOD GetUnicodeEncoderRaw(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) { return _to GetUnicodeEncoderRaw(charset, _retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString & _retval NS_OUTPARAM) { return _to GetCharsetAlias(aCharset, _retval); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetDecoderList(_retval); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetEncoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetEncoderList(_retval); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetDetectorList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return _to GetCharsetDetectorList(_retval); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString & _retval NS_OUTPARAM) { return _to GetCharsetTitle(aCharset, _retval); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetData(const char * aCharset, const PRUnichar * aProp, nsAString & _retval NS_OUTPARAM) { return _to GetCharsetData(aCharset, aProp, _retval); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) { return _to GetCharsetLangGroup(aCharset, _retval); } \
     126                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) { return _to GetCharsetLangGroupRaw(aCharset, _retval); } 
     127                 : 
     128                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     129                 : #define NS_FORWARD_SAFE_NSICHARSETCONVERTERMANAGER(_to) \
     130                 :   NS_IMETHOD GetUnicodeDecoder(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeDecoder(charset, _retval); } \
     131                 :   NS_IMETHOD GetUnicodeDecoderRaw(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeDecoderRaw(charset, _retval); } \
     132                 :   NS_IMETHOD GetUnicodeDecoderInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeDecoderInternal(charset, _retval); } \
     133                 :   NS_IMETHOD GetUnicodeDecoderRawInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeDecoderRawInternal(charset, _retval); } \
     134                 :   NS_IMETHOD GetUnicodeEncoder(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeEncoder(charset, _retval); } \
     135                 :   NS_IMETHOD GetUnicodeEncoderRaw(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUnicodeEncoderRaw(charset, _retval); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetAlias(const char * aCharset, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetAlias(aCharset, _retval); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD GetDecoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDecoderList(_retval); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetEncoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEncoderList(_retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetDetectorList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetDetectorList(_retval); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetTitle(const char * aCharset, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetTitle(aCharset, _retval); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetData(const char * aCharset, const PRUnichar * aProp, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetData(aCharset, aProp, _retval); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroup(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetLangGroup(aCharset, _retval); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetCharsetLangGroupRaw(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharsetLangGroupRaw(aCharset, _retval); } 
     144                 : 
     145                 : #if 0
     146                 : /* Use the code below as a template for the implementation class for this interface. */
     147                 : 
     148                 : /* Header file */
     149                 : class nsCharsetConverterManager : public nsICharsetConverterManager
     150                 : {
     151                 : public:
     152                 :   NS_DECL_ISUPPORTS
     153                 :   NS_DECL_NSICHARSETCONVERTERMANAGER
     154                 : 
     155                 :   nsCharsetConverterManager();
     156                 : 
     157                 : private:
     158                 :   ~nsCharsetConverterManager();
     159                 : 
     160                 : protected:
     161                 :   /* additional members */
     162                 : };
     163                 : 
     164                 : /* Implementation file */
     165                 : NS_IMPL_ISUPPORTS1(nsCharsetConverterManager, nsICharsetConverterManager)
     166                 : 
     167                 : nsCharsetConverterManager::nsCharsetConverterManager()
     168                 : {
     169                 :   /* member initializers and constructor code */
     170                 : }
     171                 : 
     172                 : nsCharsetConverterManager::~nsCharsetConverterManager()
     173                 : {
     174                 :   /* destructor code */
     175                 : }
     176                 : 
     177                 : /* [noscript] nsIUnicodeDecoder getUnicodeDecoder (in string charset); */
     178                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeDecoder(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM)
     179                 : {
     180                 :     return NS_ERROR_NOT_IMPLEMENTED;
     181                 : }
     182                 : 
     183                 : /* [noscript] nsIUnicodeDecoder getUnicodeDecoderRaw (in string charset); */
     184                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeDecoderRaw(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM)
     185                 : {
     186                 :     return NS_ERROR_NOT_IMPLEMENTED;
     187                 : }
     188                 : 
     189                 : /* [noscript] nsIUnicodeDecoder getUnicodeDecoderInternal (in string charset); */
     190                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeDecoderInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM)
     191                 : {
     192                 :     return NS_ERROR_NOT_IMPLEMENTED;
     193                 : }
     194                 : 
     195                 : /* [noscript] nsIUnicodeDecoder getUnicodeDecoderRawInternal (in string charset); */
     196                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeDecoderRawInternal(const char * charset, nsIUnicodeDecoder * *_retval NS_OUTPARAM)
     197                 : {
     198                 :     return NS_ERROR_NOT_IMPLEMENTED;
     199                 : }
     200                 : 
     201                 : /* [noscript] nsIUnicodeEncoder getUnicodeEncoder (in string charset); */
     202                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeEncoder(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM)
     203                 : {
     204                 :     return NS_ERROR_NOT_IMPLEMENTED;
     205                 : }
     206                 : 
     207                 : /* [noscript] nsIUnicodeEncoder getUnicodeEncoderRaw (in string charset); */
     208                 : NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeEncoderRaw(const char * charset, nsIUnicodeEncoder * *_retval NS_OUTPARAM)
     209                 : {
     210                 :     return NS_ERROR_NOT_IMPLEMENTED;
     211                 : }
     212                 : 
     213                 : /* ACString getCharsetAlias (in string aCharset); */
     214                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetAlias(const char * aCharset, nsACString & _retval NS_OUTPARAM)
     215                 : {
     216                 :     return NS_ERROR_NOT_IMPLEMENTED;
     217                 : }
     218                 : 
     219                 : /* nsIUTF8StringEnumerator getDecoderList (); */
     220                 : NS_IMETHODIMP nsCharsetConverterManager::GetDecoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     221                 : {
     222                 :     return NS_ERROR_NOT_IMPLEMENTED;
     223                 : }
     224                 : 
     225                 : /* nsIUTF8StringEnumerator getEncoderList (); */
     226                 : NS_IMETHODIMP nsCharsetConverterManager::GetEncoderList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     227                 : {
     228                 :     return NS_ERROR_NOT_IMPLEMENTED;
     229                 : }
     230                 : 
     231                 : /* nsIUTF8StringEnumerator GetCharsetDetectorList (); */
     232                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetDetectorList(nsIUTF8StringEnumerator * *_retval NS_OUTPARAM)
     233                 : {
     234                 :     return NS_ERROR_NOT_IMPLEMENTED;
     235                 : }
     236                 : 
     237                 : /* AString getCharsetTitle (in string aCharset); */
     238                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetTitle(const char * aCharset, nsAString & _retval NS_OUTPARAM)
     239                 : {
     240                 :     return NS_ERROR_NOT_IMPLEMENTED;
     241                 : }
     242                 : 
     243                 : /* AString getCharsetData (in string aCharset, in wstring aProp); */
     244                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetData(const char * aCharset, const PRUnichar * aProp, nsAString & _retval NS_OUTPARAM)
     245                 : {
     246                 :     return NS_ERROR_NOT_IMPLEMENTED;
     247                 : }
     248                 : 
     249                 : /* nsIAtom getCharsetLangGroup (in string aCharset); */
     250                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetLangGroup(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM)
     251                 : {
     252                 :     return NS_ERROR_NOT_IMPLEMENTED;
     253                 : }
     254                 : 
     255                 : /* nsIAtom getCharsetLangGroupRaw (in string aCharset); */
     256                 : NS_IMETHODIMP nsCharsetConverterManager::GetCharsetLangGroupRaw(const char * aCharset, nsIAtom * *_retval NS_OUTPARAM)
     257                 : {
     258                 :     return NS_ERROR_NOT_IMPLEMENTED;
     259                 : }
     260                 : 
     261                 : /* End of implementation class template. */
     262                 : #endif
     263                 : 
     264                 : 
     265                 : #endif /* __gen_nsICharsetConverterManager_h__ */

Generated by: LCOV version 1.7