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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMultiplexInputStream.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIMultiplexInputStream_h__
       6             : #define __gen_nsIMultiplexInputStream_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIInputStream_h__
      10             : #include "nsIInputStream.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             : 
      18             : /* starting interface:    nsIMultiplexInputStream */
      19             : #define NS_IMULTIPLEXINPUTSTREAM_IID_STR "a076fd12-1dd1-11b2-b19a-d53b5dffaade"
      20             : 
      21             : #define NS_IMULTIPLEXINPUTSTREAM_IID \
      22             :   {0xa076fd12, 0x1dd1, 0x11b2, \
      23             :     { 0xb1, 0x9a, 0xd5, 0x3b, 0x5d, 0xff, 0xaa, 0xde }}
      24             : 
      25           1 : class NS_NO_VTABLE nsIMultiplexInputStream : public nsIInputStream {
      26             :  public:
      27             : 
      28             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMULTIPLEXINPUTSTREAM_IID)
      29             : 
      30             :   /* readonly attribute unsigned long count; */
      31             :   NS_IMETHOD GetCount(uint32_t *aCount) = 0;
      32             : 
      33             :   /* void appendStream (in nsIInputStream stream); */
      34             :   NS_IMETHOD AppendStream(nsIInputStream *stream) = 0;
      35             : 
      36             :   /* void insertStream (in nsIInputStream stream, in unsigned long index); */
      37             :   NS_IMETHOD InsertStream(nsIInputStream *stream, uint32_t index) = 0;
      38             : 
      39             :   /* void removeStream (in unsigned long index); */
      40             :   NS_IMETHOD RemoveStream(uint32_t index) = 0;
      41             : 
      42             :   /* nsIInputStream getStream (in unsigned long index); */
      43             :   NS_IMETHOD GetStream(uint32_t index, nsIInputStream * *_retval) = 0;
      44             : 
      45             : };
      46             : 
      47             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMultiplexInputStream, NS_IMULTIPLEXINPUTSTREAM_IID)
      48             : 
      49             : /* Use this macro when declaring classes that implement this interface. */
      50             : #define NS_DECL_NSIMULTIPLEXINPUTSTREAM \
      51             :   NS_IMETHOD GetCount(uint32_t *aCount) override; \
      52             :   NS_IMETHOD AppendStream(nsIInputStream *stream) override; \
      53             :   NS_IMETHOD InsertStream(nsIInputStream *stream, uint32_t index) override; \
      54             :   NS_IMETHOD RemoveStream(uint32_t index) override; \
      55             :   NS_IMETHOD GetStream(uint32_t index, nsIInputStream * *_retval) override; 
      56             : 
      57             : /* Use this macro when declaring the members of this interface when the
      58             :    class doesn't implement the interface. This is useful for forwarding. */
      59             : #define NS_DECL_NON_VIRTUAL_NSIMULTIPLEXINPUTSTREAM \
      60             :   nsresult GetCount(uint32_t *aCount); \
      61             :   nsresult AppendStream(nsIInputStream *stream); \
      62             :   nsresult InsertStream(nsIInputStream *stream, uint32_t index); \
      63             :   nsresult RemoveStream(uint32_t index); \
      64             :   nsresult GetStream(uint32_t index, nsIInputStream * *_retval); 
      65             : 
      66             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      67             : #define NS_FORWARD_NSIMULTIPLEXINPUTSTREAM(_to) \
      68             :   NS_IMETHOD GetCount(uint32_t *aCount) override { return _to GetCount(aCount); } \
      69             :   NS_IMETHOD AppendStream(nsIInputStream *stream) override { return _to AppendStream(stream); } \
      70             :   NS_IMETHOD InsertStream(nsIInputStream *stream, uint32_t index) override { return _to InsertStream(stream, index); } \
      71             :   NS_IMETHOD RemoveStream(uint32_t index) override { return _to RemoveStream(index); } \
      72             :   NS_IMETHOD GetStream(uint32_t index, nsIInputStream * *_retval) override { return _to GetStream(index, _retval); } 
      73             : 
      74             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      75             : #define NS_FORWARD_SAFE_NSIMULTIPLEXINPUTSTREAM(_to) \
      76             :   NS_IMETHOD GetCount(uint32_t *aCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
      77             :   NS_IMETHOD AppendStream(nsIInputStream *stream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendStream(stream); } \
      78             :   NS_IMETHOD InsertStream(nsIInputStream *stream, uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertStream(stream, index); } \
      79             :   NS_IMETHOD RemoveStream(uint32_t index) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveStream(index); } \
      80             :   NS_IMETHOD GetStream(uint32_t index, nsIInputStream * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStream(index, _retval); } 
      81             : 
      82             : #if 0
      83             : /* Use the code below as a template for the implementation class for this interface. */
      84             : 
      85             : /* Header file */
      86             : class nsMultiplexInputStream : public nsIMultiplexInputStream
      87             : {
      88             : public:
      89             :   NS_DECL_ISUPPORTS
      90             :   NS_DECL_NSIMULTIPLEXINPUTSTREAM
      91             : 
      92             :   nsMultiplexInputStream();
      93             : 
      94             : private:
      95             :   ~nsMultiplexInputStream();
      96             : 
      97             : protected:
      98             :   /* additional members */
      99             : };
     100             : 
     101             : /* Implementation file */
     102             : NS_IMPL_ISUPPORTS(nsMultiplexInputStream, nsIMultiplexInputStream)
     103             : 
     104             : nsMultiplexInputStream::nsMultiplexInputStream()
     105             : {
     106             :   /* member initializers and constructor code */
     107             : }
     108             : 
     109             : nsMultiplexInputStream::~nsMultiplexInputStream()
     110             : {
     111             :   /* destructor code */
     112             : }
     113             : 
     114             : /* readonly attribute unsigned long count; */
     115             : NS_IMETHODIMP nsMultiplexInputStream::GetCount(uint32_t *aCount)
     116             : {
     117             :     return NS_ERROR_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120             : /* void appendStream (in nsIInputStream stream); */
     121             : NS_IMETHODIMP nsMultiplexInputStream::AppendStream(nsIInputStream *stream)
     122             : {
     123             :     return NS_ERROR_NOT_IMPLEMENTED;
     124             : }
     125             : 
     126             : /* void insertStream (in nsIInputStream stream, in unsigned long index); */
     127             : NS_IMETHODIMP nsMultiplexInputStream::InsertStream(nsIInputStream *stream, uint32_t index)
     128             : {
     129             :     return NS_ERROR_NOT_IMPLEMENTED;
     130             : }
     131             : 
     132             : /* void removeStream (in unsigned long index); */
     133             : NS_IMETHODIMP nsMultiplexInputStream::RemoveStream(uint32_t index)
     134             : {
     135             :     return NS_ERROR_NOT_IMPLEMENTED;
     136             : }
     137             : 
     138             : /* nsIInputStream getStream (in unsigned long index); */
     139             : NS_IMETHODIMP nsMultiplexInputStream::GetStream(uint32_t index, nsIInputStream * *_retval)
     140             : {
     141             :     return NS_ERROR_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144             : /* End of implementation class template. */
     145             : #endif
     146             : 
     147             : 
     148             : #endif /* __gen_nsIMultiplexInputStream_h__ */

Generated by: LCOV version 1.13