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

LCOV - code coverage report
| Current view: | directory - objdir/dist/include - nsIUnicharStreamLoader.h (source / functions) |  | Found | Hit | Coverage |
| Test: | app.info | Lines: | 2 | 1 | 50.0 %
| Date: | 2012-04-21 | Functions: | 2 | 1 | 50.0 %

           1                 : /*
           2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-aurora-lnx-codecoverage/build/netwerk/base/public/nsIUnicharStreamLoader.idl
           3                 :  */
           4                 :
           5                 : #ifndef __gen_nsIUnicharStreamLoader_h__
           6                 : #define __gen_nsIUnicharStreamLoader_h__
           7                 :
           8                 :
           9                 : #ifndef __gen_nsIStreamListener_h__
          10                 : #include "nsIStreamListener.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 nsIUnicharInputStream; /* forward declaration */
          18                 :
          19                 : class nsIUnicharStreamLoader; /* forward declaration */
          20                 :
          21                 : class nsIChannel; /* forward declaration */
          22                 :
          23                 :
          24                 : /* starting interface:    nsIUnicharStreamLoaderObserver */
          25                 : #define NS_IUNICHARSTREAMLOADEROBSERVER_IID_STR "c2982b39-2e48-429e-92b7-99348a1633c5"
          26                 :
          27                 : #define NS_IUNICHARSTREAMLOADEROBSERVER_IID \
          28                 :   {0xc2982b39, 0x2e48, 0x429e, \
          29                 :     { 0x92, 0xb7, 0x99, 0x34, 0x8a, 0x16, 0x33, 0xc5 }}
          30                 :
          31               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUnicharStreamLoaderObserver : public nsISupports {
          32                 :  public:
          33                 :
          34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUNICHARSTREAMLOADEROBSERVER_IID)
          35                 :
          36                 :   /* ACString onDetermineCharset (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in ACString aSegment); */
          37                 :   NS_SCRIPTABLE NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval NS_OUTPARAM) = 0;
          38                 :
          39                 :   /* void onStreamComplete (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in nsresult aStatus, in AString aBuffer); */
          40                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) = 0;
          41                 :
          42                 : };
          43                 :
          44                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUnicharStreamLoaderObserver, NS_IUNICHARSTREAMLOADEROBSERVER_IID)
          45                 :
          46                 : /* Use this macro when declaring classes that implement this interface. */
          47                 : #define NS_DECL_NSIUNICHARSTREAMLOADEROBSERVER \
          48                 :   NS_SCRIPTABLE NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval NS_OUTPARAM); \
          49                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer);
          50                 :
          51                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
          52                 : #define NS_FORWARD_NSIUNICHARSTREAMLOADEROBSERVER(_to) \
          53                 :   NS_SCRIPTABLE NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval NS_OUTPARAM) { return _to OnDetermineCharset(aLoader, aContext, aSegment, _retval); } \
          54                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) { return _to OnStreamComplete(aLoader, aContext, aStatus, aBuffer); }
          55                 :
          56                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
          57                 : #define NS_FORWARD_SAFE_NSIUNICHARSTREAMLOADEROBSERVER(_to) \
          58                 :   NS_SCRIPTABLE NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDetermineCharset(aLoader, aContext, aSegment, _retval); } \
          59                 :   NS_SCRIPTABLE NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStreamComplete(aLoader, aContext, aStatus, aBuffer); }
          60                 :
          61                 : #if 0
          62                 : /* Use the code below as a template for the implementation class for this interface. */
          63                 :
          64                 : /* Header file */
          65                 : class nsUnicharStreamLoaderObserver : public nsIUnicharStreamLoaderObserver
          66                 : {
          67                 : public:
          68                 :   NS_DECL_ISUPPORTS
          69                 :   NS_DECL_NSIUNICHARSTREAMLOADEROBSERVER
          70                 :
          71                 :   nsUnicharStreamLoaderObserver();
          72                 :
          73                 : private:
          74                 :   ~nsUnicharStreamLoaderObserver();
          75                 :
          76                 : protected:
          77                 :   /* additional members */
          78                 : };
          79                 :
          80                 : /* Implementation file */
          81                 : NS_IMPL_ISUPPORTS1(nsUnicharStreamLoaderObserver, nsIUnicharStreamLoaderObserver)
          82                 :
          83                 : nsUnicharStreamLoaderObserver::nsUnicharStreamLoaderObserver()
          84                 : {
          85                 :   /* member initializers and constructor code */
          86                 : }
          87                 :
          88                 : nsUnicharStreamLoaderObserver::~nsUnicharStreamLoaderObserver()
          89                 : {
          90                 :   /* destructor code */
          91                 : }
          92                 :
          93                 : /* ACString onDetermineCharset (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in ACString aSegment); */
          94                 : NS_IMETHODIMP nsUnicharStreamLoaderObserver::OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval NS_OUTPARAM)
          95                 : {
          96                 :     return NS_ERROR_NOT_IMPLEMENTED;
          97                 : }
          98                 :
          99                 : /* void onStreamComplete (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in nsresult aStatus, in AString aBuffer); */
         100                 : NS_IMETHODIMP nsUnicharStreamLoaderObserver::OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer)
         101                 : {
         102                 :     return NS_ERROR_NOT_IMPLEMENTED;
         103                 : }
         104                 :
         105                 : /* End of implementation class template. */
         106                 : #endif
         107                 :
         108                 :
         109                 : /* starting interface:    nsIUnicharStreamLoader */
         110                 : #define NS_IUNICHARSTREAMLOADER_IID_STR "afb62060-37c7-4713-8a84-4a0c1199ba5c"
         111                 :
         112                 : #define NS_IUNICHARSTREAMLOADER_IID \
         113                 :   {0xafb62060, 0x37c7, 0x4713, \
         114                 :     { 0x8a, 0x84, 0x4a, 0x0c, 0x11, 0x99, 0xba, 0x5c }}
         115                 :
         116               2 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUnicharStreamLoader : public nsIStreamListener {
         117                 :  public:
         118                 :
         119                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUNICHARSTREAMLOADER_IID)
         120                 :
         121                 :   /* void init (in nsIUnicharStreamLoaderObserver aObserver); */
         122                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) = 0;
         123                 :
         124                 :   /* readonly attribute nsIChannel channel; */
         125                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) = 0;
         126                 :
         127                 :   /* readonly attribute ACString charset; */
         128                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(nsACString & aCharset) = 0;
         129                 :
         130                 : };
         131                 :
         132                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUnicharStreamLoader, NS_IUNICHARSTREAMLOADER_IID)
         133                 :
         134                 : /* Use this macro when declaring classes that implement this interface. */
         135                 : #define NS_DECL_NSIUNICHARSTREAMLOADER \
         136                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver); \
         137                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel); \
         138                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(nsACString & aCharset);
         139                 :
         140                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
         141                 : #define NS_FORWARD_NSIUNICHARSTREAMLOADER(_to) \
         142                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) { return _to Init(aObserver); } \
         143                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) { return _to GetChannel(aChannel); } \
         144                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(nsACString & aCharset) { return _to GetCharset(aCharset); }
         145                 :
         146                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
         147                 : #define NS_FORWARD_SAFE_NSIUNICHARSTREAMLOADER(_to) \
         148                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aObserver); } \
         149                 :   NS_SCRIPTABLE NS_IMETHOD GetChannel(nsIChannel * *aChannel) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
         150                 :   NS_SCRIPTABLE NS_IMETHOD GetCharset(nsACString & aCharset) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); }
         151                 :
         152                 : #if 0
         153                 : /* Use the code below as a template for the implementation class for this interface. */
         154                 :
         155                 : /* Header file */
         156                 : class nsUnicharStreamLoader : public nsIUnicharStreamLoader
         157                 : {
         158                 : public:
         159                 :   NS_DECL_ISUPPORTS
         160                 :   NS_DECL_NSIUNICHARSTREAMLOADER
         161                 :
         162                 :   nsUnicharStreamLoader();
         163                 :
         164                 : private:
         165                 :   ~nsUnicharStreamLoader();
         166                 :
         167                 : protected:
         168                 :   /* additional members */
         169                 : };
         170                 :
         171                 : /* Implementation file */
         172                 : NS_IMPL_ISUPPORTS1(nsUnicharStreamLoader, nsIUnicharStreamLoader)
         173                 :
         174                 : nsUnicharStreamLoader::nsUnicharStreamLoader()
         175                 : {
         176                 :   /* member initializers and constructor code */
         177                 : }
         178                 :
         179                 : nsUnicharStreamLoader::~nsUnicharStreamLoader()
         180                 : {
         181                 :   /* destructor code */
         182                 : }
         183                 :
         184                 : /* void init (in nsIUnicharStreamLoaderObserver aObserver); */
         185                 : NS_IMETHODIMP nsUnicharStreamLoader::Init(nsIUnicharStreamLoaderObserver *aObserver)
         186                 : {
         187                 :     return NS_ERROR_NOT_IMPLEMENTED;
         188                 : }
         189                 :
         190                 : /* readonly attribute nsIChannel channel; */
         191                 : NS_IMETHODIMP nsUnicharStreamLoader::GetChannel(nsIChannel * *aChannel)
         192                 : {
         193                 :     return NS_ERROR_NOT_IMPLEMENTED;
         194                 : }
         195                 :
         196                 : /* readonly attribute ACString charset; */
         197                 : NS_IMETHODIMP nsUnicharStreamLoader::GetCharset(nsACString & aCharset)
         198                 : {
         199                 :     return NS_ERROR_NOT_IMPLEMENTED;
         200                 : }
         201                 :
         202                 : /* End of implementation class template. */
         203                 : #endif
         204                 :
         205                 :
         206                 : #endif /* __gen_nsIUnicharStreamLoader_h__ */

Generated by: LCOV version 1.7