1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/xpcom/io/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 387 : class NS_NO_VTABLE NS_SCRIPTABLE nsIMultiplexInputStream : public nsIInputStream {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IMULTIPLEXINPUTSTREAM_IID)
29 :
30 : /* readonly attribute unsigned long count; */
31 : NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) = 0;
32 :
33 : /* void appendStream (in nsIInputStream stream); */
34 : NS_SCRIPTABLE NS_IMETHOD AppendStream(nsIInputStream *stream) = 0;
35 :
36 : /* void insertStream (in nsIInputStream stream, in unsigned long index); */
37 : NS_SCRIPTABLE NS_IMETHOD InsertStream(nsIInputStream *stream, PRUint32 index) = 0;
38 :
39 : /* void removeStream (in unsigned long index); */
40 : NS_SCRIPTABLE NS_IMETHOD RemoveStream(PRUint32 index) = 0;
41 :
42 : /* nsIInputStream getStream (in unsigned long index); */
43 : NS_SCRIPTABLE NS_IMETHOD GetStream(PRUint32 index, nsIInputStream * *_retval NS_OUTPARAM) = 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_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount); \
52 : NS_SCRIPTABLE NS_IMETHOD AppendStream(nsIInputStream *stream); \
53 : NS_SCRIPTABLE NS_IMETHOD InsertStream(nsIInputStream *stream, PRUint32 index); \
54 : NS_SCRIPTABLE NS_IMETHOD RemoveStream(PRUint32 index); \
55 : NS_SCRIPTABLE NS_IMETHOD GetStream(PRUint32 index, nsIInputStream * *_retval NS_OUTPARAM);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSIMULTIPLEXINPUTSTREAM(_to) \
59 : NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) { return _to GetCount(aCount); } \
60 : NS_SCRIPTABLE NS_IMETHOD AppendStream(nsIInputStream *stream) { return _to AppendStream(stream); } \
61 : NS_SCRIPTABLE NS_IMETHOD InsertStream(nsIInputStream *stream, PRUint32 index) { return _to InsertStream(stream, index); } \
62 : NS_SCRIPTABLE NS_IMETHOD RemoveStream(PRUint32 index) { return _to RemoveStream(index); } \
63 : NS_SCRIPTABLE NS_IMETHOD GetStream(PRUint32 index, nsIInputStream * *_retval NS_OUTPARAM) { return _to GetStream(index, _retval); }
64 :
65 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
66 : #define NS_FORWARD_SAFE_NSIMULTIPLEXINPUTSTREAM(_to) \
67 : NS_SCRIPTABLE NS_IMETHOD GetCount(PRUint32 *aCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCount(aCount); } \
68 : NS_SCRIPTABLE NS_IMETHOD AppendStream(nsIInputStream *stream) { return !_to ? NS_ERROR_NULL_POINTER : _to->AppendStream(stream); } \
69 : NS_SCRIPTABLE NS_IMETHOD InsertStream(nsIInputStream *stream, PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->InsertStream(stream, index); } \
70 : NS_SCRIPTABLE NS_IMETHOD RemoveStream(PRUint32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveStream(index); } \
71 : NS_SCRIPTABLE NS_IMETHOD GetStream(PRUint32 index, nsIInputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStream(index, _retval); }
72 :
73 : #if 0
74 : /* Use the code below as a template for the implementation class for this interface. */
75 :
76 : /* Header file */
77 : class nsMultiplexInputStream : public nsIMultiplexInputStream
78 : {
79 : public:
80 : NS_DECL_ISUPPORTS
81 : NS_DECL_NSIMULTIPLEXINPUTSTREAM
82 :
83 : nsMultiplexInputStream();
84 :
85 : private:
86 : ~nsMultiplexInputStream();
87 :
88 : protected:
89 : /* additional members */
90 : };
91 :
92 : /* Implementation file */
93 : NS_IMPL_ISUPPORTS1(nsMultiplexInputStream, nsIMultiplexInputStream)
94 :
95 : nsMultiplexInputStream::nsMultiplexInputStream()
96 : {
97 : /* member initializers and constructor code */
98 : }
99 :
100 : nsMultiplexInputStream::~nsMultiplexInputStream()
101 : {
102 : /* destructor code */
103 : }
104 :
105 : /* readonly attribute unsigned long count; */
106 : NS_IMETHODIMP nsMultiplexInputStream::GetCount(PRUint32 *aCount)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* void appendStream (in nsIInputStream stream); */
112 : NS_IMETHODIMP nsMultiplexInputStream::AppendStream(nsIInputStream *stream)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* void insertStream (in nsIInputStream stream, in unsigned long index); */
118 : NS_IMETHODIMP nsMultiplexInputStream::InsertStream(nsIInputStream *stream, PRUint32 index)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* void removeStream (in unsigned long index); */
124 : NS_IMETHODIMP nsMultiplexInputStream::RemoveStream(PRUint32 index)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* nsIInputStream getStream (in unsigned long index); */
130 : NS_IMETHODIMP nsMultiplexInputStream::GetStream(PRUint32 index, nsIInputStream * *_retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* End of implementation class template. */
136 : #endif
137 :
138 :
139 : #endif /* __gen_nsIMultiplexInputStream_h__ */
|