LCOV - code coverage report
Current view: directory - objdir/dist/include - nsITextToSubURI.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/nsITextToSubURI.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsITextToSubURI_h__
       6                 : #define __gen_nsITextToSubURI_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                 : // {8B042E22-6F87-11d3-B3C8-00805F8A6670}
      18                 : #define NS_TEXTTOSUBURI_CID { 0x8b042e22, 0x6f87, 0x11d3, { 0xb3, 0xc8, 0x0, 0x80, 0x5f, 0x8a, 0x66, 0x70 } }
      19                 : #define NS_ITEXTTOSUBURI_CONTRACTID "@mozilla.org/intl/texttosuburi;1"
      20                 : 
      21                 : /* starting interface:    nsITextToSubURI */
      22                 : #define NS_ITEXTTOSUBURI_IID_STR "8b042e24-6f87-11d3-b3c8-00805f8a6670"
      23                 : 
      24                 : #define NS_ITEXTTOSUBURI_IID \
      25                 :   {0x8b042e24, 0x6f87, 0x11d3, \
      26                 :     { 0xb3, 0xc8, 0x00, 0x80, 0x5f, 0x8a, 0x66, 0x70 }}
      27                 : 
      28              42 : class NS_NO_VTABLE NS_SCRIPTABLE nsITextToSubURI : public nsISupports {
      29                 :  public: 
      30                 : 
      31                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITEXTTOSUBURI_IID)
      32                 : 
      33                 :   /* string ConvertAndEscape (in string charset, in wstring text); */
      34                 :   NS_SCRIPTABLE NS_IMETHOD ConvertAndEscape(const char * charset, const PRUnichar * text, char * *_retval NS_OUTPARAM) = 0;
      35                 : 
      36                 :   /* wstring UnEscapeAndConvert (in string charset, in string text); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeAndConvert(const char * charset, const char * text, PRUnichar * *_retval NS_OUTPARAM) = 0;
      38                 : 
      39                 :   /* AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) = 0;
      44                 : 
      45                 : };
      46                 : 
      47                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITextToSubURI, NS_ITEXTTOSUBURI_IID)
      48                 : 
      49                 : /* Use this macro when declaring classes that implement this interface. */
      50                 : #define NS_DECL_NSITEXTTOSUBURI \
      51                 :   NS_SCRIPTABLE NS_IMETHOD ConvertAndEscape(const char * charset, const PRUnichar * text, char * *_retval NS_OUTPARAM); \
      52                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeAndConvert(const char * charset, const char * text, PRUnichar * *_retval NS_OUTPARAM); \
      53                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM); \
      54                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM); 
      55                 : 
      56                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      57                 : #define NS_FORWARD_NSITEXTTOSUBURI(_to) \
      58                 :   NS_SCRIPTABLE NS_IMETHOD ConvertAndEscape(const char * charset, const PRUnichar * text, char * *_retval NS_OUTPARAM) { return _to ConvertAndEscape(charset, text, _retval); } \
      59                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeAndConvert(const char * charset, const char * text, PRUnichar * *_retval NS_OUTPARAM) { return _to UnEscapeAndConvert(charset, text, _retval); } \
      60                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) { return _to UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \
      61                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) { return _to UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); } 
      62                 : 
      63                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      64                 : #define NS_FORWARD_SAFE_NSITEXTTOSUBURI(_to) \
      65                 :   NS_SCRIPTABLE NS_IMETHOD ConvertAndEscape(const char * charset, const PRUnichar * text, char * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ConvertAndEscape(charset, text, _retval); } \
      66                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeAndConvert(const char * charset, const char * text, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeAndConvert(charset, text, _retval); } \
      67                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeURIForUI(aCharset, aURIFragment, _retval); } \
      68                 :   NS_SCRIPTABLE NS_IMETHOD UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnEscapeNonAsciiURI(aCharset, aURIFragment, _retval); } 
      69                 : 
      70                 : #if 0
      71                 : /* Use the code below as a template for the implementation class for this interface. */
      72                 : 
      73                 : /* Header file */
      74                 : class nsTextToSubURI : public nsITextToSubURI
      75                 : {
      76                 : public:
      77                 :   NS_DECL_ISUPPORTS
      78                 :   NS_DECL_NSITEXTTOSUBURI
      79                 : 
      80                 :   nsTextToSubURI();
      81                 : 
      82                 : private:
      83                 :   ~nsTextToSubURI();
      84                 : 
      85                 : protected:
      86                 :   /* additional members */
      87                 : };
      88                 : 
      89                 : /* Implementation file */
      90                 : NS_IMPL_ISUPPORTS1(nsTextToSubURI, nsITextToSubURI)
      91                 : 
      92                 : nsTextToSubURI::nsTextToSubURI()
      93                 : {
      94                 :   /* member initializers and constructor code */
      95                 : }
      96                 : 
      97                 : nsTextToSubURI::~nsTextToSubURI()
      98                 : {
      99                 :   /* destructor code */
     100                 : }
     101                 : 
     102                 : /* string ConvertAndEscape (in string charset, in wstring text); */
     103                 : NS_IMETHODIMP nsTextToSubURI::ConvertAndEscape(const char * charset, const PRUnichar * text, char * *_retval NS_OUTPARAM)
     104                 : {
     105                 :     return NS_ERROR_NOT_IMPLEMENTED;
     106                 : }
     107                 : 
     108                 : /* wstring UnEscapeAndConvert (in string charset, in string text); */
     109                 : NS_IMETHODIMP nsTextToSubURI::UnEscapeAndConvert(const char * charset, const char * text, PRUnichar * *_retval NS_OUTPARAM)
     110                 : {
     111                 :     return NS_ERROR_NOT_IMPLEMENTED;
     112                 : }
     113                 : 
     114                 : /* AString unEscapeURIForUI (in ACString aCharset, in AUTF8String aURIFragment); */
     115                 : NS_IMETHODIMP nsTextToSubURI::UnEscapeURIForUI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM)
     116                 : {
     117                 :     return NS_ERROR_NOT_IMPLEMENTED;
     118                 : }
     119                 : 
     120                 : /* AString unEscapeNonAsciiURI (in ACString aCharset, in AUTF8String aURIFragment); */
     121                 : NS_IMETHODIMP nsTextToSubURI::UnEscapeNonAsciiURI(const nsACString & aCharset, const nsACString & aURIFragment, nsAString & _retval NS_OUTPARAM)
     122                 : {
     123                 :     return NS_ERROR_NOT_IMPLEMENTED;
     124                 : }
     125                 : 
     126                 : /* End of implementation class template. */
     127                 : #endif
     128                 : 
     129                 : 
     130                 : #endif /* __gen_nsITextToSubURI_h__ */

Generated by: LCOV version 1.7