Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIUploadChannel.idl
3 : */
4 :
5 : #ifndef __gen_nsIUploadChannel_h__
6 : #define __gen_nsIUploadChannel_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: nsIUploadChannel */
21 : #define NS_IUPLOADCHANNEL_IID_STR "5cfe15bd-5adb-4a7f-9e55-4f5a67d15794"
22 :
23 : #define NS_IUPLOADCHANNEL_IID \
24 : {0x5cfe15bd, 0x5adb, 0x4a7f, \
25 : { 0x9e, 0x55, 0x4f, 0x5a, 0x67, 0xd1, 0x57, 0x94 }}
26 :
27 1181 : class NS_NO_VTABLE nsIUploadChannel : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IUPLOADCHANNEL_IID)
31 :
32 : /* void setUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength); */
33 : NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength) = 0;
34 :
35 : /* readonly attribute nsIInputStream uploadStream; */
36 : NS_IMETHOD GetUploadStream(nsIInputStream * *aUploadStream) = 0;
37 :
38 : };
39 :
40 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIUploadChannel, NS_IUPLOADCHANNEL_IID)
41 :
42 : /* Use this macro when declaring classes that implement this interface. */
43 : #define NS_DECL_NSIUPLOADCHANNEL \
44 : NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength) override; \
45 : NS_IMETHOD GetUploadStream(nsIInputStream * *aUploadStream) override;
46 :
47 : /* Use this macro when declaring the members of this interface when the
48 : class doesn't implement the interface. This is useful for forwarding. */
49 : #define NS_DECL_NON_VIRTUAL_NSIUPLOADCHANNEL \
50 : nsresult SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength); \
51 : nsresult GetUploadStream(nsIInputStream * *aUploadStream);
52 :
53 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
54 : #define NS_FORWARD_NSIUPLOADCHANNEL(_to) \
55 : NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength) override { return _to SetUploadStream(aStream, aContentType, aContentLength); } \
56 : NS_IMETHOD GetUploadStream(nsIInputStream * *aUploadStream) override { return _to GetUploadStream(aUploadStream); }
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_NSIUPLOADCHANNEL(_to) \
60 : NS_IMETHOD SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetUploadStream(aStream, aContentType, aContentLength); } \
61 : NS_IMETHOD GetUploadStream(nsIInputStream * *aUploadStream) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUploadStream(aUploadStream); }
62 :
63 : #if 0
64 : /* Use the code below as a template for the implementation class for this interface. */
65 :
66 : /* Header file */
67 : class nsUploadChannel : public nsIUploadChannel
68 : {
69 : public:
70 : NS_DECL_ISUPPORTS
71 : NS_DECL_NSIUPLOADCHANNEL
72 :
73 : nsUploadChannel();
74 :
75 : private:
76 : ~nsUploadChannel();
77 :
78 : protected:
79 : /* additional members */
80 : };
81 :
82 : /* Implementation file */
83 : NS_IMPL_ISUPPORTS(nsUploadChannel, nsIUploadChannel)
84 :
85 : nsUploadChannel::nsUploadChannel()
86 : {
87 : /* member initializers and constructor code */
88 : }
89 :
90 : nsUploadChannel::~nsUploadChannel()
91 : {
92 : /* destructor code */
93 : }
94 :
95 : /* void setUploadStream (in nsIInputStream aStream, in ACString aContentType, in long long aContentLength); */
96 : NS_IMETHODIMP nsUploadChannel::SetUploadStream(nsIInputStream *aStream, const nsACString & aContentType, int64_t aContentLength)
97 : {
98 : return NS_ERROR_NOT_IMPLEMENTED;
99 : }
100 :
101 : /* readonly attribute nsIInputStream uploadStream; */
102 : NS_IMETHODIMP nsUploadChannel::GetUploadStream(nsIInputStream * *aUploadStream)
103 : {
104 : return NS_ERROR_NOT_IMPLEMENTED;
105 : }
106 :
107 : /* End of implementation class template. */
108 : #endif
109 :
110 :
111 : #endif /* __gen_nsIUploadChannel_h__ */
|