Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsINativeFileWatcher.idl
3 : */
4 :
5 : #ifndef __gen_nsINativeFileWatcher_h__
6 : #define __gen_nsINativeFileWatcher_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 :
18 : /* starting interface: nsINativeFileWatcherErrorCallback */
19 : #define NS_INATIVEFILEWATCHERERRORCALLBACK_IID_STR "5daeddc3-fc94-4880-8a4f-26d910b92662"
20 :
21 : #define NS_INATIVEFILEWATCHERERRORCALLBACK_IID \
22 : {0x5daeddc3, 0xfc94, 0x4880, \
23 : { 0x8a, 0x4f, 0x26, 0xd9, 0x10, 0xb9, 0x26, 0x62 }}
24 :
25 : class NS_NO_VTABLE nsINativeFileWatcherErrorCallback : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEFILEWATCHERERRORCALLBACK_IID)
29 :
30 : /* void complete (in nsresult xpcomError, in long osError); */
31 : NS_IMETHOD Complete(nsresult xpcomError, int32_t osError) = 0;
32 :
33 : };
34 :
35 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeFileWatcherErrorCallback, NS_INATIVEFILEWATCHERERRORCALLBACK_IID)
36 :
37 : /* Use this macro when declaring classes that implement this interface. */
38 : #define NS_DECL_NSINATIVEFILEWATCHERERRORCALLBACK \
39 : NS_IMETHOD Complete(nsresult xpcomError, int32_t osError) override;
40 :
41 : /* Use this macro when declaring the members of this interface when the
42 : class doesn't implement the interface. This is useful for forwarding. */
43 : #define NS_DECL_NON_VIRTUAL_NSINATIVEFILEWATCHERERRORCALLBACK \
44 : nsresult Complete(nsresult xpcomError, int32_t osError);
45 :
46 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
47 : #define NS_FORWARD_NSINATIVEFILEWATCHERERRORCALLBACK(_to) \
48 : NS_IMETHOD Complete(nsresult xpcomError, int32_t osError) override { return _to Complete(xpcomError, osError); }
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
51 : #define NS_FORWARD_SAFE_NSINATIVEFILEWATCHERERRORCALLBACK(_to) \
52 : NS_IMETHOD Complete(nsresult xpcomError, int32_t osError) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(xpcomError, osError); }
53 :
54 : #if 0
55 : /* Use the code below as a template for the implementation class for this interface. */
56 :
57 : /* Header file */
58 : class nsNativeFileWatcherErrorCallback : public nsINativeFileWatcherErrorCallback
59 : {
60 : public:
61 : NS_DECL_ISUPPORTS
62 : NS_DECL_NSINATIVEFILEWATCHERERRORCALLBACK
63 :
64 : nsNativeFileWatcherErrorCallback();
65 :
66 : private:
67 : ~nsNativeFileWatcherErrorCallback();
68 :
69 : protected:
70 : /* additional members */
71 : };
72 :
73 : /* Implementation file */
74 : NS_IMPL_ISUPPORTS(nsNativeFileWatcherErrorCallback, nsINativeFileWatcherErrorCallback)
75 :
76 : nsNativeFileWatcherErrorCallback::nsNativeFileWatcherErrorCallback()
77 : {
78 : /* member initializers and constructor code */
79 : }
80 :
81 : nsNativeFileWatcherErrorCallback::~nsNativeFileWatcherErrorCallback()
82 : {
83 : /* destructor code */
84 : }
85 :
86 : /* void complete (in nsresult xpcomError, in long osError); */
87 : NS_IMETHODIMP nsNativeFileWatcherErrorCallback::Complete(nsresult xpcomError, int32_t osError)
88 : {
89 : return NS_ERROR_NOT_IMPLEMENTED;
90 : }
91 :
92 : /* End of implementation class template. */
93 : #endif
94 :
95 :
96 : /* starting interface: nsINativeFileWatcherCallback */
97 : #define NS_INATIVEFILEWATCHERCALLBACK_IID_STR "fe4d86c9-243f-4195-b544-aece3df4b86a"
98 :
99 : #define NS_INATIVEFILEWATCHERCALLBACK_IID \
100 : {0xfe4d86c9, 0x243f, 0x4195, \
101 : { 0xb5, 0x44, 0xae, 0xce, 0x3d, 0xf4, 0xb8, 0x6a }}
102 :
103 : class NS_NO_VTABLE nsINativeFileWatcherCallback : public nsISupports {
104 : public:
105 :
106 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEFILEWATCHERCALLBACK_IID)
107 :
108 : /* void changed (in AString resourcePath, in int32_t flags); */
109 : NS_IMETHOD Changed(const nsAString & resourcePath, int32_t flags) = 0;
110 :
111 : };
112 :
113 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeFileWatcherCallback, NS_INATIVEFILEWATCHERCALLBACK_IID)
114 :
115 : /* Use this macro when declaring classes that implement this interface. */
116 : #define NS_DECL_NSINATIVEFILEWATCHERCALLBACK \
117 : NS_IMETHOD Changed(const nsAString & resourcePath, int32_t flags) override;
118 :
119 : /* Use this macro when declaring the members of this interface when the
120 : class doesn't implement the interface. This is useful for forwarding. */
121 : #define NS_DECL_NON_VIRTUAL_NSINATIVEFILEWATCHERCALLBACK \
122 : nsresult Changed(const nsAString & resourcePath, int32_t flags);
123 :
124 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
125 : #define NS_FORWARD_NSINATIVEFILEWATCHERCALLBACK(_to) \
126 : NS_IMETHOD Changed(const nsAString & resourcePath, int32_t flags) override { return _to Changed(resourcePath, flags); }
127 :
128 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
129 : #define NS_FORWARD_SAFE_NSINATIVEFILEWATCHERCALLBACK(_to) \
130 : NS_IMETHOD Changed(const nsAString & resourcePath, int32_t flags) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Changed(resourcePath, flags); }
131 :
132 : #if 0
133 : /* Use the code below as a template for the implementation class for this interface. */
134 :
135 : /* Header file */
136 : class nsNativeFileWatcherCallback : public nsINativeFileWatcherCallback
137 : {
138 : public:
139 : NS_DECL_ISUPPORTS
140 : NS_DECL_NSINATIVEFILEWATCHERCALLBACK
141 :
142 : nsNativeFileWatcherCallback();
143 :
144 : private:
145 : ~nsNativeFileWatcherCallback();
146 :
147 : protected:
148 : /* additional members */
149 : };
150 :
151 : /* Implementation file */
152 : NS_IMPL_ISUPPORTS(nsNativeFileWatcherCallback, nsINativeFileWatcherCallback)
153 :
154 : nsNativeFileWatcherCallback::nsNativeFileWatcherCallback()
155 : {
156 : /* member initializers and constructor code */
157 : }
158 :
159 : nsNativeFileWatcherCallback::~nsNativeFileWatcherCallback()
160 : {
161 : /* destructor code */
162 : }
163 :
164 : /* void changed (in AString resourcePath, in int32_t flags); */
165 : NS_IMETHODIMP nsNativeFileWatcherCallback::Changed(const nsAString & resourcePath, int32_t flags)
166 : {
167 : return NS_ERROR_NOT_IMPLEMENTED;
168 : }
169 :
170 : /* End of implementation class template. */
171 : #endif
172 :
173 :
174 : /* starting interface: nsINativeFileWatcherSuccessCallback */
175 : #define NS_INATIVEFILEWATCHERSUCCESSCALLBACK_IID_STR "c3d7f542-681b-4abd-9d65-9d799b29a42b"
176 :
177 : #define NS_INATIVEFILEWATCHERSUCCESSCALLBACK_IID \
178 : {0xc3d7f542, 0x681b, 0x4abd, \
179 : { 0x9d, 0x65, 0x9d, 0x79, 0x9b, 0x29, 0xa4, 0x2b }}
180 :
181 : class NS_NO_VTABLE nsINativeFileWatcherSuccessCallback : public nsISupports {
182 : public:
183 :
184 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEFILEWATCHERSUCCESSCALLBACK_IID)
185 :
186 : /* void complete (in AString resourcePath); */
187 : NS_IMETHOD Complete(const nsAString & resourcePath) = 0;
188 :
189 : };
190 :
191 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeFileWatcherSuccessCallback, NS_INATIVEFILEWATCHERSUCCESSCALLBACK_IID)
192 :
193 : /* Use this macro when declaring classes that implement this interface. */
194 : #define NS_DECL_NSINATIVEFILEWATCHERSUCCESSCALLBACK \
195 : NS_IMETHOD Complete(const nsAString & resourcePath) override;
196 :
197 : /* Use this macro when declaring the members of this interface when the
198 : class doesn't implement the interface. This is useful for forwarding. */
199 : #define NS_DECL_NON_VIRTUAL_NSINATIVEFILEWATCHERSUCCESSCALLBACK \
200 : nsresult Complete(const nsAString & resourcePath);
201 :
202 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
203 : #define NS_FORWARD_NSINATIVEFILEWATCHERSUCCESSCALLBACK(_to) \
204 : NS_IMETHOD Complete(const nsAString & resourcePath) override { return _to Complete(resourcePath); }
205 :
206 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
207 : #define NS_FORWARD_SAFE_NSINATIVEFILEWATCHERSUCCESSCALLBACK(_to) \
208 : NS_IMETHOD Complete(const nsAString & resourcePath) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Complete(resourcePath); }
209 :
210 : #if 0
211 : /* Use the code below as a template for the implementation class for this interface. */
212 :
213 : /* Header file */
214 : class nsNativeFileWatcherSuccessCallback : public nsINativeFileWatcherSuccessCallback
215 : {
216 : public:
217 : NS_DECL_ISUPPORTS
218 : NS_DECL_NSINATIVEFILEWATCHERSUCCESSCALLBACK
219 :
220 : nsNativeFileWatcherSuccessCallback();
221 :
222 : private:
223 : ~nsNativeFileWatcherSuccessCallback();
224 :
225 : protected:
226 : /* additional members */
227 : };
228 :
229 : /* Implementation file */
230 : NS_IMPL_ISUPPORTS(nsNativeFileWatcherSuccessCallback, nsINativeFileWatcherSuccessCallback)
231 :
232 : nsNativeFileWatcherSuccessCallback::nsNativeFileWatcherSuccessCallback()
233 : {
234 : /* member initializers and constructor code */
235 : }
236 :
237 : nsNativeFileWatcherSuccessCallback::~nsNativeFileWatcherSuccessCallback()
238 : {
239 : /* destructor code */
240 : }
241 :
242 : /* void complete (in AString resourcePath); */
243 : NS_IMETHODIMP nsNativeFileWatcherSuccessCallback::Complete(const nsAString & resourcePath)
244 : {
245 : return NS_ERROR_NOT_IMPLEMENTED;
246 : }
247 :
248 : /* End of implementation class template. */
249 : #endif
250 :
251 :
252 : /* starting interface: nsINativeFileWatcherService */
253 : #define NS_INATIVEFILEWATCHERSERVICE_IID_STR "b3a4e8d8-7dc8-47db-a8b4-83736d7ac1aa"
254 :
255 : #define NS_INATIVEFILEWATCHERSERVICE_IID \
256 : {0xb3a4e8d8, 0x7dc8, 0x47db, \
257 : { 0xa8, 0xb4, 0x83, 0x73, 0x6d, 0x7a, 0xc1, 0xaa }}
258 :
259 0 : class NS_NO_VTABLE nsINativeFileWatcherService : public nsISupports {
260 : public:
261 :
262 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVEFILEWATCHERSERVICE_IID)
263 :
264 : /* void addPath (in AString pathToWatch, in nsINativeFileWatcherCallback onChange, [optional] in nsINativeFileWatcherErrorCallback onError, [optional] in nsINativeFileWatcherSuccessCallback onSuccess); */
265 : NS_IMETHOD AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) = 0;
266 :
267 : /* void removePath (in AString pathToUnwatch, in nsINativeFileWatcherCallback onChange, [optional] in nsINativeFileWatcherErrorCallback onError, [optional] in nsINativeFileWatcherSuccessCallback onSuccess); */
268 : NS_IMETHOD RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) = 0;
269 :
270 : };
271 :
272 : NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeFileWatcherService, NS_INATIVEFILEWATCHERSERVICE_IID)
273 :
274 : /* Use this macro when declaring classes that implement this interface. */
275 : #define NS_DECL_NSINATIVEFILEWATCHERSERVICE \
276 : NS_IMETHOD AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override; \
277 : NS_IMETHOD RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override;
278 :
279 : /* Use this macro when declaring the members of this interface when the
280 : class doesn't implement the interface. This is useful for forwarding. */
281 : #define NS_DECL_NON_VIRTUAL_NSINATIVEFILEWATCHERSERVICE \
282 : nsresult AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess); \
283 : nsresult RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess);
284 :
285 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
286 : #define NS_FORWARD_NSINATIVEFILEWATCHERSERVICE(_to) \
287 : NS_IMETHOD AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override { return _to AddPath(pathToWatch, onChange, onError, onSuccess); } \
288 : NS_IMETHOD RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override { return _to RemovePath(pathToUnwatch, onChange, onError, onSuccess); }
289 :
290 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
291 : #define NS_FORWARD_SAFE_NSINATIVEFILEWATCHERSERVICE(_to) \
292 : NS_IMETHOD AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddPath(pathToWatch, onChange, onError, onSuccess); } \
293 : NS_IMETHOD RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RemovePath(pathToUnwatch, onChange, onError, onSuccess); }
294 :
295 : #if 0
296 : /* Use the code below as a template for the implementation class for this interface. */
297 :
298 : /* Header file */
299 : class nsNativeFileWatcherService : public nsINativeFileWatcherService
300 : {
301 : public:
302 : NS_DECL_ISUPPORTS
303 : NS_DECL_NSINATIVEFILEWATCHERSERVICE
304 :
305 : nsNativeFileWatcherService();
306 :
307 : private:
308 : ~nsNativeFileWatcherService();
309 :
310 : protected:
311 : /* additional members */
312 : };
313 :
314 : /* Implementation file */
315 : NS_IMPL_ISUPPORTS(nsNativeFileWatcherService, nsINativeFileWatcherService)
316 :
317 : nsNativeFileWatcherService::nsNativeFileWatcherService()
318 : {
319 : /* member initializers and constructor code */
320 : }
321 :
322 : nsNativeFileWatcherService::~nsNativeFileWatcherService()
323 : {
324 : /* destructor code */
325 : }
326 :
327 : /* void addPath (in AString pathToWatch, in nsINativeFileWatcherCallback onChange, [optional] in nsINativeFileWatcherErrorCallback onError, [optional] in nsINativeFileWatcherSuccessCallback onSuccess); */
328 : NS_IMETHODIMP nsNativeFileWatcherService::AddPath(const nsAString & pathToWatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess)
329 : {
330 : return NS_ERROR_NOT_IMPLEMENTED;
331 : }
332 :
333 : /* void removePath (in AString pathToUnwatch, in nsINativeFileWatcherCallback onChange, [optional] in nsINativeFileWatcherErrorCallback onError, [optional] in nsINativeFileWatcherSuccessCallback onSuccess); */
334 : NS_IMETHODIMP nsNativeFileWatcherService::RemovePath(const nsAString & pathToUnwatch, nsINativeFileWatcherCallback *onChange, nsINativeFileWatcherErrorCallback *onError, nsINativeFileWatcherSuccessCallback *onSuccess)
335 : {
336 : return NS_ERROR_NOT_IMPLEMENTED;
337 : }
338 :
339 : /* End of implementation class template. */
340 : #endif
341 :
342 :
343 : #define NATIVE_FILEWATCHER_SERVICE_CID {0x6F488507, 0x469D, 0x4350, {0xA6, 0x8D, 0x99, 0xC8, 0x7, 0xBE, 0xA, 0x78}}
344 : #define NATIVE_FILEWATCHER_SERVICE_CONTRACTID "@mozilla.org/toolkit/filewatcher/native-file-watcher;1"
345 :
346 : #endif /* __gen_nsINativeFileWatcher_h__ */
|