LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsIBufferedStreams.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/nsIBufferedStreams.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIBufferedStreams_h__
       6             : #define __gen_nsIBufferedStreams_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIInputStream_h__
      10             : #include "nsIInputStream.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIOutputStream_h__
      14             : #include "nsIOutputStream.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             : 
      22             : /* starting interface:    nsIBufferedInputStream */
      23             : #define NS_IBUFFEREDINPUTSTREAM_IID_STR "616f5b48-da09-11d3-8cda-0060b0fc14a3"
      24             : 
      25             : #define NS_IBUFFEREDINPUTSTREAM_IID \
      26             :   {0x616f5b48, 0xda09, 0x11d3, \
      27             :     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
      28             : 
      29         177 : class NS_NO_VTABLE nsIBufferedInputStream : public nsIInputStream {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBUFFEREDINPUTSTREAM_IID)
      33             : 
      34             :   /* void init (in nsIInputStream fillFromStream, in unsigned long bufferSize); */
      35             :   NS_IMETHOD Init(nsIInputStream *fillFromStream, uint32_t bufferSize) = 0;
      36             : 
      37             :   /* readonly attribute nsIInputStream data; */
      38             :   NS_IMETHOD GetData(nsIInputStream * *aData) = 0;
      39             : 
      40             : };
      41             : 
      42             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBufferedInputStream, NS_IBUFFEREDINPUTSTREAM_IID)
      43             : 
      44             : /* Use this macro when declaring classes that implement this interface. */
      45             : #define NS_DECL_NSIBUFFEREDINPUTSTREAM \
      46             :   NS_IMETHOD Init(nsIInputStream *fillFromStream, uint32_t bufferSize) override; \
      47             :   NS_IMETHOD GetData(nsIInputStream * *aData) override; 
      48             : 
      49             : /* Use this macro when declaring the members of this interface when the
      50             :    class doesn't implement the interface. This is useful for forwarding. */
      51             : #define NS_DECL_NON_VIRTUAL_NSIBUFFEREDINPUTSTREAM \
      52             :   nsresult Init(nsIInputStream *fillFromStream, uint32_t bufferSize); \
      53             :   nsresult GetData(nsIInputStream * *aData); 
      54             : 
      55             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      56             : #define NS_FORWARD_NSIBUFFEREDINPUTSTREAM(_to) \
      57             :   NS_IMETHOD Init(nsIInputStream *fillFromStream, uint32_t bufferSize) override { return _to Init(fillFromStream, bufferSize); } \
      58             :   NS_IMETHOD GetData(nsIInputStream * *aData) override { return _to GetData(aData); } 
      59             : 
      60             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      61             : #define NS_FORWARD_SAFE_NSIBUFFEREDINPUTSTREAM(_to) \
      62             :   NS_IMETHOD Init(nsIInputStream *fillFromStream, uint32_t bufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(fillFromStream, bufferSize); } \
      63             :   NS_IMETHOD GetData(nsIInputStream * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } 
      64             : 
      65             : #if 0
      66             : /* Use the code below as a template for the implementation class for this interface. */
      67             : 
      68             : /* Header file */
      69             : class nsBufferedInputStream : public nsIBufferedInputStream
      70             : {
      71             : public:
      72             :   NS_DECL_ISUPPORTS
      73             :   NS_DECL_NSIBUFFEREDINPUTSTREAM
      74             : 
      75             :   nsBufferedInputStream();
      76             : 
      77             : private:
      78             :   ~nsBufferedInputStream();
      79             : 
      80             : protected:
      81             :   /* additional members */
      82             : };
      83             : 
      84             : /* Implementation file */
      85             : NS_IMPL_ISUPPORTS(nsBufferedInputStream, nsIBufferedInputStream)
      86             : 
      87             : nsBufferedInputStream::nsBufferedInputStream()
      88             : {
      89             :   /* member initializers and constructor code */
      90             : }
      91             : 
      92             : nsBufferedInputStream::~nsBufferedInputStream()
      93             : {
      94             :   /* destructor code */
      95             : }
      96             : 
      97             : /* void init (in nsIInputStream fillFromStream, in unsigned long bufferSize); */
      98             : NS_IMETHODIMP nsBufferedInputStream::Init(nsIInputStream *fillFromStream, uint32_t bufferSize)
      99             : {
     100             :     return NS_ERROR_NOT_IMPLEMENTED;
     101             : }
     102             : 
     103             : /* readonly attribute nsIInputStream data; */
     104             : NS_IMETHODIMP nsBufferedInputStream::GetData(nsIInputStream * *aData)
     105             : {
     106             :     return NS_ERROR_NOT_IMPLEMENTED;
     107             : }
     108             : 
     109             : /* End of implementation class template. */
     110             : #endif
     111             : 
     112             : 
     113             : /* starting interface:    nsIBufferedOutputStream */
     114             : #define NS_IBUFFEREDOUTPUTSTREAM_IID_STR "6476378a-da09-11d3-8cda-0060b0fc14a3"
     115             : 
     116             : #define NS_IBUFFEREDOUTPUTSTREAM_IID \
     117             :   {0x6476378a, 0xda09, 0x11d3, \
     118             :     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
     119             : 
     120          12 : class NS_NO_VTABLE nsIBufferedOutputStream : public nsIOutputStream {
     121             :  public:
     122             : 
     123             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBUFFEREDOUTPUTSTREAM_IID)
     124             : 
     125             :   /* void init (in nsIOutputStream sinkToStream, in unsigned long bufferSize); */
     126             :   NS_IMETHOD Init(nsIOutputStream *sinkToStream, uint32_t bufferSize) = 0;
     127             : 
     128             :   /* readonly attribute nsIOutputStream data; */
     129             :   NS_IMETHOD GetData(nsIOutputStream * *aData) = 0;
     130             : 
     131             : };
     132             : 
     133             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBufferedOutputStream, NS_IBUFFEREDOUTPUTSTREAM_IID)
     134             : 
     135             : /* Use this macro when declaring classes that implement this interface. */
     136             : #define NS_DECL_NSIBUFFEREDOUTPUTSTREAM \
     137             :   NS_IMETHOD Init(nsIOutputStream *sinkToStream, uint32_t bufferSize) override; \
     138             :   NS_IMETHOD GetData(nsIOutputStream * *aData) override; 
     139             : 
     140             : /* Use this macro when declaring the members of this interface when the
     141             :    class doesn't implement the interface. This is useful for forwarding. */
     142             : #define NS_DECL_NON_VIRTUAL_NSIBUFFEREDOUTPUTSTREAM \
     143             :   nsresult Init(nsIOutputStream *sinkToStream, uint32_t bufferSize); \
     144             :   nsresult GetData(nsIOutputStream * *aData); 
     145             : 
     146             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     147             : #define NS_FORWARD_NSIBUFFEREDOUTPUTSTREAM(_to) \
     148             :   NS_IMETHOD Init(nsIOutputStream *sinkToStream, uint32_t bufferSize) override { return _to Init(sinkToStream, bufferSize); } \
     149             :   NS_IMETHOD GetData(nsIOutputStream * *aData) override { return _to GetData(aData); } 
     150             : 
     151             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     152             : #define NS_FORWARD_SAFE_NSIBUFFEREDOUTPUTSTREAM(_to) \
     153             :   NS_IMETHOD Init(nsIOutputStream *sinkToStream, uint32_t bufferSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(sinkToStream, bufferSize); } \
     154             :   NS_IMETHOD GetData(nsIOutputStream * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } 
     155             : 
     156             : #if 0
     157             : /* Use the code below as a template for the implementation class for this interface. */
     158             : 
     159             : /* Header file */
     160             : class nsBufferedOutputStream : public nsIBufferedOutputStream
     161             : {
     162             : public:
     163             :   NS_DECL_ISUPPORTS
     164             :   NS_DECL_NSIBUFFEREDOUTPUTSTREAM
     165             : 
     166             :   nsBufferedOutputStream();
     167             : 
     168             : private:
     169             :   ~nsBufferedOutputStream();
     170             : 
     171             : protected:
     172             :   /* additional members */
     173             : };
     174             : 
     175             : /* Implementation file */
     176             : NS_IMPL_ISUPPORTS(nsBufferedOutputStream, nsIBufferedOutputStream)
     177             : 
     178             : nsBufferedOutputStream::nsBufferedOutputStream()
     179             : {
     180             :   /* member initializers and constructor code */
     181             : }
     182             : 
     183             : nsBufferedOutputStream::~nsBufferedOutputStream()
     184             : {
     185             :   /* destructor code */
     186             : }
     187             : 
     188             : /* void init (in nsIOutputStream sinkToStream, in unsigned long bufferSize); */
     189             : NS_IMETHODIMP nsBufferedOutputStream::Init(nsIOutputStream *sinkToStream, uint32_t bufferSize)
     190             : {
     191             :     return NS_ERROR_NOT_IMPLEMENTED;
     192             : }
     193             : 
     194             : /* readonly attribute nsIOutputStream data; */
     195             : NS_IMETHODIMP nsBufferedOutputStream::GetData(nsIOutputStream * *aData)
     196             : {
     197             :     return NS_ERROR_NOT_IMPLEMENTED;
     198             : }
     199             : 
     200             : /* End of implementation class template. */
     201             : #endif
     202             : 
     203             : 
     204             : #endif /* __gen_nsIBufferedStreams_h__ */

Generated by: LCOV version 1.13