Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIIncrementalDownload.idl
3 : */
4 :
5 : #ifndef __gen_nsIIncrementalDownload_h__
6 : #define __gen_nsIIncrementalDownload_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 nsIURI; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIRequestObserver; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIIncrementalDownload */
25 : #define NS_IINCREMENTALDOWNLOAD_IID_STR "6687823f-56c4-461d-93a1-7f6cb7dfbfba"
26 :
27 : #define NS_IINCREMENTALDOWNLOAD_IID \
28 : {0x6687823f, 0x56c4, 0x461d, \
29 : { 0x93, 0xa1, 0x7f, 0x6c, 0xb7, 0xdf, 0xbf, 0xba }}
30 :
31 0 : class NS_NO_VTABLE nsIIncrementalDownload : public nsIRequest {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IINCREMENTALDOWNLOAD_IID)
35 :
36 : /* void init (in nsIURI uri, in nsIFile destination, in long chunkSize, in long intervalInSeconds); */
37 : NS_IMETHOD Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds) = 0;
38 :
39 : /* readonly attribute nsIURI URI; */
40 : NS_IMETHOD GetURI(nsIURI * *aURI) = 0;
41 :
42 : /* readonly attribute nsIURI finalURI; */
43 : NS_IMETHOD GetFinalURI(nsIURI * *aFinalURI) = 0;
44 :
45 : /* readonly attribute nsIFile destination; */
46 : NS_IMETHOD GetDestination(nsIFile * *aDestination) = 0;
47 :
48 : /* readonly attribute long long totalSize; */
49 : NS_IMETHOD GetTotalSize(int64_t *aTotalSize) = 0;
50 :
51 : /* readonly attribute long long currentSize; */
52 : NS_IMETHOD GetCurrentSize(int64_t *aCurrentSize) = 0;
53 :
54 : /* void start (in nsIRequestObserver observer, in nsISupports ctxt); */
55 : NS_IMETHOD Start(nsIRequestObserver *observer, nsISupports *ctxt) = 0;
56 :
57 : };
58 :
59 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIIncrementalDownload, NS_IINCREMENTALDOWNLOAD_IID)
60 :
61 : /* Use this macro when declaring classes that implement this interface. */
62 : #define NS_DECL_NSIINCREMENTALDOWNLOAD \
63 : NS_IMETHOD Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds) override; \
64 : NS_IMETHOD GetURI(nsIURI * *aURI) override; \
65 : NS_IMETHOD GetFinalURI(nsIURI * *aFinalURI) override; \
66 : NS_IMETHOD GetDestination(nsIFile * *aDestination) override; \
67 : NS_IMETHOD GetTotalSize(int64_t *aTotalSize) override; \
68 : NS_IMETHOD GetCurrentSize(int64_t *aCurrentSize) override; \
69 : NS_IMETHOD Start(nsIRequestObserver *observer, nsISupports *ctxt) override;
70 :
71 : /* Use this macro when declaring the members of this interface when the
72 : class doesn't implement the interface. This is useful for forwarding. */
73 : #define NS_DECL_NON_VIRTUAL_NSIINCREMENTALDOWNLOAD \
74 : nsresult Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds); \
75 : nsresult GetURI(nsIURI * *aURI); \
76 : nsresult GetFinalURI(nsIURI * *aFinalURI); \
77 : nsresult GetDestination(nsIFile * *aDestination); \
78 : nsresult GetTotalSize(int64_t *aTotalSize); \
79 : nsresult GetCurrentSize(int64_t *aCurrentSize); \
80 : nsresult Start(nsIRequestObserver *observer, nsISupports *ctxt);
81 :
82 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
83 : #define NS_FORWARD_NSIINCREMENTALDOWNLOAD(_to) \
84 : NS_IMETHOD Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds) override { return _to Init(uri, destination, chunkSize, intervalInSeconds); } \
85 : NS_IMETHOD GetURI(nsIURI * *aURI) override { return _to GetURI(aURI); } \
86 : NS_IMETHOD GetFinalURI(nsIURI * *aFinalURI) override { return _to GetFinalURI(aFinalURI); } \
87 : NS_IMETHOD GetDestination(nsIFile * *aDestination) override { return _to GetDestination(aDestination); } \
88 : NS_IMETHOD GetTotalSize(int64_t *aTotalSize) override { return _to GetTotalSize(aTotalSize); } \
89 : NS_IMETHOD GetCurrentSize(int64_t *aCurrentSize) override { return _to GetCurrentSize(aCurrentSize); } \
90 : NS_IMETHOD Start(nsIRequestObserver *observer, nsISupports *ctxt) override { return _to Start(observer, ctxt); }
91 :
92 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
93 : #define NS_FORWARD_SAFE_NSIINCREMENTALDOWNLOAD(_to) \
94 : NS_IMETHOD Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(uri, destination, chunkSize, intervalInSeconds); } \
95 : NS_IMETHOD GetURI(nsIURI * *aURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetURI(aURI); } \
96 : NS_IMETHOD GetFinalURI(nsIURI * *aFinalURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFinalURI(aFinalURI); } \
97 : NS_IMETHOD GetDestination(nsIFile * *aDestination) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDestination(aDestination); } \
98 : NS_IMETHOD GetTotalSize(int64_t *aTotalSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSize(aTotalSize); } \
99 : NS_IMETHOD GetCurrentSize(int64_t *aCurrentSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSize(aCurrentSize); } \
100 : NS_IMETHOD Start(nsIRequestObserver *observer, nsISupports *ctxt) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Start(observer, ctxt); }
101 :
102 : #if 0
103 : /* Use the code below as a template for the implementation class for this interface. */
104 :
105 : /* Header file */
106 : class nsIncrementalDownload : public nsIIncrementalDownload
107 : {
108 : public:
109 : NS_DECL_ISUPPORTS
110 : NS_DECL_NSIINCREMENTALDOWNLOAD
111 :
112 : nsIncrementalDownload();
113 :
114 : private:
115 : ~nsIncrementalDownload();
116 :
117 : protected:
118 : /* additional members */
119 : };
120 :
121 : /* Implementation file */
122 : NS_IMPL_ISUPPORTS(nsIncrementalDownload, nsIIncrementalDownload)
123 :
124 : nsIncrementalDownload::nsIncrementalDownload()
125 : {
126 : /* member initializers and constructor code */
127 : }
128 :
129 : nsIncrementalDownload::~nsIncrementalDownload()
130 : {
131 : /* destructor code */
132 : }
133 :
134 : /* void init (in nsIURI uri, in nsIFile destination, in long chunkSize, in long intervalInSeconds); */
135 : NS_IMETHODIMP nsIncrementalDownload::Init(nsIURI *uri, nsIFile *destination, int32_t chunkSize, int32_t intervalInSeconds)
136 : {
137 : return NS_ERROR_NOT_IMPLEMENTED;
138 : }
139 :
140 : /* readonly attribute nsIURI URI; */
141 : NS_IMETHODIMP nsIncrementalDownload::GetURI(nsIURI * *aURI)
142 : {
143 : return NS_ERROR_NOT_IMPLEMENTED;
144 : }
145 :
146 : /* readonly attribute nsIURI finalURI; */
147 : NS_IMETHODIMP nsIncrementalDownload::GetFinalURI(nsIURI * *aFinalURI)
148 : {
149 : return NS_ERROR_NOT_IMPLEMENTED;
150 : }
151 :
152 : /* readonly attribute nsIFile destination; */
153 : NS_IMETHODIMP nsIncrementalDownload::GetDestination(nsIFile * *aDestination)
154 : {
155 : return NS_ERROR_NOT_IMPLEMENTED;
156 : }
157 :
158 : /* readonly attribute long long totalSize; */
159 : NS_IMETHODIMP nsIncrementalDownload::GetTotalSize(int64_t *aTotalSize)
160 : {
161 : return NS_ERROR_NOT_IMPLEMENTED;
162 : }
163 :
164 : /* readonly attribute long long currentSize; */
165 : NS_IMETHODIMP nsIncrementalDownload::GetCurrentSize(int64_t *aCurrentSize)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* void start (in nsIRequestObserver observer, in nsISupports ctxt); */
171 : NS_IMETHODIMP nsIncrementalDownload::Start(nsIRequestObserver *observer, nsISupports *ctxt)
172 : {
173 : return NS_ERROR_NOT_IMPLEMENTED;
174 : }
175 :
176 : /* End of implementation class template. */
177 : #endif
178 :
179 :
180 : #endif /* __gen_nsIIncrementalDownload_h__ */
|