1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIMIMEInputStream.idl
3 : */
4 :
5 : #ifndef __gen_nsIMIMEInputStream_h__
6 : #define __gen_nsIMIMEInputStream_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: nsIMIMEInputStream */
19 : #define NS_IMIMEINPUTSTREAM_IID_STR "dcbce63c-1dd1-11b2-b94d-91f6d49a3161"
20 :
21 : #define NS_IMIMEINPUTSTREAM_IID \
22 : {0xdcbce63c, 0x1dd1, 0x11b2, \
23 : { 0xb9, 0x4d, 0x91, 0xf6, 0xd4, 0x9a, 0x31, 0x61 }}
24 :
25 1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMIMEInputStream : public nsIInputStream {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMIMEINPUTSTREAM_IID)
29 :
30 : /* attribute boolean addContentLength; */
31 : NS_SCRIPTABLE NS_IMETHOD GetAddContentLength(bool *aAddContentLength) = 0;
32 : NS_SCRIPTABLE NS_IMETHOD SetAddContentLength(bool aAddContentLength) = 0;
33 :
34 : /* void addHeader (in string name, in string value); */
35 : NS_SCRIPTABLE NS_IMETHOD AddHeader(const char * name, const char * value) = 0;
36 :
37 : /* void setData (in nsIInputStream stream); */
38 : NS_SCRIPTABLE NS_IMETHOD SetData(nsIInputStream *stream) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIMIMEInputStream, NS_IMIMEINPUTSTREAM_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIMIMEINPUTSTREAM \
46 : NS_SCRIPTABLE NS_IMETHOD GetAddContentLength(bool *aAddContentLength); \
47 : NS_SCRIPTABLE NS_IMETHOD SetAddContentLength(bool aAddContentLength); \
48 : NS_SCRIPTABLE NS_IMETHOD AddHeader(const char * name, const char * value); \
49 : NS_SCRIPTABLE NS_IMETHOD SetData(nsIInputStream *stream);
50 :
51 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
52 : #define NS_FORWARD_NSIMIMEINPUTSTREAM(_to) \
53 : NS_SCRIPTABLE NS_IMETHOD GetAddContentLength(bool *aAddContentLength) { return _to GetAddContentLength(aAddContentLength); } \
54 : NS_SCRIPTABLE NS_IMETHOD SetAddContentLength(bool aAddContentLength) { return _to SetAddContentLength(aAddContentLength); } \
55 : NS_SCRIPTABLE NS_IMETHOD AddHeader(const char * name, const char * value) { return _to AddHeader(name, value); } \
56 : NS_SCRIPTABLE NS_IMETHOD SetData(nsIInputStream *stream) { return _to SetData(stream); }
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
59 : #define NS_FORWARD_SAFE_NSIMIMEINPUTSTREAM(_to) \
60 : NS_SCRIPTABLE NS_IMETHOD GetAddContentLength(bool *aAddContentLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetAddContentLength(aAddContentLength); } \
61 : NS_SCRIPTABLE NS_IMETHOD SetAddContentLength(bool aAddContentLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetAddContentLength(aAddContentLength); } \
62 : NS_SCRIPTABLE NS_IMETHOD AddHeader(const char * name, const char * value) { return !_to ? NS_ERROR_NULL_POINTER : _to->AddHeader(name, value); } \
63 : NS_SCRIPTABLE NS_IMETHOD SetData(nsIInputStream *stream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetData(stream); }
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 nsMIMEInputStream : public nsIMIMEInputStream
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSIMIMEINPUTSTREAM
74 :
75 : nsMIMEInputStream();
76 :
77 : private:
78 : ~nsMIMEInputStream();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS1(nsMIMEInputStream, nsIMIMEInputStream)
86 :
87 : nsMIMEInputStream::nsMIMEInputStream()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsMIMEInputStream::~nsMIMEInputStream()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* attribute boolean addContentLength; */
98 : NS_IMETHODIMP nsMIMEInputStream::GetAddContentLength(bool *aAddContentLength)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 : NS_IMETHODIMP nsMIMEInputStream::SetAddContentLength(bool aAddContentLength)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* void addHeader (in string name, in string value); */
108 : NS_IMETHODIMP nsMIMEInputStream::AddHeader(const char * name, const char * value)
109 : {
110 : return NS_ERROR_NOT_IMPLEMENTED;
111 : }
112 :
113 : /* void setData (in nsIInputStream stream); */
114 : NS_IMETHODIMP nsMIMEInputStream::SetData(nsIInputStream *stream)
115 : {
116 : return NS_ERROR_NOT_IMPLEMENTED;
117 : }
118 :
119 : /* End of implementation class template. */
120 : #endif
121 :
122 :
123 : #endif /* __gen_nsIMIMEInputStream_h__ */
|