Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINativeOSFileInternals.idl
3 : */
4 :
5 : #ifndef __gen_nsINativeOSFileInternals_h__
6 : #define __gen_nsINativeOSFileInternals_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : #include "js/Value.h"
14 :
15 : /* For IDL files that don't want to include root IDL files. */
16 : #ifndef NS_NO_VTABLE
17 : #define NS_NO_VTABLE
18 : #endif
19 :
20 : /* starting interface: nsINativeOSFileResult */
21 : #define NS_INATIVEOSFILERESULT_IID_STR "08b4cf29-3d65-4e79-b522-a694c322ed07"
22 :
23 : #define NS_INATIVEOSFILERESULT_IID \
24 : {0x08b4cf29, 0x3d65, 0x4e79, \
25 : { 0xb5, 0x22, 0xa6, 0x94, 0xc3, 0x22, 0xed, 0x07 }}
26 :
27 3 : class NS_NO_VTABLE nsINativeOSFileResult : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILERESULT_IID)
31 :
32 : /* [implicit_jscontext] readonly attribute jsval result; */
33 : NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) = 0;
34 :
35 : /* readonly attribute double dispatchDurationMS; */
36 : NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) = 0;
37 :
38 : /* readonly attribute double executionDurationMS; */
39 : NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) = 0;
40 :
41 : };
42 :
43 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileResult, NS_INATIVEOSFILERESULT_IID)
44 :
45 : /* Use this macro when declaring classes that implement this interface. */
46 : #define NS_DECL_NSINATIVEOSFILERESULT \
47 : NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override; \
48 : NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override; \
49 : NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSINATIVEOSFILERESULT \
54 : nsresult GetResult(JSContext* cx, JS::MutableHandleValue aResult); \
55 : nsresult GetDispatchDurationMS(double *aDispatchDurationMS); \
56 : nsresult GetExecutionDurationMS(double *aExecutionDurationMS);
57 :
58 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
59 : #define NS_FORWARD_NSINATIVEOSFILERESULT(_to) \
60 : NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override { return _to GetResult(cx, aResult); } \
61 : NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override { return _to GetDispatchDurationMS(aDispatchDurationMS); } \
62 : NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) override { return _to GetExecutionDurationMS(aExecutionDurationMS); }
63 :
64 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
65 : #define NS_FORWARD_SAFE_NSINATIVEOSFILERESULT(_to) \
66 : NS_IMETHOD GetResult(JSContext* cx, JS::MutableHandleValue aResult) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResult(cx, aResult); } \
67 : NS_IMETHOD GetDispatchDurationMS(double *aDispatchDurationMS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDispatchDurationMS(aDispatchDurationMS); } \
68 : NS_IMETHOD GetExecutionDurationMS(double *aExecutionDurationMS) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExecutionDurationMS(aExecutionDurationMS); }
69 :
70 : #if 0
71 : /* Use the code below as a template for the implementation class for this interface. */
72 :
73 : /* Header file */
74 : class nsNativeOSFileResult : public nsINativeOSFileResult
75 : {
76 : public:
77 : NS_DECL_ISUPPORTS
78 : NS_DECL_NSINATIVEOSFILERESULT
79 :
80 : nsNativeOSFileResult();
81 :
82 : private:
83 : ~nsNativeOSFileResult();
84 :
85 : protected:
86 : /* additional members */
87 : };
88 :
89 : /* Implementation file */
90 : NS_IMPL_ISUPPORTS(nsNativeOSFileResult, nsINativeOSFileResult)
91 :
92 : nsNativeOSFileResult::nsNativeOSFileResult()
93 : {
94 : /* member initializers and constructor code */
95 : }
96 :
97 : nsNativeOSFileResult::~nsNativeOSFileResult()
98 : {
99 : /* destructor code */
100 : }
101 :
102 : /* [implicit_jscontext] readonly attribute jsval result; */
103 : NS_IMETHODIMP nsNativeOSFileResult::GetResult(JSContext* cx, JS::MutableHandleValue aResult)
104 : {
105 : return NS_ERROR_NOT_IMPLEMENTED;
106 : }
107 :
108 : /* readonly attribute double dispatchDurationMS; */
109 : NS_IMETHODIMP nsNativeOSFileResult::GetDispatchDurationMS(double *aDispatchDurationMS)
110 : {
111 : return NS_ERROR_NOT_IMPLEMENTED;
112 : }
113 :
114 : /* readonly attribute double executionDurationMS; */
115 : NS_IMETHODIMP nsNativeOSFileResult::GetExecutionDurationMS(double *aExecutionDurationMS)
116 : {
117 : return NS_ERROR_NOT_IMPLEMENTED;
118 : }
119 :
120 : /* End of implementation class template. */
121 : #endif
122 :
123 :
124 : /* starting interface: nsINativeOSFileSuccessCallback */
125 : #define NS_INATIVEOSFILESUCCESSCALLBACK_IID_STR "2c1922ca-ca1b-4099-8b61-ec23cff49412"
126 :
127 : #define NS_INATIVEOSFILESUCCESSCALLBACK_IID \
128 : {0x2c1922ca, 0xca1b, 0x4099, \
129 : { 0x8b, 0x61, 0xec, 0x23, 0xcf, 0xf4, 0x94, 0x12 }}
130 :
131 : class NS_NO_VTABLE nsINativeOSFileSuccessCallback : public nsISupports {
132 : public:
133 :
134 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILESUCCESSCALLBACK_IID)
135 :
136 : /* void complete (in nsINativeOSFileResult result); */
137 : NS_IMETHOD Complete(nsINativeOSFileResult *result) = 0;
138 :
139 : };
140 :
141 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileSuccessCallback, NS_INATIVEOSFILESUCCESSCALLBACK_IID)
142 :
143 : /* Use this macro when declaring classes that implement this interface. */
144 : #define NS_DECL_NSINATIVEOSFILESUCCESSCALLBACK \
145 : NS_IMETHOD Complete(nsINativeOSFileResult *result) override;
146 :
147 : /* Use this macro when declaring the members of this interface when the
148 : class doesn't implement the interface. This is useful for forwarding. */
149 : #define NS_DECL_NON_VIRTUAL_NSINATIVEOSFILESUCCESSCALLBACK \
150 : nsresult Complete(nsINativeOSFileResult *result);
151 :
152 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
153 : #define NS_FORWARD_NSINATIVEOSFILESUCCESSCALLBACK(_to) \
154 : NS_IMETHOD Complete(nsINativeOSFileResult *result) override { return _to Complete(result); }
155 :
156 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
157 : #define NS_FORWARD_SAFE_NSINATIVEOSFILESUCCESSCALLBACK(_to) \
158 : NS_IMETHOD Complete(nsINativeOSFileResult *result) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(result); }
159 :
160 : #if 0
161 : /* Use the code below as a template for the implementation class for this interface. */
162 :
163 : /* Header file */
164 : class nsNativeOSFileSuccessCallback : public nsINativeOSFileSuccessCallback
165 : {
166 : public:
167 : NS_DECL_ISUPPORTS
168 : NS_DECL_NSINATIVEOSFILESUCCESSCALLBACK
169 :
170 : nsNativeOSFileSuccessCallback();
171 :
172 : private:
173 : ~nsNativeOSFileSuccessCallback();
174 :
175 : protected:
176 : /* additional members */
177 : };
178 :
179 : /* Implementation file */
180 : NS_IMPL_ISUPPORTS(nsNativeOSFileSuccessCallback, nsINativeOSFileSuccessCallback)
181 :
182 : nsNativeOSFileSuccessCallback::nsNativeOSFileSuccessCallback()
183 : {
184 : /* member initializers and constructor code */
185 : }
186 :
187 : nsNativeOSFileSuccessCallback::~nsNativeOSFileSuccessCallback()
188 : {
189 : /* destructor code */
190 : }
191 :
192 : /* void complete (in nsINativeOSFileResult result); */
193 : NS_IMETHODIMP nsNativeOSFileSuccessCallback::Complete(nsINativeOSFileResult *result)
194 : {
195 : return NS_ERROR_NOT_IMPLEMENTED;
196 : }
197 :
198 : /* End of implementation class template. */
199 : #endif
200 :
201 :
202 : /* starting interface: nsINativeOSFileErrorCallback */
203 : #define NS_INATIVEOSFILEERRORCALLBACK_IID_STR "f612e0fc-6736-4d24-aa50-fd661b3b40b6"
204 :
205 : #define NS_INATIVEOSFILEERRORCALLBACK_IID \
206 : {0xf612e0fc, 0x6736, 0x4d24, \
207 : { 0xaa, 0x50, 0xfd, 0x66, 0x1b, 0x3b, 0x40, 0xb6 }}
208 :
209 : class NS_NO_VTABLE nsINativeOSFileErrorCallback : public nsISupports {
210 : public:
211 :
212 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILEERRORCALLBACK_IID)
213 :
214 : /* void complete (in ACString operation, in long OSstatus); */
215 : NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) = 0;
216 :
217 : };
218 :
219 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileErrorCallback, NS_INATIVEOSFILEERRORCALLBACK_IID)
220 :
221 : /* Use this macro when declaring classes that implement this interface. */
222 : #define NS_DECL_NSINATIVEOSFILEERRORCALLBACK \
223 : NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) override;
224 :
225 : /* Use this macro when declaring the members of this interface when the
226 : class doesn't implement the interface. This is useful for forwarding. */
227 : #define NS_DECL_NON_VIRTUAL_NSINATIVEOSFILEERRORCALLBACK \
228 : nsresult Complete(const nsACString & operation, int32_t OSstatus);
229 :
230 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
231 : #define NS_FORWARD_NSINATIVEOSFILEERRORCALLBACK(_to) \
232 : NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) override { return _to Complete(operation, OSstatus); }
233 :
234 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
235 : #define NS_FORWARD_SAFE_NSINATIVEOSFILEERRORCALLBACK(_to) \
236 : NS_IMETHOD Complete(const nsACString & operation, int32_t OSstatus) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(operation, OSstatus); }
237 :
238 : #if 0
239 : /* Use the code below as a template for the implementation class for this interface. */
240 :
241 : /* Header file */
242 : class nsNativeOSFileErrorCallback : public nsINativeOSFileErrorCallback
243 : {
244 : public:
245 : NS_DECL_ISUPPORTS
246 : NS_DECL_NSINATIVEOSFILEERRORCALLBACK
247 :
248 : nsNativeOSFileErrorCallback();
249 :
250 : private:
251 : ~nsNativeOSFileErrorCallback();
252 :
253 : protected:
254 : /* additional members */
255 : };
256 :
257 : /* Implementation file */
258 : NS_IMPL_ISUPPORTS(nsNativeOSFileErrorCallback, nsINativeOSFileErrorCallback)
259 :
260 : nsNativeOSFileErrorCallback::nsNativeOSFileErrorCallback()
261 : {
262 : /* member initializers and constructor code */
263 : }
264 :
265 : nsNativeOSFileErrorCallback::~nsNativeOSFileErrorCallback()
266 : {
267 : /* destructor code */
268 : }
269 :
270 : /* void complete (in ACString operation, in long OSstatus); */
271 : NS_IMETHODIMP nsNativeOSFileErrorCallback::Complete(const nsACString & operation, int32_t OSstatus)
272 : {
273 : return NS_ERROR_NOT_IMPLEMENTED;
274 : }
275 :
276 : /* End of implementation class template. */
277 : #endif
278 :
279 :
280 : /* starting interface: nsINativeOSFileInternalsService */
281 : #define NS_INATIVEOSFILEINTERNALSSERVICE_IID_STR "913362ad-1526-4623-9e6b-a2eb08afbbb9"
282 :
283 : #define NS_INATIVEOSFILEINTERNALSSERVICE_IID \
284 : {0x913362ad, 0x1526, 0x4623, \
285 : { 0x9e, 0x6b, 0xa2, 0xeb, 0x08, 0xaf, 0xbb, 0xb9 }}
286 :
287 1 : class NS_NO_VTABLE nsINativeOSFileInternalsService : public nsISupports {
288 : public:
289 :
290 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEOSFILEINTERNALSSERVICE_IID)
291 :
292 : /* [implicit_jscontext] void read (in AString path, in jsval options, in nsINativeOSFileSuccessCallback onSuccess, in nsINativeOSFileErrorCallback onError); */
293 : NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) = 0;
294 :
295 : };
296 :
297 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeOSFileInternalsService, NS_INATIVEOSFILEINTERNALSSERVICE_IID)
298 :
299 : /* Use this macro when declaring classes that implement this interface. */
300 : #define NS_DECL_NSINATIVEOSFILEINTERNALSSERVICE \
301 : NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) override;
302 :
303 : /* Use this macro when declaring the members of this interface when the
304 : class doesn't implement the interface. This is useful for forwarding. */
305 : #define NS_DECL_NON_VIRTUAL_NSINATIVEOSFILEINTERNALSSERVICE \
306 : nsresult Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx);
307 :
308 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
309 : #define NS_FORWARD_NSINATIVEOSFILEINTERNALSSERVICE(_to) \
310 : NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) override { return _to Read(path, options, onSuccess, onError, cx); }
311 :
312 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
313 : #define NS_FORWARD_SAFE_NSINATIVEOSFILEINTERNALSSERVICE(_to) \
314 : NS_IMETHOD Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Read(path, options, onSuccess, onError, cx); }
315 :
316 : #if 0
317 : /* Use the code below as a template for the implementation class for this interface. */
318 :
319 : /* Header file */
320 : class nsNativeOSFileInternalsService : public nsINativeOSFileInternalsService
321 : {
322 : public:
323 : NS_DECL_ISUPPORTS
324 : NS_DECL_NSINATIVEOSFILEINTERNALSSERVICE
325 :
326 : nsNativeOSFileInternalsService();
327 :
328 : private:
329 : ~nsNativeOSFileInternalsService();
330 :
331 : protected:
332 : /* additional members */
333 : };
334 :
335 : /* Implementation file */
336 : NS_IMPL_ISUPPORTS(nsNativeOSFileInternalsService, nsINativeOSFileInternalsService)
337 :
338 : nsNativeOSFileInternalsService::nsNativeOSFileInternalsService()
339 : {
340 : /* member initializers and constructor code */
341 : }
342 :
343 : nsNativeOSFileInternalsService::~nsNativeOSFileInternalsService()
344 : {
345 : /* destructor code */
346 : }
347 :
348 : /* [implicit_jscontext] void read (in AString path, in jsval options, in nsINativeOSFileSuccessCallback onSuccess, in nsINativeOSFileErrorCallback onError); */
349 : NS_IMETHODIMP nsNativeOSFileInternalsService::Read(const nsAString & path, JS::HandleValue options, nsINativeOSFileSuccessCallback *onSuccess, nsINativeOSFileErrorCallback *onError, JSContext* cx)
350 : {
351 : return NS_ERROR_NOT_IMPLEMENTED;
352 : }
353 :
354 : /* End of implementation class template. */
355 : #endif
356 :
357 :
358 : #define NATIVE_OSFILE_INTERNALS_SERVICE_CID {0x63A69303,0x8A64,0x45A9,{0x84, 0x8C, 0xD4, 0xE2, 0x79, 0x27, 0x94, 0xE6}}
359 : #define NATIVE_OSFILE_INTERNALS_SERVICE_CONTRACTID "@mozilla.org/toolkit/osfile/native-internals;1"
360 :
361 : #endif /* __gen_nsINativeOSFileInternals_h__ */
|