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

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIScriptableUConv.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/uconv/idl/nsIScriptableUConv.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIScriptableUConv_h__
           6                 : #define __gen_nsIScriptableUConv_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsISupports_h__
          10                 : #include "nsISupports.h"
          11                 : #endif
          12                 :
          13                 : /* For IDL files that don't want to include root IDL files. */
          14                 : #ifndef NS_NO_VTABLE
          15                 : #define NS_NO_VTABLE
          16                 : #endif
          17                 : class nsIInputStream; /* forward declaration */
          18                 :
          19                 : // {0A698C44-3BFF-11d4-9649-00C0CA135B4E}
          20                 : #define NS_ISCRIPTABLEUNICODECONVERTER_CID { 0x0A698C44, 0x3BFF, 0x11d4, { 0x96, 0x49, 0x00, 0xC0, 0xCA, 0x13, 0x5B, 0x4E } }
          21                 : #define NS_ISCRIPTABLEUNICODECONVERTER_CONTRACTID "@mozilla.org/intl/scriptableunicodeconverter"
          22                 :
          23                 : /* starting interface:    nsIScriptableUnicodeConverter */
          24                 : #define NS_ISCRIPTABLEUNICODECONVERTER_IID_STR "f36ee324-5c1c-437f-ba10-2b4db7a18031"
          25                 :
          26                 : #define NS_ISCRIPTABLEUNICODECONVERTER_IID \
          27                 :   {0xf36ee324, 0x5c1c, 0x437f, \
          28                 :     { 0xba, 0x10, 0x2b, 0x4d, 0xb7, 0xa1, 0x80, 0x31 }}
          29                 :
          30             611 : class NS_NO_VTABLE NS_SCRIPTABLE nsIScriptableUnicodeConverter : public nsISupports {
          31                 :  public:
          32                 :
          33                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEUNICODECONVERTER_IID)
          34                 :
          35                 :   /* ACString ConvertFromUnicode (in AString aSrc); */
          36                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval NS_OUTPARAM) = 0;
          37                 :
          38                 :   /* ACString Finish (); */
          39                 :   NS_SCRIPTABLE NS_IMETHOD Finish(nsACString & _retval NS_OUTPARAM) = 0;
          40                 :
          41                 :   /* AString ConvertToUnicode (in ACString aSrc); */
          42                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval NS_OUTPARAM) = 0;
          43                 :
          44                 :   /* AString convertFromByteArray ([array, size_is (aCount), const] in octet aData, in unsigned long aCount); */
          45                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromByteArray(const PRUint8 *aData, PRUint32 aCount, nsAString & _retval NS_OUTPARAM) = 0;
          46                 :
          47                 :   /* void convertToByteArray (in AString aString, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out octet aData); */
          48                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToByteArray(const nsAString & aString, PRUint32 *aLen NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) = 0;
          49                 :
          50                 :   /* nsIInputStream convertToInputStream (in AString aString); */
          51                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval NS_OUTPARAM) = 0;
          52                 :
          53                 :   /* attribute string charset; */
          54                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) = 0;
          55                 :   NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) = 0;
          56                 :
          57                 :   /* attribute boolean isInternal; */
          58                 :   NS_SCRIPTABLE NS_IMETHOD GetIsInternal(bool *aIsInternal) = 0;
          59                 :   NS_SCRIPTABLE NS_IMETHOD SetIsInternal(bool aIsInternal) = 0;
          60                 :
          61                 : };
          62                 :
          63                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableUnicodeConverter, NS_ISCRIPTABLEUNICODECONVERTER_IID)
          64                 :
          65                 : /* Use this macro when declaring classes that implement this interface. */
          66                 : #define NS_DECL_NSISCRIPTABLEUNICODECONVERTER \
          67                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval NS_OUTPARAM); \
          68                 :   NS_SCRIPTABLE NS_IMETHOD Finish(nsACString & _retval NS_OUTPARAM); \
          69                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval NS_OUTPARAM); \
          70                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromByteArray(const PRUint8 *aData, PRUint32 aCount, nsAString & _retval NS_OUTPARAM); \
          71                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToByteArray(const nsAString & aString, PRUint32 *aLen NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM); \
          72                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval NS_OUTPARAM); \
          73                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset); \
          74                 :   NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset); \
          75                 :   NS_SCRIPTABLE NS_IMETHOD GetIsInternal(bool *aIsInternal); \
          76                 :   NS_SCRIPTABLE NS_IMETHOD SetIsInternal(bool aIsInternal);
          77                 :
          78                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          79                 : #define NS_FORWARD_NSISCRIPTABLEUNICODECONVERTER(_to) \
          80                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval NS_OUTPARAM) { return _to ConvertFromUnicode(aSrc, _retval); } \
          81                 :   NS_SCRIPTABLE NS_IMETHOD Finish(nsACString & _retval NS_OUTPARAM) { return _to Finish(_retval); } \
          82                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval NS_OUTPARAM) { return _to ConvertToUnicode(aSrc, _retval); } \
          83                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromByteArray(const PRUint8 *aData, PRUint32 aCount, nsAString & _retval NS_OUTPARAM) { return _to ConvertFromByteArray(aData, aCount, _retval); } \
          84                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToByteArray(const nsAString & aString, PRUint32 *aLen NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) { return _to ConvertToByteArray(aString, aLen, aData); } \
          85                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval NS_OUTPARAM) { return _to ConvertToInputStream(aString, _retval); } \
          86                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return _to GetCharset(aCharset); } \
          87                 :   NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return _to SetCharset(aCharset); } \
          88                 :   NS_SCRIPTABLE NS_IMETHOD GetIsInternal(bool *aIsInternal) { return _to GetIsInternal(aIsInternal); } \
          89                 :   NS_SCRIPTABLE NS_IMETHOD SetIsInternal(bool aIsInternal) { return _to SetIsInternal(aIsInternal); }
          90                 :
          91                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          92                 : #define NS_FORWARD_SAFE_NSISCRIPTABLEUNICODECONVERTER(_to) \
          93                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertFromUnicode(aSrc, _retval); } \
          94                 :   NS_SCRIPTABLE NS_IMETHOD Finish(nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Finish(_retval); } \
          95                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToUnicode(const nsACString & aSrc, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToUnicode(aSrc, _retval); } \
          96                 :   NS_SCRIPTABLE NS_IMETHOD ConvertFromByteArray(const PRUint8 *aData, PRUint32 aCount, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertFromByteArray(aData, aCount, _retval); } \
          97                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToByteArray(const nsAString & aString, PRUint32 *aLen NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToByteArray(aString, aLen, aData); } \
          98                 :   NS_SCRIPTABLE NS_IMETHOD ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertToInputStream(aString, _retval); } \
          99                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(char * *aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
         100                 :   NS_SCRIPTABLE NS_IMETHOD SetCharset(const char * aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCharset(aCharset); } \
         101                 :   NS_SCRIPTABLE NS_IMETHOD GetIsInternal(bool *aIsInternal) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetIsInternal(aIsInternal); } \
         102                 :   NS_SCRIPTABLE NS_IMETHOD SetIsInternal(bool aIsInternal) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIsInternal(aIsInternal); }
         103                 :
         104                 : #if 0
         105                 : /* Use the code below as a template for the implementation class for this interface. */
         106                 :
         107                 : /* Header file */
         108                 : class nsScriptableUnicodeConverter : public nsIScriptableUnicodeConverter
         109                 : {
         110                 : public:
         111                 :   NS_DECL_ISUPPORTS
         112                 :   NS_DECL_NSISCRIPTABLEUNICODECONVERTER
         113                 :
         114                 :   nsScriptableUnicodeConverter();
         115                 :
         116                 : private:
         117                 :   ~nsScriptableUnicodeConverter();
         118                 :
         119                 : protected:
         120                 :   /* additional members */
         121                 : };
         122                 :
         123                 : /* Implementation file */
         124                 : NS_IMPL_ISUPPORTS1(nsScriptableUnicodeConverter, nsIScriptableUnicodeConverter)
         125                 :
         126                 : nsScriptableUnicodeConverter::nsScriptableUnicodeConverter()
         127                 : {
         128                 :   /* member initializers and constructor code */
         129                 : }
         130                 :
         131                 : nsScriptableUnicodeConverter::~nsScriptableUnicodeConverter()
         132                 : {
         133                 :   /* destructor code */
         134                 : }
         135                 :
         136                 : /* ACString ConvertFromUnicode (in AString aSrc); */
         137                 : NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertFromUnicode(const nsAString & aSrc, nsACString & _retval NS_OUTPARAM)
         138                 : {
         139                 :     return NS_ERROR_NOT_IMPLEMENTED;
         140                 : }
         141                 :
         142                 : /* ACString Finish (); */
         143                 : NS_IMETHODIMP nsScriptableUnicodeConverter::Finish(nsACString & _retval NS_OUTPARAM)
         144                 : {
         145                 :     return NS_ERROR_NOT_IMPLEMENTED;
         146                 : }
         147                 :
         148                 : /* AString ConvertToUnicode (in ACString aSrc); */
         149                 : NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToUnicode(const nsACString & aSrc, nsAString & _retval NS_OUTPARAM)
         150                 : {
         151                 :     return NS_ERROR_NOT_IMPLEMENTED;
         152                 : }
         153                 :
         154                 : /* AString convertFromByteArray ([array, size_is (aCount), const] in octet aData, in unsigned long aCount); */
         155                 : NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertFromByteArray(const PRUint8 *aData, PRUint32 aCount, nsAString & _retval NS_OUTPARAM)
         156                 : {
         157                 :     return NS_ERROR_NOT_IMPLEMENTED;
         158                 : }
         159                 :
         160                 : /* void convertToByteArray (in AString aString, [optional] out unsigned long aLen, [array, size_is (aLen), retval] out octet aData); */
         161                 : NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToByteArray(const nsAString & aString, PRUint32 *aLen NS_OUTPARAM, PRUint8 **aData NS_OUTPARAM)
         162                 : {
         163                 :     return NS_ERROR_NOT_IMPLEMENTED;
         164                 : }
         165                 :
         166                 : /* nsIInputStream convertToInputStream (in AString aString); */
         167                 : NS_IMETHODIMP nsScriptableUnicodeConverter::ConvertToInputStream(const nsAString & aString, nsIInputStream * *_retval NS_OUTPARAM)
         168                 : {
         169                 :     return NS_ERROR_NOT_IMPLEMENTED;
         170                 : }
         171                 :
         172                 : /* attribute string charset; */
         173                 : NS_IMETHODIMP nsScriptableUnicodeConverter::GetCharset(char * *aCharset)
         174                 : {
         175                 :     return NS_ERROR_NOT_IMPLEMENTED;
         176                 : }
         177                 : NS_IMETHODIMP nsScriptableUnicodeConverter::SetCharset(const char * aCharset)
         178                 : {
         179                 :     return NS_ERROR_NOT_IMPLEMENTED;
         180                 : }
         181                 :
         182                 : /* attribute boolean isInternal; */
         183                 : NS_IMETHODIMP nsScriptableUnicodeConverter::GetIsInternal(bool *aIsInternal)
         184                 : {
         185                 :     return NS_ERROR_NOT_IMPLEMENTED;
         186                 : }
         187                 : NS_IMETHODIMP nsScriptableUnicodeConverter::SetIsInternal(bool aIsInternal)
         188                 : {
         189                 :     return NS_ERROR_NOT_IMPLEMENTED;
         190                 : }
         191                 :
         192                 : /* End of implementation class template. */
         193                 : #endif
         194                 :
         195                 :
         196                 : #endif /* __gen_nsIScriptableUConv_h__ */

Generated by: LCOV version 1.7