Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsICacheVisitor.idl
3 : */
4 :
5 : #ifndef __gen_nsICacheVisitor_h__
6 : #define __gen_nsICacheVisitor_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 nsICacheDeviceInfo; /* forward declaration */
18 :
19 : class nsICacheEntryInfo; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsICacheVisitor */
23 : #define NS_ICACHEVISITOR_IID_STR "f8c08c4b-d778-49d1-a59b-866fdc500d95"
24 :
25 : #define NS_ICACHEVISITOR_IID \
26 : {0xf8c08c4b, 0xd778, 0x49d1, \
27 : { 0xa5, 0x9b, 0x86, 0x6f, 0xdc, 0x50, 0x0d, 0x95 }}
28 :
29 0 : class NS_NO_VTABLE nsICacheVisitor : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEVISITOR_IID)
33 :
34 : /* boolean visitDevice (in string deviceID, in nsICacheDeviceInfo deviceInfo); */
35 : NS_IMETHOD VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval) = 0;
36 :
37 : /* boolean visitEntry (in string deviceID, in nsICacheEntryInfo entryInfo); */
38 : NS_IMETHOD VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheVisitor, NS_ICACHEVISITOR_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSICACHEVISITOR \
46 : NS_IMETHOD VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval) override; \
47 : NS_IMETHOD VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSICACHEVISITOR \
52 : nsresult VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval); \
53 : nsresult VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSICACHEVISITOR(_to) \
57 : NS_IMETHOD VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval) override { return _to VisitDevice(deviceID, deviceInfo, _retval); } \
58 : NS_IMETHOD VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval) override { return _to VisitEntry(deviceID, entryInfo, _retval); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSICACHEVISITOR(_to) \
62 : NS_IMETHOD VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitDevice(deviceID, deviceInfo, _retval); } \
63 : NS_IMETHOD VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->VisitEntry(deviceID, entryInfo, _retval); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsCacheVisitor : public nsICacheVisitor
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSICACHEVISITOR
74 :
75 : nsCacheVisitor();
76 :
77 : private:
78 : ~nsCacheVisitor();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsCacheVisitor, nsICacheVisitor)
86 :
87 : nsCacheVisitor::nsCacheVisitor()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsCacheVisitor::~nsCacheVisitor()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* boolean visitDevice (in string deviceID, in nsICacheDeviceInfo deviceInfo); */
98 : NS_IMETHODIMP nsCacheVisitor::VisitDevice(const char * deviceID, nsICacheDeviceInfo *deviceInfo, bool *_retval)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* boolean visitEntry (in string deviceID, in nsICacheEntryInfo entryInfo); */
104 : NS_IMETHODIMP nsCacheVisitor::VisitEntry(const char * deviceID, nsICacheEntryInfo *entryInfo, bool *_retval)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 :
113 : /* starting interface: nsICacheDeviceInfo */
114 : #define NS_ICACHEDEVICEINFO_IID_STR "31d1c294-1dd2-11b2-be3a-c79230dca297"
115 :
116 : #define NS_ICACHEDEVICEINFO_IID \
117 : {0x31d1c294, 0x1dd2, 0x11b2, \
118 : { 0xbe, 0x3a, 0xc7, 0x92, 0x30, 0xdc, 0xa2, 0x97 }}
119 :
120 0 : class NS_NO_VTABLE nsICacheDeviceInfo : public nsISupports {
121 : public:
122 :
123 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEDEVICEINFO_IID)
124 :
125 : /* readonly attribute string description; */
126 : NS_IMETHOD GetDescription(char * *aDescription) = 0;
127 :
128 : /* readonly attribute string usageReport; */
129 : NS_IMETHOD GetUsageReport(char * *aUsageReport) = 0;
130 :
131 : /* readonly attribute unsigned long entryCount; */
132 : NS_IMETHOD GetEntryCount(uint32_t *aEntryCount) = 0;
133 :
134 : /* readonly attribute unsigned long totalSize; */
135 : NS_IMETHOD GetTotalSize(uint32_t *aTotalSize) = 0;
136 :
137 : /* readonly attribute unsigned long maximumSize; */
138 : NS_IMETHOD GetMaximumSize(uint32_t *aMaximumSize) = 0;
139 :
140 : };
141 :
142 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheDeviceInfo, NS_ICACHEDEVICEINFO_IID)
143 :
144 : /* Use this macro when declaring classes that implement this interface. */
145 : #define NS_DECL_NSICACHEDEVICEINFO \
146 : NS_IMETHOD GetDescription(char * *aDescription) override; \
147 : NS_IMETHOD GetUsageReport(char * *aUsageReport) override; \
148 : NS_IMETHOD GetEntryCount(uint32_t *aEntryCount) override; \
149 : NS_IMETHOD GetTotalSize(uint32_t *aTotalSize) override; \
150 : NS_IMETHOD GetMaximumSize(uint32_t *aMaximumSize) override;
151 :
152 : /* Use this macro when declaring the members of this interface when the
153 : class doesn't implement the interface. This is useful for forwarding. */
154 : #define NS_DECL_NON_VIRTUAL_NSICACHEDEVICEINFO \
155 : nsresult GetDescription(char * *aDescription); \
156 : nsresult GetUsageReport(char * *aUsageReport); \
157 : nsresult GetEntryCount(uint32_t *aEntryCount); \
158 : nsresult GetTotalSize(uint32_t *aTotalSize); \
159 : nsresult GetMaximumSize(uint32_t *aMaximumSize);
160 :
161 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
162 : #define NS_FORWARD_NSICACHEDEVICEINFO(_to) \
163 : NS_IMETHOD GetDescription(char * *aDescription) override { return _to GetDescription(aDescription); } \
164 : NS_IMETHOD GetUsageReport(char * *aUsageReport) override { return _to GetUsageReport(aUsageReport); } \
165 : NS_IMETHOD GetEntryCount(uint32_t *aEntryCount) override { return _to GetEntryCount(aEntryCount); } \
166 : NS_IMETHOD GetTotalSize(uint32_t *aTotalSize) override { return _to GetTotalSize(aTotalSize); } \
167 : NS_IMETHOD GetMaximumSize(uint32_t *aMaximumSize) override { return _to GetMaximumSize(aMaximumSize); }
168 :
169 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
170 : #define NS_FORWARD_SAFE_NSICACHEDEVICEINFO(_to) \
171 : NS_IMETHOD GetDescription(char * *aDescription) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDescription(aDescription); } \
172 : NS_IMETHOD GetUsageReport(char * *aUsageReport) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsageReport(aUsageReport); } \
173 : NS_IMETHOD GetEntryCount(uint32_t *aEntryCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntryCount(aEntryCount); } \
174 : NS_IMETHOD GetTotalSize(uint32_t *aTotalSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTotalSize(aTotalSize); } \
175 : NS_IMETHOD GetMaximumSize(uint32_t *aMaximumSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMaximumSize(aMaximumSize); }
176 :
177 : #if 0
178 : /* Use the code below as a template for the implementation class for this interface. */
179 :
180 : /* Header file */
181 : class nsCacheDeviceInfo : public nsICacheDeviceInfo
182 : {
183 : public:
184 : NS_DECL_ISUPPORTS
185 : NS_DECL_NSICACHEDEVICEINFO
186 :
187 : nsCacheDeviceInfo();
188 :
189 : private:
190 : ~nsCacheDeviceInfo();
191 :
192 : protected:
193 : /* additional members */
194 : };
195 :
196 : /* Implementation file */
197 : NS_IMPL_ISUPPORTS(nsCacheDeviceInfo, nsICacheDeviceInfo)
198 :
199 : nsCacheDeviceInfo::nsCacheDeviceInfo()
200 : {
201 : /* member initializers and constructor code */
202 : }
203 :
204 : nsCacheDeviceInfo::~nsCacheDeviceInfo()
205 : {
206 : /* destructor code */
207 : }
208 :
209 : /* readonly attribute string description; */
210 : NS_IMETHODIMP nsCacheDeviceInfo::GetDescription(char * *aDescription)
211 : {
212 : return NS_ERROR_NOT_IMPLEMENTED;
213 : }
214 :
215 : /* readonly attribute string usageReport; */
216 : NS_IMETHODIMP nsCacheDeviceInfo::GetUsageReport(char * *aUsageReport)
217 : {
218 : return NS_ERROR_NOT_IMPLEMENTED;
219 : }
220 :
221 : /* readonly attribute unsigned long entryCount; */
222 : NS_IMETHODIMP nsCacheDeviceInfo::GetEntryCount(uint32_t *aEntryCount)
223 : {
224 : return NS_ERROR_NOT_IMPLEMENTED;
225 : }
226 :
227 : /* readonly attribute unsigned long totalSize; */
228 : NS_IMETHODIMP nsCacheDeviceInfo::GetTotalSize(uint32_t *aTotalSize)
229 : {
230 : return NS_ERROR_NOT_IMPLEMENTED;
231 : }
232 :
233 : /* readonly attribute unsigned long maximumSize; */
234 : NS_IMETHODIMP nsCacheDeviceInfo::GetMaximumSize(uint32_t *aMaximumSize)
235 : {
236 : return NS_ERROR_NOT_IMPLEMENTED;
237 : }
238 :
239 : /* End of implementation class template. */
240 : #endif
241 :
242 :
243 : /* starting interface: nsICacheEntryInfo */
244 : #define NS_ICACHEENTRYINFO_IID_STR "fab51c92-95c3-4468-b317-7de4d7588254"
245 :
246 : #define NS_ICACHEENTRYINFO_IID \
247 : {0xfab51c92, 0x95c3, 0x4468, \
248 : { 0xb3, 0x17, 0x7d, 0xe4, 0xd7, 0x58, 0x82, 0x54 }}
249 :
250 0 : class NS_NO_VTABLE nsICacheEntryInfo : public nsISupports {
251 : public:
252 :
253 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICACHEENTRYINFO_IID)
254 :
255 : /* readonly attribute string clientID; */
256 : NS_IMETHOD GetClientID(char * *aClientID) = 0;
257 :
258 : /* readonly attribute string deviceID; */
259 : NS_IMETHOD GetDeviceID(char * *aDeviceID) = 0;
260 :
261 : /* readonly attribute ACString key; */
262 : NS_IMETHOD GetKey(nsACString & aKey) = 0;
263 :
264 : /* readonly attribute long fetchCount; */
265 : NS_IMETHOD GetFetchCount(int32_t *aFetchCount) = 0;
266 :
267 : /* readonly attribute uint32_t lastFetched; */
268 : NS_IMETHOD GetLastFetched(uint32_t *aLastFetched) = 0;
269 :
270 : /* readonly attribute uint32_t lastModified; */
271 : NS_IMETHOD GetLastModified(uint32_t *aLastModified) = 0;
272 :
273 : /* readonly attribute uint32_t expirationTime; */
274 : NS_IMETHOD GetExpirationTime(uint32_t *aExpirationTime) = 0;
275 :
276 : /* readonly attribute unsigned long dataSize; */
277 : NS_IMETHOD GetDataSize(uint32_t *aDataSize) = 0;
278 :
279 : /* boolean isStreamBased (); */
280 : NS_IMETHOD IsStreamBased(bool *_retval) = 0;
281 :
282 : };
283 :
284 : NS_DEFINE_STATIC_IID_ACCESSOR(nsICacheEntryInfo, NS_ICACHEENTRYINFO_IID)
285 :
286 : /* Use this macro when declaring classes that implement this interface. */
287 : #define NS_DECL_NSICACHEENTRYINFO \
288 : NS_IMETHOD GetClientID(char * *aClientID) override; \
289 : NS_IMETHOD GetDeviceID(char * *aDeviceID) override; \
290 : NS_IMETHOD GetKey(nsACString & aKey) override; \
291 : NS_IMETHOD GetFetchCount(int32_t *aFetchCount) override; \
292 : NS_IMETHOD GetLastFetched(uint32_t *aLastFetched) override; \
293 : NS_IMETHOD GetLastModified(uint32_t *aLastModified) override; \
294 : NS_IMETHOD GetExpirationTime(uint32_t *aExpirationTime) override; \
295 : NS_IMETHOD GetDataSize(uint32_t *aDataSize) override; \
296 : NS_IMETHOD IsStreamBased(bool *_retval) override;
297 :
298 : /* Use this macro when declaring the members of this interface when the
299 : class doesn't implement the interface. This is useful for forwarding. */
300 : #define NS_DECL_NON_VIRTUAL_NSICACHEENTRYINFO \
301 : nsresult GetClientID(char * *aClientID); \
302 : nsresult GetDeviceID(char * *aDeviceID); \
303 : nsresult GetKey(nsACString & aKey); \
304 : nsresult GetFetchCount(int32_t *aFetchCount); \
305 : nsresult GetLastFetched(uint32_t *aLastFetched); \
306 : nsresult GetLastModified(uint32_t *aLastModified); \
307 : nsresult GetExpirationTime(uint32_t *aExpirationTime); \
308 : nsresult GetDataSize(uint32_t *aDataSize); \
309 : nsresult IsStreamBased(bool *_retval);
310 :
311 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
312 : #define NS_FORWARD_NSICACHEENTRYINFO(_to) \
313 : NS_IMETHOD GetClientID(char * *aClientID) override { return _to GetClientID(aClientID); } \
314 : NS_IMETHOD GetDeviceID(char * *aDeviceID) override { return _to GetDeviceID(aDeviceID); } \
315 : NS_IMETHOD GetKey(nsACString & aKey) override { return _to GetKey(aKey); } \
316 : NS_IMETHOD GetFetchCount(int32_t *aFetchCount) override { return _to GetFetchCount(aFetchCount); } \
317 : NS_IMETHOD GetLastFetched(uint32_t *aLastFetched) override { return _to GetLastFetched(aLastFetched); } \
318 : NS_IMETHOD GetLastModified(uint32_t *aLastModified) override { return _to GetLastModified(aLastModified); } \
319 : NS_IMETHOD GetExpirationTime(uint32_t *aExpirationTime) override { return _to GetExpirationTime(aExpirationTime); } \
320 : NS_IMETHOD GetDataSize(uint32_t *aDataSize) override { return _to GetDataSize(aDataSize); } \
321 : NS_IMETHOD IsStreamBased(bool *_retval) override { return _to IsStreamBased(_retval); }
322 :
323 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
324 : #define NS_FORWARD_SAFE_NSICACHEENTRYINFO(_to) \
325 : NS_IMETHOD GetClientID(char * *aClientID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientID(aClientID); } \
326 : NS_IMETHOD GetDeviceID(char * *aDeviceID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDeviceID(aDeviceID); } \
327 : NS_IMETHOD GetKey(nsACString & aKey) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetKey(aKey); } \
328 : NS_IMETHOD GetFetchCount(int32_t *aFetchCount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFetchCount(aFetchCount); } \
329 : NS_IMETHOD GetLastFetched(uint32_t *aLastFetched) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastFetched(aLastFetched); } \
330 : NS_IMETHOD GetLastModified(uint32_t *aLastModified) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastModified(aLastModified); } \
331 : NS_IMETHOD GetExpirationTime(uint32_t *aExpirationTime) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetExpirationTime(aExpirationTime); } \
332 : NS_IMETHOD GetDataSize(uint32_t *aDataSize) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDataSize(aDataSize); } \
333 : NS_IMETHOD IsStreamBased(bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsStreamBased(_retval); }
334 :
335 : #if 0
336 : /* Use the code below as a template for the implementation class for this interface. */
337 :
338 : /* Header file */
339 : class nsCacheEntryInfo : public nsICacheEntryInfo
340 : {
341 : public:
342 : NS_DECL_ISUPPORTS
343 : NS_DECL_NSICACHEENTRYINFO
344 :
345 : nsCacheEntryInfo();
346 :
347 : private:
348 : ~nsCacheEntryInfo();
349 :
350 : protected:
351 : /* additional members */
352 : };
353 :
354 : /* Implementation file */
355 : NS_IMPL_ISUPPORTS(nsCacheEntryInfo, nsICacheEntryInfo)
356 :
357 : nsCacheEntryInfo::nsCacheEntryInfo()
358 : {
359 : /* member initializers and constructor code */
360 : }
361 :
362 : nsCacheEntryInfo::~nsCacheEntryInfo()
363 : {
364 : /* destructor code */
365 : }
366 :
367 : /* readonly attribute string clientID; */
368 : NS_IMETHODIMP nsCacheEntryInfo::GetClientID(char * *aClientID)
369 : {
370 : return NS_ERROR_NOT_IMPLEMENTED;
371 : }
372 :
373 : /* readonly attribute string deviceID; */
374 : NS_IMETHODIMP nsCacheEntryInfo::GetDeviceID(char * *aDeviceID)
375 : {
376 : return NS_ERROR_NOT_IMPLEMENTED;
377 : }
378 :
379 : /* readonly attribute ACString key; */
380 : NS_IMETHODIMP nsCacheEntryInfo::GetKey(nsACString & aKey)
381 : {
382 : return NS_ERROR_NOT_IMPLEMENTED;
383 : }
384 :
385 : /* readonly attribute long fetchCount; */
386 : NS_IMETHODIMP nsCacheEntryInfo::GetFetchCount(int32_t *aFetchCount)
387 : {
388 : return NS_ERROR_NOT_IMPLEMENTED;
389 : }
390 :
391 : /* readonly attribute uint32_t lastFetched; */
392 : NS_IMETHODIMP nsCacheEntryInfo::GetLastFetched(uint32_t *aLastFetched)
393 : {
394 : return NS_ERROR_NOT_IMPLEMENTED;
395 : }
396 :
397 : /* readonly attribute uint32_t lastModified; */
398 : NS_IMETHODIMP nsCacheEntryInfo::GetLastModified(uint32_t *aLastModified)
399 : {
400 : return NS_ERROR_NOT_IMPLEMENTED;
401 : }
402 :
403 : /* readonly attribute uint32_t expirationTime; */
404 : NS_IMETHODIMP nsCacheEntryInfo::GetExpirationTime(uint32_t *aExpirationTime)
405 : {
406 : return NS_ERROR_NOT_IMPLEMENTED;
407 : }
408 :
409 : /* readonly attribute unsigned long dataSize; */
410 : NS_IMETHODIMP nsCacheEntryInfo::GetDataSize(uint32_t *aDataSize)
411 : {
412 : return NS_ERROR_NOT_IMPLEMENTED;
413 : }
414 :
415 : /* boolean isStreamBased (); */
416 : NS_IMETHODIMP nsCacheEntryInfo::IsStreamBased(bool *_retval)
417 : {
418 : return NS_ERROR_NOT_IMPLEMENTED;
419 : }
420 :
421 : /* End of implementation class template. */
422 : #endif
423 :
424 :
425 : #endif /* __gen_nsICacheVisitor_h__ */
|