LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIUnicharStreamLoader.h (source / functions) Hit Total Coverage
Test: output.info Lines: 2 2 100.0 %
Date: 2017-07-14 16:53:18 Functions: 2 2 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/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          58 : class NS_NO_VTABLE 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_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval) = 0;
      38             : 
      39             :   /* void onStreamComplete (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in nsresult aStatus, in AString aBuffer); */
      40             :   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_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval) override; \
      49             :   NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) override; 
      50             : 
      51             : /* Use this macro when declaring the members of this interface when the
      52             :    class doesn't implement the interface. This is useful for forwarding. */
      53             : #define NS_DECL_NON_VIRTUAL_NSIUNICHARSTREAMLOADEROBSERVER \
      54             :   nsresult OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval); \
      55             :   nsresult OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer); 
      56             : 
      57             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      58             : #define NS_FORWARD_NSIUNICHARSTREAMLOADEROBSERVER(_to) \
      59             :   NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval) override { return _to OnDetermineCharset(aLoader, aContext, aSegment, _retval); } \
      60             :   NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) override { return _to OnStreamComplete(aLoader, aContext, aStatus, aBuffer); } 
      61             : 
      62             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      63             : #define NS_FORWARD_SAFE_NSIUNICHARSTREAMLOADEROBSERVER(_to) \
      64             :   NS_IMETHOD OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnDetermineCharset(aLoader, aContext, aSegment, _retval); } \
      65             :   NS_IMETHOD OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->OnStreamComplete(aLoader, aContext, aStatus, aBuffer); } 
      66             : 
      67             : #if 0
      68             : /* Use the code below as a template for the implementation class for this interface. */
      69             : 
      70             : /* Header file */
      71             : class nsUnicharStreamLoaderObserver : public nsIUnicharStreamLoaderObserver
      72             : {
      73             : public:
      74             :   NS_DECL_ISUPPORTS
      75             :   NS_DECL_NSIUNICHARSTREAMLOADEROBSERVER
      76             : 
      77             :   nsUnicharStreamLoaderObserver();
      78             : 
      79             : private:
      80             :   ~nsUnicharStreamLoaderObserver();
      81             : 
      82             : protected:
      83             :   /* additional members */
      84             : };
      85             : 
      86             : /* Implementation file */
      87             : NS_IMPL_ISUPPORTS(nsUnicharStreamLoaderObserver, nsIUnicharStreamLoaderObserver)
      88             : 
      89             : nsUnicharStreamLoaderObserver::nsUnicharStreamLoaderObserver()
      90             : {
      91             :   /* member initializers and constructor code */
      92             : }
      93             : 
      94             : nsUnicharStreamLoaderObserver::~nsUnicharStreamLoaderObserver()
      95             : {
      96             :   /* destructor code */
      97             : }
      98             : 
      99             : /* ACString onDetermineCharset (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in ACString aSegment); */
     100             : NS_IMETHODIMP nsUnicharStreamLoaderObserver::OnDetermineCharset(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, const nsACString & aSegment, nsACString & _retval)
     101             : {
     102             :     return NS_ERROR_NOT_IMPLEMENTED;
     103             : }
     104             : 
     105             : /* void onStreamComplete (in nsIUnicharStreamLoader aLoader, in nsISupports aContext, in nsresult aStatus, in AString aBuffer); */
     106             : NS_IMETHODIMP nsUnicharStreamLoaderObserver::OnStreamComplete(nsIUnicharStreamLoader *aLoader, nsISupports *aContext, nsresult aStatus, const nsAString & aBuffer)
     107             : {
     108             :     return NS_ERROR_NOT_IMPLEMENTED;
     109             : }
     110             : 
     111             : /* End of implementation class template. */
     112             : #endif
     113             : 
     114             : 
     115             : /* starting interface:    nsIUnicharStreamLoader */
     116             : #define NS_IUNICHARSTREAMLOADER_IID_STR "afb62060-37c7-4713-8a84-4a0c1199ba5c"
     117             : 
     118             : #define NS_IUNICHARSTREAMLOADER_IID \
     119             :   {0xafb62060, 0x37c7, 0x4713, \
     120             :     { 0x8a, 0x84, 0x4a, 0x0c, 0x11, 0x99, 0xba, 0x5c }}
     121             : 
     122          53 : class NS_NO_VTABLE nsIUnicharStreamLoader : public nsIStreamListener {
     123             :  public:
     124             : 
     125             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUNICHARSTREAMLOADER_IID)
     126             : 
     127             :   /* void init (in nsIUnicharStreamLoaderObserver aObserver); */
     128             :   NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) = 0;
     129             : 
     130             :   /* readonly attribute nsIChannel channel; */
     131             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) = 0;
     132             : 
     133             :   /* readonly attribute ACString charset; */
     134             :   NS_IMETHOD GetCharset(nsACString & aCharset) = 0;
     135             : 
     136             :   /* readonly attribute ACString rawBuffer; */
     137             :   NS_IMETHOD GetRawBuffer(nsACString & aRawBuffer) = 0;
     138             : 
     139             : };
     140             : 
     141             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIUnicharStreamLoader, NS_IUNICHARSTREAMLOADER_IID)
     142             : 
     143             : /* Use this macro when declaring classes that implement this interface. */
     144             : #define NS_DECL_NSIUNICHARSTREAMLOADER \
     145             :   NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) override; \
     146             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override; \
     147             :   NS_IMETHOD GetCharset(nsACString & aCharset) override; \
     148             :   NS_IMETHOD GetRawBuffer(nsACString & aRawBuffer) override; 
     149             : 
     150             : /* Use this macro when declaring the members of this interface when the
     151             :    class doesn't implement the interface. This is useful for forwarding. */
     152             : #define NS_DECL_NON_VIRTUAL_NSIUNICHARSTREAMLOADER \
     153             :   nsresult Init(nsIUnicharStreamLoaderObserver *aObserver); \
     154             :   nsresult GetChannel(nsIChannel * *aChannel); \
     155             :   nsresult GetCharset(nsACString & aCharset); \
     156             :   nsresult GetRawBuffer(nsACString & aRawBuffer); 
     157             : 
     158             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     159             : #define NS_FORWARD_NSIUNICHARSTREAMLOADER(_to) \
     160             :   NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) override { return _to Init(aObserver); } \
     161             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return _to GetChannel(aChannel); } \
     162             :   NS_IMETHOD GetCharset(nsACString & aCharset) override { return _to GetCharset(aCharset); } \
     163             :   NS_IMETHOD GetRawBuffer(nsACString & aRawBuffer) override { return _to GetRawBuffer(aRawBuffer); } 
     164             : 
     165             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     166             : #define NS_FORWARD_SAFE_NSIUNICHARSTREAMLOADER(_to) \
     167             :   NS_IMETHOD Init(nsIUnicharStreamLoaderObserver *aObserver) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aObserver); } \
     168             :   NS_IMETHOD GetChannel(nsIChannel * *aChannel) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetChannel(aChannel); } \
     169             :   NS_IMETHOD GetCharset(nsACString & aCharset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCharset(aCharset); } \
     170             :   NS_IMETHOD GetRawBuffer(nsACString & aRawBuffer) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRawBuffer(aRawBuffer); } 
     171             : 
     172             : #if 0
     173             : /* Use the code below as a template for the implementation class for this interface. */
     174             : 
     175             : /* Header file */
     176             : class nsUnicharStreamLoader : public nsIUnicharStreamLoader
     177             : {
     178             : public:
     179             :   NS_DECL_ISUPPORTS
     180             :   NS_DECL_NSIUNICHARSTREAMLOADER
     181             : 
     182             :   nsUnicharStreamLoader();
     183             : 
     184             : private:
     185             :   ~nsUnicharStreamLoader();
     186             : 
     187             : protected:
     188             :   /* additional members */
     189             : };
     190             : 
     191             : /* Implementation file */
     192             : NS_IMPL_ISUPPORTS(nsUnicharStreamLoader, nsIUnicharStreamLoader)
     193             : 
     194             : nsUnicharStreamLoader::nsUnicharStreamLoader()
     195             : {
     196             :   /* member initializers and constructor code */
     197             : }
     198             : 
     199             : nsUnicharStreamLoader::~nsUnicharStreamLoader()
     200             : {
     201             :   /* destructor code */
     202             : }
     203             : 
     204             : /* void init (in nsIUnicharStreamLoaderObserver aObserver); */
     205             : NS_IMETHODIMP nsUnicharStreamLoader::Init(nsIUnicharStreamLoaderObserver *aObserver)
     206             : {
     207             :     return NS_ERROR_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210             : /* readonly attribute nsIChannel channel; */
     211             : NS_IMETHODIMP nsUnicharStreamLoader::GetChannel(nsIChannel * *aChannel)
     212             : {
     213             :     return NS_ERROR_NOT_IMPLEMENTED;
     214             : }
     215             : 
     216             : /* readonly attribute ACString charset; */
     217             : NS_IMETHODIMP nsUnicharStreamLoader::GetCharset(nsACString & aCharset)
     218             : {
     219             :     return NS_ERROR_NOT_IMPLEMENTED;
     220             : }
     221             : 
     222             : /* readonly attribute ACString rawBuffer; */
     223             : NS_IMETHODIMP nsUnicharStreamLoader::GetRawBuffer(nsACString & aRawBuffer)
     224             : {
     225             :     return NS_ERROR_NOT_IMPLEMENTED;
     226             : }
     227             : 
     228             : /* End of implementation class template. */
     229             : #endif
     230             : 
     231             : 
     232             : #endif /* __gen_nsIUnicharStreamLoader_h__ */

Generated by: LCOV version 1.13