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

          Line data    Source code
       1             : /*
       2             :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM ../../../dist/idl/nsIMIMEInputStream.idl
       3             :  */
       4             : 
       5             : #ifndef __gen_nsIMIMEInputStream_h__
       6             : #define __gen_nsIMIMEInputStream_h__
       7             : 
       8             : 
       9             : #ifndef __gen_nsIHttpHeaderVisitor_h__
      10             : #include "nsIHttpHeaderVisitor.h"
      11             : #endif
      12             : 
      13             : #ifndef __gen_nsIInputStream_h__
      14             : #include "nsIInputStream.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:    nsIMIMEInputStream */
      23             : #define NS_IMIMEINPUTSTREAM_IID_STR "dcbce63c-1dd1-11b2-b94d-91f6d49a3161"
      24             : 
      25             : #define NS_IMIMEINPUTSTREAM_IID \
      26             :   {0xdcbce63c, 0x1dd1, 0x11b2, \
      27             :     { 0xb9, 0x4d, 0x91, 0xf6, 0xd4, 0x9a, 0x31, 0x61 }}
      28             : 
      29           0 : class NS_NO_VTABLE nsIMIMEInputStream : public nsIInputStream {
      30             :  public:
      31             : 
      32             :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMEINPUTSTREAM_IID)
      33             : 
      34             :   /* attribute boolean addContentLength; */
      35             :   NS_IMETHOD GetAddContentLength(bool *aAddContentLength) = 0;
      36             :   NS_IMETHOD SetAddContentLength(bool aAddContentLength) = 0;
      37             : 
      38             :   /* void addHeader (in string name, in string value); */
      39             :   NS_IMETHOD AddHeader(const char * name, const char * value) = 0;
      40             : 
      41             :   /* void visitHeaders (in nsIHttpHeaderVisitor visitor); */
      42             :   NS_IMETHOD VisitHeaders(nsIHttpHeaderVisitor *visitor) = 0;
      43             : 
      44             :   /* void setData (in nsIInputStream stream); */
      45             :   NS_IMETHOD SetData(nsIInputStream *stream) = 0;
      46             : 
      47             :   /* readonly attribute nsIInputStream data; */
      48             :   NS_IMETHOD GetData(nsIInputStream * *aData) = 0;
      49             : 
      50             : };
      51             : 
      52             :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIMIMEInputStream, NS_IMIMEINPUTSTREAM_IID)
      53             : 
      54             : /* Use this macro when declaring classes that implement this interface. */
      55             : #define NS_DECL_NSIMIMEINPUTSTREAM \
      56             :   NS_IMETHOD GetAddContentLength(bool *aAddContentLength) override; \
      57             :   NS_IMETHOD SetAddContentLength(bool aAddContentLength) override; \
      58             :   NS_IMETHOD AddHeader(const char * name, const char * value) override; \
      59             :   NS_IMETHOD VisitHeaders(nsIHttpHeaderVisitor *visitor) override; \
      60             :   NS_IMETHOD SetData(nsIInputStream *stream) override; \
      61             :   NS_IMETHOD GetData(nsIInputStream * *aData) override; 
      62             : 
      63             : /* Use this macro when declaring the members of this interface when the
      64             :    class doesn't implement the interface. This is useful for forwarding. */
      65             : #define NS_DECL_NON_VIRTUAL_NSIMIMEINPUTSTREAM \
      66             :   nsresult GetAddContentLength(bool *aAddContentLength); \
      67             :   nsresult SetAddContentLength(bool aAddContentLength); \
      68             :   nsresult AddHeader(const char * name, const char * value); \
      69             :   nsresult VisitHeaders(nsIHttpHeaderVisitor *visitor); \
      70             :   nsresult SetData(nsIInputStream *stream); \
      71             :   nsresult GetData(nsIInputStream * *aData); 
      72             : 
      73             : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      74             : #define NS_FORWARD_NSIMIMEINPUTSTREAM(_to) \
      75             :   NS_IMETHOD GetAddContentLength(bool *aAddContentLength) override { return _to GetAddContentLength(aAddContentLength); } \
      76             :   NS_IMETHOD SetAddContentLength(bool aAddContentLength) override { return _to SetAddContentLength(aAddContentLength); } \
      77             :   NS_IMETHOD AddHeader(const char * name, const char * value) override { return _to AddHeader(name, value); } \
      78             :   NS_IMETHOD VisitHeaders(nsIHttpHeaderVisitor *visitor) override { return _to VisitHeaders(visitor); } \
      79             :   NS_IMETHOD SetData(nsIInputStream *stream) override { return _to SetData(stream); } \
      80             :   NS_IMETHOD GetData(nsIInputStream * *aData) override { return _to GetData(aData); } 
      81             : 
      82             : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      83             : #define NS_FORWARD_SAFE_NSIMIMEINPUTSTREAM(_to) \
      84             :   NS_IMETHOD GetAddContentLength(bool *aAddContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddContentLength(aAddContentLength); } \
      85             :   NS_IMETHOD SetAddContentLength(bool aAddContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddContentLength(aAddContentLength); } \
      86             :   NS_IMETHOD AddHeader(const char * name, const char * value) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHeader(name, value); } \
      87             :   NS_IMETHOD VisitHeaders(nsIHttpHeaderVisitor *visitor) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitHeaders(visitor); } \
      88             :   NS_IMETHOD SetData(nsIInputStream *stream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(stream); } \
      89             :   NS_IMETHOD GetData(nsIInputStream * *aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); } 
      90             : 
      91             : #if 0
      92             : /* Use the code below as a template for the implementation class for this interface. */
      93             : 
      94             : /* Header file */
      95             : class nsMIMEInputStream : public nsIMIMEInputStream
      96             : {
      97             : public:
      98             :   NS_DECL_ISUPPORTS
      99             :   NS_DECL_NSIMIMEINPUTSTREAM
     100             : 
     101             :   nsMIMEInputStream();
     102             : 
     103             : private:
     104             :   ~nsMIMEInputStream();
     105             : 
     106             : protected:
     107             :   /* additional members */
     108             : };
     109             : 
     110             : /* Implementation file */
     111             : NS_IMPL_ISUPPORTS(nsMIMEInputStream, nsIMIMEInputStream)
     112             : 
     113             : nsMIMEInputStream::nsMIMEInputStream()
     114             : {
     115             :   /* member initializers and constructor code */
     116             : }
     117             : 
     118             : nsMIMEInputStream::~nsMIMEInputStream()
     119             : {
     120             :   /* destructor code */
     121             : }
     122             : 
     123             : /* attribute boolean addContentLength; */
     124             : NS_IMETHODIMP nsMIMEInputStream::GetAddContentLength(bool *aAddContentLength)
     125             : {
     126             :     return NS_ERROR_NOT_IMPLEMENTED;
     127             : }
     128             : NS_IMETHODIMP nsMIMEInputStream::SetAddContentLength(bool aAddContentLength)
     129             : {
     130             :     return NS_ERROR_NOT_IMPLEMENTED;
     131             : }
     132             : 
     133             : /* void addHeader (in string name, in string value); */
     134             : NS_IMETHODIMP nsMIMEInputStream::AddHeader(const char * name, const char * value)
     135             : {
     136             :     return NS_ERROR_NOT_IMPLEMENTED;
     137             : }
     138             : 
     139             : /* void visitHeaders (in nsIHttpHeaderVisitor visitor); */
     140             : NS_IMETHODIMP nsMIMEInputStream::VisitHeaders(nsIHttpHeaderVisitor *visitor)
     141             : {
     142             :     return NS_ERROR_NOT_IMPLEMENTED;
     143             : }
     144             : 
     145             : /* void setData (in nsIInputStream stream); */
     146             : NS_IMETHODIMP nsMIMEInputStream::SetData(nsIInputStream *stream)
     147             : {
     148             :     return NS_ERROR_NOT_IMPLEMENTED;
     149             : }
     150             : 
     151             : /* readonly attribute nsIInputStream data; */
     152             : NS_IMETHODIMP nsMIMEInputStream::GetData(nsIInputStream * *aData)
     153             : {
     154             :     return NS_ERROR_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157             : /* End of implementation class template. */
     158             : #endif
     159             : 
     160             : 
     161             : #endif /* __gen_nsIMIMEInputStream_h__ */

Generated by: LCOV version 1.13