1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIInputStreamChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIInputStreamChannel_h__
6 : #define __gen_nsIInputStreamChannel_h__
7 :
8 :
9 : #ifndef __gen_nsIChannel_h__
10 : #include "nsIChannel.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 : class nsIInputStream; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIInputStreamChannel */
21 : #define NS_IINPUTSTREAMCHANNEL_IID_STR "274c4d7a-2447-4ceb-a6de-80db1b83f5d2"
22 :
23 : #define NS_IINPUTSTREAMCHANNEL_IID \
24 : {0x274c4d7a, 0x2447, 0x4ceb, \
25 : { 0xa6, 0xde, 0x80, 0xdb, 0x1b, 0x83, 0xf5, 0xd2 }}
26 :
27 3146 : class NS_NO_VTABLE NS_SCRIPTABLE nsIInputStreamChannel : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTSTREAMCHANNEL_IID)
31 :
32 : /* void setURI (in nsIURI aURI); */
33 : NS_SCRIPTABLE NS_IMETHOD SetURI(nsIURI *aURI) = 0;
34 :
35 : /* attribute nsIInputStream contentStream; */
36 : NS_SCRIPTABLE NS_IMETHOD GetContentStream(nsIInputStream * *aContentStream) = 0;
37 : NS_SCRIPTABLE NS_IMETHOD SetContentStream(nsIInputStream *aContentStream) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputStreamChannel, NS_IINPUTSTREAMCHANNEL_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIINPUTSTREAMCHANNEL \
45 : NS_SCRIPTABLE NS_IMETHOD SetURI(nsIURI *aURI); \
46 : NS_SCRIPTABLE NS_IMETHOD GetContentStream(nsIInputStream * *aContentStream); \
47 : NS_SCRIPTABLE NS_IMETHOD SetContentStream(nsIInputStream *aContentStream);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIINPUTSTREAMCHANNEL(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD SetURI(nsIURI *aURI) { return _to SetURI(aURI); } \
52 : NS_SCRIPTABLE NS_IMETHOD GetContentStream(nsIInputStream * *aContentStream) { return _to GetContentStream(aContentStream); } \
53 : NS_SCRIPTABLE NS_IMETHOD SetContentStream(nsIInputStream *aContentStream) { return _to SetContentStream(aContentStream); }
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
56 : #define NS_FORWARD_SAFE_NSIINPUTSTREAMCHANNEL(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD SetURI(nsIURI *aURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetURI(aURI); } \
58 : NS_SCRIPTABLE NS_IMETHOD GetContentStream(nsIInputStream * *aContentStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetContentStream(aContentStream); } \
59 : NS_SCRIPTABLE NS_IMETHOD SetContentStream(nsIInputStream *aContentStream) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetContentStream(aContentStream); }
60 :
61 : #if 0
62 : /* Use the code below as a template for the implementation class for this interface. */
63 :
64 : /* Header file */
65 : class nsInputStreamChannel : public nsIInputStreamChannel
66 : {
67 : public:
68 : NS_DECL_ISUPPORTS
69 : NS_DECL_NSIINPUTSTREAMCHANNEL
70 :
71 : nsInputStreamChannel();
72 :
73 : private:
74 : ~nsInputStreamChannel();
75 :
76 : protected:
77 : /* additional members */
78 : };
79 :
80 : /* Implementation file */
81 : NS_IMPL_ISUPPORTS1(nsInputStreamChannel, nsIInputStreamChannel)
82 :
83 : nsInputStreamChannel::nsInputStreamChannel()
84 : {
85 : /* member initializers and constructor code */
86 : }
87 :
88 : nsInputStreamChannel::~nsInputStreamChannel()
89 : {
90 : /* destructor code */
91 : }
92 :
93 : /* void setURI (in nsIURI aURI); */
94 : NS_IMETHODIMP nsInputStreamChannel::SetURI(nsIURI *aURI)
95 : {
96 : return NS_ERROR_NOT_IMPLEMENTED;
97 : }
98 :
99 : /* attribute nsIInputStream contentStream; */
100 : NS_IMETHODIMP nsInputStreamChannel::GetContentStream(nsIInputStream * *aContentStream)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 : NS_IMETHODIMP nsInputStreamChannel::SetContentStream(nsIInputStream *aContentStream)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : #endif /* __gen_nsIInputStreamChannel_h__ */
|