LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIBufferedStreams.h (source / functions) Found Hit Coverage
Test: app.info Lines: 2 2 100.0 %
Date: 2012-06-02 Functions: 2 2 100.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/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            2775 : class NS_NO_VTABLE NS_SCRIPTABLE 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_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *fillFromStream, PRUint32 bufferSize) = 0;
      36                 : 
      37                 : };
      38                 : 
      39                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBufferedInputStream, NS_IBUFFEREDINPUTSTREAM_IID)
      40                 : 
      41                 : /* Use this macro when declaring classes that implement this interface. */
      42                 : #define NS_DECL_NSIBUFFEREDINPUTSTREAM \
      43                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *fillFromStream, PRUint32 bufferSize); 
      44                 : 
      45                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      46                 : #define NS_FORWARD_NSIBUFFEREDINPUTSTREAM(_to) \
      47                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *fillFromStream, PRUint32 bufferSize) { return _to Init(fillFromStream, bufferSize); } 
      48                 : 
      49                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      50                 : #define NS_FORWARD_SAFE_NSIBUFFEREDINPUTSTREAM(_to) \
      51                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *fillFromStream, PRUint32 bufferSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(fillFromStream, bufferSize); } 
      52                 : 
      53                 : #if 0
      54                 : /* Use the code below as a template for the implementation class for this interface. */
      55                 : 
      56                 : /* Header file */
      57                 : class nsBufferedInputStream : public nsIBufferedInputStream
      58                 : {
      59                 : public:
      60                 :   NS_DECL_ISUPPORTS
      61                 :   NS_DECL_NSIBUFFEREDINPUTSTREAM
      62                 : 
      63                 :   nsBufferedInputStream();
      64                 : 
      65                 : private:
      66                 :   ~nsBufferedInputStream();
      67                 : 
      68                 : protected:
      69                 :   /* additional members */
      70                 : };
      71                 : 
      72                 : /* Implementation file */
      73                 : NS_IMPL_ISUPPORTS1(nsBufferedInputStream, nsIBufferedInputStream)
      74                 : 
      75                 : nsBufferedInputStream::nsBufferedInputStream()
      76                 : {
      77                 :   /* member initializers and constructor code */
      78                 : }
      79                 : 
      80                 : nsBufferedInputStream::~nsBufferedInputStream()
      81                 : {
      82                 :   /* destructor code */
      83                 : }
      84                 : 
      85                 : /* void init (in nsIInputStream fillFromStream, in unsigned long bufferSize); */
      86                 : NS_IMETHODIMP nsBufferedInputStream::Init(nsIInputStream *fillFromStream, PRUint32 bufferSize)
      87                 : {
      88                 :     return NS_ERROR_NOT_IMPLEMENTED;
      89                 : }
      90                 : 
      91                 : /* End of implementation class template. */
      92                 : #endif
      93                 : 
      94                 : 
      95                 : /* starting interface:    nsIBufferedOutputStream */
      96                 : #define NS_IBUFFEREDOUTPUTSTREAM_IID_STR "6476378a-da09-11d3-8cda-0060b0fc14a3"
      97                 : 
      98                 : #define NS_IBUFFEREDOUTPUTSTREAM_IID \
      99                 :   {0x6476378a, 0xda09, 0x11d3, \
     100                 :     { 0x8c, 0xda, 0x00, 0x60, 0xb0, 0xfc, 0x14, 0xa3 }}
     101                 : 
     102            1144 : class NS_NO_VTABLE NS_SCRIPTABLE nsIBufferedOutputStream : public nsIOutputStream {
     103                 :  public: 
     104                 : 
     105                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBUFFEREDOUTPUTSTREAM_IID)
     106                 : 
     107                 :   /* void init (in nsIOutputStream sinkToStream, in unsigned long bufferSize); */
     108                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize) = 0;
     109                 : 
     110                 : };
     111                 : 
     112                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBufferedOutputStream, NS_IBUFFEREDOUTPUTSTREAM_IID)
     113                 : 
     114                 : /* Use this macro when declaring classes that implement this interface. */
     115                 : #define NS_DECL_NSIBUFFEREDOUTPUTSTREAM \
     116                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize); 
     117                 : 
     118                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     119                 : #define NS_FORWARD_NSIBUFFEREDOUTPUTSTREAM(_to) \
     120                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize) { return _to Init(sinkToStream, bufferSize); } 
     121                 : 
     122                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     123                 : #define NS_FORWARD_SAFE_NSIBUFFEREDOUTPUTSTREAM(_to) \
     124                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(sinkToStream, bufferSize); } 
     125                 : 
     126                 : #if 0
     127                 : /* Use the code below as a template for the implementation class for this interface. */
     128                 : 
     129                 : /* Header file */
     130                 : class nsBufferedOutputStream : public nsIBufferedOutputStream
     131                 : {
     132                 : public:
     133                 :   NS_DECL_ISUPPORTS
     134                 :   NS_DECL_NSIBUFFEREDOUTPUTSTREAM
     135                 : 
     136                 :   nsBufferedOutputStream();
     137                 : 
     138                 : private:
     139                 :   ~nsBufferedOutputStream();
     140                 : 
     141                 : protected:
     142                 :   /* additional members */
     143                 : };
     144                 : 
     145                 : /* Implementation file */
     146                 : NS_IMPL_ISUPPORTS1(nsBufferedOutputStream, nsIBufferedOutputStream)
     147                 : 
     148                 : nsBufferedOutputStream::nsBufferedOutputStream()
     149                 : {
     150                 :   /* member initializers and constructor code */
     151                 : }
     152                 : 
     153                 : nsBufferedOutputStream::~nsBufferedOutputStream()
     154                 : {
     155                 :   /* destructor code */
     156                 : }
     157                 : 
     158                 : /* void init (in nsIOutputStream sinkToStream, in unsigned long bufferSize); */
     159                 : NS_IMETHODIMP nsBufferedOutputStream::Init(nsIOutputStream *sinkToStream, PRUint32 bufferSize)
     160                 : {
     161                 :     return NS_ERROR_NOT_IMPLEMENTED;
     162                 : }
     163                 : 
     164                 : /* End of implementation class template. */
     165                 : #endif
     166                 : 
     167                 : 
     168                 : #endif /* __gen_nsIBufferedStreams_h__ */

Generated by: LCOV version 1.7