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