1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIInputStreamPump.idl
3 : */
4 :
5 : #ifndef __gen_nsIInputStreamPump_h__
6 : #define __gen_nsIInputStreamPump_h__
7 :
8 :
9 : #ifndef __gen_nsIRequest_h__
10 : #include "nsIRequest.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 : class nsIStreamListener; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIInputStreamPump */
23 : #define NS_IINPUTSTREAMPUMP_IID_STR "400f5468-97e7-4d2b-9c65-a82aecc7ae82"
24 :
25 : #define NS_IINPUTSTREAMPUMP_IID \
26 : {0x400f5468, 0x97e7, 0x4d2b, \
27 : { 0x9c, 0x65, 0xa8, 0x2a, 0xec, 0xc7, 0xae, 0x82 }}
28 :
29 3499 : class NS_NO_VTABLE NS_SCRIPTABLE nsIInputStreamPump : public nsIRequest {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINPUTSTREAMPUMP_IID)
33 :
34 : /* void init (in nsIInputStream aStream, in long long aStreamPos, in long long aStreamLen, in unsigned long aSegmentSize, in unsigned long aSegmentCount, in boolean aCloseWhenDone); */
35 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, bool aCloseWhenDone) = 0;
36 :
37 : /* void asyncRead (in nsIStreamListener aListener, in nsISupports aListenerContext); */
38 : NS_SCRIPTABLE NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIInputStreamPump, NS_IINPUTSTREAMPUMP_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIINPUTSTREAMPUMP \
46 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, bool aCloseWhenDone); \
47 : NS_SCRIPTABLE NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext);
48 :
49 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
50 : #define NS_FORWARD_NSIINPUTSTREAMPUMP(_to) \
51 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, bool aCloseWhenDone) { return _to Init(aStream, aStreamPos, aStreamLen, aSegmentSize, aSegmentCount, aCloseWhenDone); } \
52 : NS_SCRIPTABLE NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) { return _to AsyncRead(aListener, aListenerContext); }
53 :
54 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
55 : #define NS_FORWARD_SAFE_NSIINPUTSTREAMPUMP(_to) \
56 : NS_SCRIPTABLE NS_IMETHOD Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, bool aCloseWhenDone) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aStream, aStreamPos, aStreamLen, aSegmentSize, aSegmentCount, aCloseWhenDone); } \
57 : NS_SCRIPTABLE NS_IMETHOD AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->AsyncRead(aListener, aListenerContext); }
58 :
59 : #if 0
60 : /* Use the code below as a template for the implementation class for this interface. */
61 :
62 : /* Header file */
63 : class nsInputStreamPump : public nsIInputStreamPump
64 : {
65 : public:
66 : NS_DECL_ISUPPORTS
67 : NS_DECL_NSIINPUTSTREAMPUMP
68 :
69 : nsInputStreamPump();
70 :
71 : private:
72 : ~nsInputStreamPump();
73 :
74 : protected:
75 : /* additional members */
76 : };
77 :
78 : /* Implementation file */
79 : NS_IMPL_ISUPPORTS1(nsInputStreamPump, nsIInputStreamPump)
80 :
81 : nsInputStreamPump::nsInputStreamPump()
82 : {
83 : /* member initializers and constructor code */
84 : }
85 :
86 : nsInputStreamPump::~nsInputStreamPump()
87 : {
88 : /* destructor code */
89 : }
90 :
91 : /* void init (in nsIInputStream aStream, in long long aStreamPos, in long long aStreamLen, in unsigned long aSegmentSize, in unsigned long aSegmentCount, in boolean aCloseWhenDone); */
92 : NS_IMETHODIMP nsInputStreamPump::Init(nsIInputStream *aStream, PRInt64 aStreamPos, PRInt64 aStreamLen, PRUint32 aSegmentSize, PRUint32 aSegmentCount, bool aCloseWhenDone)
93 : {
94 : return NS_ERROR_NOT_IMPLEMENTED;
95 : }
96 :
97 : /* void asyncRead (in nsIStreamListener aListener, in nsISupports aListenerContext); */
98 : NS_IMETHODIMP nsInputStreamPump::AsyncRead(nsIStreamListener *aListener, nsISupports *aListenerContext)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* End of implementation class template. */
104 : #endif
105 :
106 :
107 : #endif /* __gen_nsIInputStreamPump_h__ */
|