1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/base/public/nsIUploadChannel2.idl
3 : */
4 :
5 : #ifndef __gen_nsIUploadChannel2_h__
6 : #define __gen_nsIUploadChannel2_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.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: nsIUploadChannel2 */
21 : #define NS_IUPLOADCHANNEL2_IID_STR "ad9d3f1c-a8de-4d0b-9714-1b922297ad65"
22 :
23 : #define NS_IUPLOADCHANNEL2_IID \
24 : {0xad9d3f1c, 0xa8de, 0x4d0b, \
25 : { 0x97, 0x14, 0x1b, 0x92, 0x22, 0x97, 0xad, 0x65 }}
26 :
27 3514 : class NS_NO_VTABLE NS_SCRIPTABLE nsIUploadChannel2 : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPLOADCHANNEL2_IID)
31 :
32 : /* void explicitSetUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength, in ACString aMethod, in boolean aStreamHasHeaders); */
33 : NS_SCRIPTABLE NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, PRInt64 aContentLength, const nsACString & aMethod, bool aStreamHasHeaders) = 0;
34 :
35 : /* readonly attribute boolean uploadStreamHasHeaders; */
36 : NS_SCRIPTABLE NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUploadChannel2, NS_IUPLOADCHANNEL2_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIUPLOADCHANNEL2 \
44 : NS_SCRIPTABLE NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, PRInt64 aContentLength, const nsACString & aMethod, bool aStreamHasHeaders); \
45 : NS_SCRIPTABLE NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders);
46 :
47 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
48 : #define NS_FORWARD_NSIUPLOADCHANNEL2(_to) \
49 : NS_SCRIPTABLE NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, PRInt64 aContentLength, const nsACString & aMethod, bool aStreamHasHeaders) { return _to ExplicitSetUploadStream(aStream, aContentType, aContentLength, aMethod, aStreamHasHeaders); } \
50 : NS_SCRIPTABLE NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) { return _to GetUploadStreamHasHeaders(aUploadStreamHasHeaders); }
51 :
52 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
53 : #define NS_FORWARD_SAFE_NSIUPLOADCHANNEL2(_to) \
54 : NS_SCRIPTABLE NS_IMETHOD ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, PRInt64 aContentLength, const nsACString & aMethod, bool aStreamHasHeaders) { return !_to ? NS_ERROR_NULL_POINTER : _to->ExplicitSetUploadStream(aStream, aContentType, aContentLength, aMethod, aStreamHasHeaders); } \
55 : NS_SCRIPTABLE NS_IMETHOD GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUploadStreamHasHeaders(aUploadStreamHasHeaders); }
56 :
57 : #if 0
58 : /* Use the code below as a template for the implementation class for this interface. */
59 :
60 : /* Header file */
61 : class nsUploadChannel2 : public nsIUploadChannel2
62 : {
63 : public:
64 : NS_DECL_ISUPPORTS
65 : NS_DECL_NSIUPLOADCHANNEL2
66 :
67 : nsUploadChannel2();
68 :
69 : private:
70 : ~nsUploadChannel2();
71 :
72 : protected:
73 : /* additional members */
74 : };
75 :
76 : /* Implementation file */
77 : NS_IMPL_ISUPPORTS1(nsUploadChannel2, nsIUploadChannel2)
78 :
79 : nsUploadChannel2::nsUploadChannel2()
80 : {
81 : /* member initializers and constructor code */
82 : }
83 :
84 : nsUploadChannel2::~nsUploadChannel2()
85 : {
86 : /* destructor code */
87 : }
88 :
89 : /* void explicitSetUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength, in ACString aMethod, in boolean aStreamHasHeaders); */
90 : NS_IMETHODIMP nsUploadChannel2::ExplicitSetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, PRInt64 aContentLength, const nsACString & aMethod, bool aStreamHasHeaders)
91 : {
92 : return NS_ERROR_NOT_IMPLEMENTED;
93 : }
94 :
95 : /* readonly attribute boolean uploadStreamHasHeaders; */
96 : NS_IMETHODIMP nsUploadChannel2::GetUploadStreamHasHeaders(bool *aUploadStreamHasHeaders)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* End of implementation class template. */
102 : #endif
103 :
104 :
105 : #endif /* __gen_nsIUploadChannel2_h__ */
|