Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIApplicationCache.idl
3 : */
4 :
5 : #ifndef __gen_nsIApplicationCache_h__
6 : #define __gen_nsIApplicationCache_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 nsIArray; /* forward declaration */
18 :
19 : class nsIFile; /* forward declaration */
20 :
21 : class nsIURI; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIApplicationCacheNamespace */
25 : #define NS_IAPPLICATIONCACHENAMESPACE_IID_STR "96e4c264-2065-4ce9-93bb-43734c62c4eb"
26 :
27 : #define NS_IAPPLICATIONCACHENAMESPACE_IID \
28 : {0x96e4c264, 0x2065, 0x4ce9, \
29 : { 0x93, 0xbb, 0x43, 0x73, 0x4c, 0x62, 0xc4, 0xeb }}
30 :
31 0 : class NS_NO_VTABLE nsIApplicationCacheNamespace : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHENAMESPACE_IID)
35 :
36 : enum {
37 : NAMESPACE_BYPASS = 1U,
38 : NAMESPACE_FALLBACK = 2U,
39 : NAMESPACE_OPPORTUNISTIC = 4U
40 : };
41 :
42 : /* void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data); */
43 : NS_IMETHOD Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data) = 0;
44 :
45 : /* readonly attribute unsigned long itemType; */
46 : NS_IMETHOD GetItemType(uint32_t *aItemType) = 0;
47 :
48 : /* readonly attribute ACString namespaceSpec; */
49 : NS_IMETHOD GetNamespaceSpec(nsACString & aNamespaceSpec) = 0;
50 :
51 : /* readonly attribute ACString data; */
52 : NS_IMETHOD GetData(nsACString & aData) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCacheNamespace, NS_IAPPLICATIONCACHENAMESPACE_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIAPPLICATIONCACHENAMESPACE \
60 : NS_IMETHOD Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data) override; \
61 : NS_IMETHOD GetItemType(uint32_t *aItemType) override; \
62 : NS_IMETHOD GetNamespaceSpec(nsACString & aNamespaceSpec) override; \
63 : NS_IMETHOD GetData(nsACString & aData) override;
64 :
65 : /* Use this macro when declaring the members of this interface when the
66 : class doesn't implement the interface. This is useful for forwarding. */
67 : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCACHENAMESPACE \
68 : nsresult Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data); \
69 : nsresult GetItemType(uint32_t *aItemType); \
70 : nsresult GetNamespaceSpec(nsACString & aNamespaceSpec); \
71 : nsresult GetData(nsACString & aData);
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
74 : #define NS_FORWARD_NSIAPPLICATIONCACHENAMESPACE(_to) \
75 : NS_IMETHOD Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data) override { return _to Init(itemType, namespaceSpec, data); } \
76 : NS_IMETHOD GetItemType(uint32_t *aItemType) override { return _to GetItemType(aItemType); } \
77 : NS_IMETHOD GetNamespaceSpec(nsACString & aNamespaceSpec) override { return _to GetNamespaceSpec(aNamespaceSpec); } \
78 : NS_IMETHOD GetData(nsACString & aData) override { return _to GetData(aData); }
79 :
80 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
81 : #define NS_FORWARD_SAFE_NSIAPPLICATIONCACHENAMESPACE(_to) \
82 : NS_IMETHOD Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(itemType, namespaceSpec, data); } \
83 : NS_IMETHOD GetItemType(uint32_t *aItemType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetItemType(aItemType); } \
84 : NS_IMETHOD GetNamespaceSpec(nsACString & aNamespaceSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNamespaceSpec(aNamespaceSpec); } \
85 : NS_IMETHOD GetData(nsACString & aData) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetData(aData); }
86 :
87 : #if 0
88 : /* Use the code below as a template for the implementation class for this interface. */
89 :
90 : /* Header file */
91 : class nsApplicationCacheNamespace : public nsIApplicationCacheNamespace
92 : {
93 : public:
94 : NS_DECL_ISUPPORTS
95 : NS_DECL_NSIAPPLICATIONCACHENAMESPACE
96 :
97 : nsApplicationCacheNamespace();
98 :
99 : private:
100 : ~nsApplicationCacheNamespace();
101 :
102 : protected:
103 : /* additional members */
104 : };
105 :
106 : /* Implementation file */
107 : NS_IMPL_ISUPPORTS(nsApplicationCacheNamespace, nsIApplicationCacheNamespace)
108 :
109 : nsApplicationCacheNamespace::nsApplicationCacheNamespace()
110 : {
111 : /* member initializers and constructor code */
112 : }
113 :
114 : nsApplicationCacheNamespace::~nsApplicationCacheNamespace()
115 : {
116 : /* destructor code */
117 : }
118 :
119 : /* void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data); */
120 : NS_IMETHODIMP nsApplicationCacheNamespace::Init(uint32_t itemType, const nsACString & namespaceSpec, const nsACString & data)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* readonly attribute unsigned long itemType; */
126 : NS_IMETHODIMP nsApplicationCacheNamespace::GetItemType(uint32_t *aItemType)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 :
131 : /* readonly attribute ACString namespaceSpec; */
132 : NS_IMETHODIMP nsApplicationCacheNamespace::GetNamespaceSpec(nsACString & aNamespaceSpec)
133 : {
134 : return NS_ERROR_NOT_IMPLEMENTED;
135 : }
136 :
137 : /* readonly attribute ACString data; */
138 : NS_IMETHODIMP nsApplicationCacheNamespace::GetData(nsACString & aData)
139 : {
140 : return NS_ERROR_NOT_IMPLEMENTED;
141 : }
142 :
143 : /* End of implementation class template. */
144 : #endif
145 :
146 :
147 : /* starting interface: nsIApplicationCache */
148 : #define NS_IAPPLICATIONCACHE_IID_STR "06568dae-c374-4383-a122-0cc96c7177f2"
149 :
150 : #define NS_IAPPLICATIONCACHE_IID \
151 : {0x06568dae, 0xc374, 0x4383, \
152 : { 0xa1, 0x22, 0x0c, 0xc9, 0x6c, 0x71, 0x77, 0xf2 }}
153 :
154 0 : class NS_NO_VTABLE nsIApplicationCache : public nsISupports {
155 : public:
156 :
157 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IAPPLICATIONCACHE_IID)
158 :
159 : /* void initAsHandle (in ACString groupId, in ACString clientId); */
160 : NS_IMETHOD InitAsHandle(const nsACString & groupId, const nsACString & clientId) = 0;
161 :
162 : enum {
163 : ITEM_MANIFEST = 1U,
164 : ITEM_EXPLICIT = 2U,
165 : ITEM_IMPLICIT = 4U,
166 : ITEM_DYNAMIC = 8U,
167 : ITEM_FOREIGN = 16U,
168 : ITEM_FALLBACK = 32U,
169 : ITEM_OPPORTUNISTIC = 64U
170 : };
171 :
172 : /* readonly attribute nsIURI manifestURI; */
173 : NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) = 0;
174 :
175 : /* readonly attribute ACString groupID; */
176 : NS_IMETHOD GetGroupID(nsACString & aGroupID) = 0;
177 :
178 : /* readonly attribute ACString clientID; */
179 : NS_IMETHOD GetClientID(nsACString & aClientID) = 0;
180 :
181 : /* readonly attribute boolean active; */
182 : NS_IMETHOD GetActive(bool *aActive) = 0;
183 :
184 : /* readonly attribute unsigned long usage; */
185 : NS_IMETHOD GetUsage(uint32_t *aUsage) = 0;
186 :
187 : /* void activate (); */
188 : NS_IMETHOD Activate(void) = 0;
189 :
190 : /* void discard (); */
191 : NS_IMETHOD Discard(void) = 0;
192 :
193 : /* void markEntry (in ACString key, in unsigned long typeBits); */
194 : NS_IMETHOD MarkEntry(const nsACString & key, uint32_t typeBits) = 0;
195 :
196 : /* void unmarkEntry (in ACString key, in unsigned long typeBits); */
197 : NS_IMETHOD UnmarkEntry(const nsACString & key, uint32_t typeBits) = 0;
198 :
199 : /* unsigned long getTypes (in ACString key); */
200 : NS_IMETHOD GetTypes(const nsACString & key, uint32_t *_retval) = 0;
201 :
202 : /* void gatherEntries (in uint32_t typeBits, out unsigned long count, [array, size_is (count)] out string keys); */
203 : NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) = 0;
204 :
205 : /* void addNamespaces (in nsIArray namespaces); */
206 : NS_IMETHOD AddNamespaces(nsIArray *namespaces) = 0;
207 :
208 : /* nsIApplicationCacheNamespace getMatchingNamespace (in ACString key); */
209 : NS_IMETHOD GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval) = 0;
210 :
211 : /* readonly attribute nsIFile profileDirectory; */
212 : NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) = 0;
213 :
214 : };
215 :
216 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIApplicationCache, NS_IAPPLICATIONCACHE_IID)
217 :
218 : /* Use this macro when declaring classes that implement this interface. */
219 : #define NS_DECL_NSIAPPLICATIONCACHE \
220 : NS_IMETHOD InitAsHandle(const nsACString & groupId, const nsACString & clientId) override; \
221 : NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override; \
222 : NS_IMETHOD GetGroupID(nsACString & aGroupID) override; \
223 : NS_IMETHOD GetClientID(nsACString & aClientID) override; \
224 : NS_IMETHOD GetActive(bool *aActive) override; \
225 : NS_IMETHOD GetUsage(uint32_t *aUsage) override; \
226 : NS_IMETHOD Activate(void) override; \
227 : NS_IMETHOD Discard(void) override; \
228 : NS_IMETHOD MarkEntry(const nsACString & key, uint32_t typeBits) override; \
229 : NS_IMETHOD UnmarkEntry(const nsACString & key, uint32_t typeBits) override; \
230 : NS_IMETHOD GetTypes(const nsACString & key, uint32_t *_retval) override; \
231 : NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override; \
232 : NS_IMETHOD AddNamespaces(nsIArray *namespaces) override; \
233 : NS_IMETHOD GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval) override; \
234 : NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override;
235 :
236 : /* Use this macro when declaring the members of this interface when the
237 : class doesn't implement the interface. This is useful for forwarding. */
238 : #define NS_DECL_NON_VIRTUAL_NSIAPPLICATIONCACHE \
239 : nsresult InitAsHandle(const nsACString & groupId, const nsACString & clientId); \
240 : nsresult GetManifestURI(nsIURI * *aManifestURI); \
241 : nsresult GetGroupID(nsACString & aGroupID); \
242 : nsresult GetClientID(nsACString & aClientID); \
243 : nsresult GetActive(bool *aActive); \
244 : nsresult GetUsage(uint32_t *aUsage); \
245 : nsresult Activate(void); \
246 : nsresult Discard(void); \
247 : nsresult MarkEntry(const nsACString & key, uint32_t typeBits); \
248 : nsresult UnmarkEntry(const nsACString & key, uint32_t typeBits); \
249 : nsresult GetTypes(const nsACString & key, uint32_t *_retval); \
250 : nsresult GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys); \
251 : nsresult AddNamespaces(nsIArray *namespaces); \
252 : nsresult GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval); \
253 : nsresult GetProfileDirectory(nsIFile * *aProfileDirectory);
254 :
255 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
256 : #define NS_FORWARD_NSIAPPLICATIONCACHE(_to) \
257 : NS_IMETHOD InitAsHandle(const nsACString & groupId, const nsACString & clientId) override { return _to InitAsHandle(groupId, clientId); } \
258 : NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override { return _to GetManifestURI(aManifestURI); } \
259 : NS_IMETHOD GetGroupID(nsACString & aGroupID) override { return _to GetGroupID(aGroupID); } \
260 : NS_IMETHOD GetClientID(nsACString & aClientID) override { return _to GetClientID(aClientID); } \
261 : NS_IMETHOD GetActive(bool *aActive) override { return _to GetActive(aActive); } \
262 : NS_IMETHOD GetUsage(uint32_t *aUsage) override { return _to GetUsage(aUsage); } \
263 : NS_IMETHOD Activate(void) override { return _to Activate(); } \
264 : NS_IMETHOD Discard(void) override { return _to Discard(); } \
265 : NS_IMETHOD MarkEntry(const nsACString & key, uint32_t typeBits) override { return _to MarkEntry(key, typeBits); } \
266 : NS_IMETHOD UnmarkEntry(const nsACString & key, uint32_t typeBits) override { return _to UnmarkEntry(key, typeBits); } \
267 : NS_IMETHOD GetTypes(const nsACString & key, uint32_t *_retval) override { return _to GetTypes(key, _retval); } \
268 : NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override { return _to GatherEntries(typeBits, count, keys); } \
269 : NS_IMETHOD AddNamespaces(nsIArray *namespaces) override { return _to AddNamespaces(namespaces); } \
270 : NS_IMETHOD GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval) override { return _to GetMatchingNamespace(key, _retval); } \
271 : NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override { return _to GetProfileDirectory(aProfileDirectory); }
272 :
273 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
274 : #define NS_FORWARD_SAFE_NSIAPPLICATIONCACHE(_to) \
275 : NS_IMETHOD InitAsHandle(const nsACString & groupId, const nsACString & clientId) override { return !_to ? NS_ERROR_NULL_POINTER : _to->InitAsHandle(groupId, clientId); } \
276 : NS_IMETHOD GetManifestURI(nsIURI * *aManifestURI) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetManifestURI(aManifestURI); } \
277 : NS_IMETHOD GetGroupID(nsACString & aGroupID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetGroupID(aGroupID); } \
278 : NS_IMETHOD GetClientID(nsACString & aClientID) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClientID(aClientID); } \
279 : NS_IMETHOD GetActive(bool *aActive) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetActive(aActive); } \
280 : NS_IMETHOD GetUsage(uint32_t *aUsage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetUsage(aUsage); } \
281 : NS_IMETHOD Activate(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Activate(); } \
282 : NS_IMETHOD Discard(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Discard(); } \
283 : NS_IMETHOD MarkEntry(const nsACString & key, uint32_t typeBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->MarkEntry(key, typeBits); } \
284 : NS_IMETHOD UnmarkEntry(const nsACString & key, uint32_t typeBits) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnmarkEntry(key, typeBits); } \
285 : NS_IMETHOD GetTypes(const nsACString & key, uint32_t *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTypes(key, _retval); } \
286 : NS_IMETHOD GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GatherEntries(typeBits, count, keys); } \
287 : NS_IMETHOD AddNamespaces(nsIArray *namespaces) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AddNamespaces(namespaces); } \
288 : NS_IMETHOD GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchingNamespace(key, _retval); } \
289 : NS_IMETHOD GetProfileDirectory(nsIFile * *aProfileDirectory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProfileDirectory(aProfileDirectory); }
290 :
291 : #if 0
292 : /* Use the code below as a template for the implementation class for this interface. */
293 :
294 : /* Header file */
295 : class nsApplicationCache : public nsIApplicationCache
296 : {
297 : public:
298 : NS_DECL_ISUPPORTS
299 : NS_DECL_NSIAPPLICATIONCACHE
300 :
301 : nsApplicationCache();
302 :
303 : private:
304 : ~nsApplicationCache();
305 :
306 : protected:
307 : /* additional members */
308 : };
309 :
310 : /* Implementation file */
311 : NS_IMPL_ISUPPORTS(nsApplicationCache, nsIApplicationCache)
312 :
313 : nsApplicationCache::nsApplicationCache()
314 : {
315 : /* member initializers and constructor code */
316 : }
317 :
318 : nsApplicationCache::~nsApplicationCache()
319 : {
320 : /* destructor code */
321 : }
322 :
323 : /* void initAsHandle (in ACString groupId, in ACString clientId); */
324 : NS_IMETHODIMP nsApplicationCache::InitAsHandle(const nsACString & groupId, const nsACString & clientId)
325 : {
326 : return NS_ERROR_NOT_IMPLEMENTED;
327 : }
328 :
329 : /* readonly attribute nsIURI manifestURI; */
330 : NS_IMETHODIMP nsApplicationCache::GetManifestURI(nsIURI * *aManifestURI)
331 : {
332 : return NS_ERROR_NOT_IMPLEMENTED;
333 : }
334 :
335 : /* readonly attribute ACString groupID; */
336 : NS_IMETHODIMP nsApplicationCache::GetGroupID(nsACString & aGroupID)
337 : {
338 : return NS_ERROR_NOT_IMPLEMENTED;
339 : }
340 :
341 : /* readonly attribute ACString clientID; */
342 : NS_IMETHODIMP nsApplicationCache::GetClientID(nsACString & aClientID)
343 : {
344 : return NS_ERROR_NOT_IMPLEMENTED;
345 : }
346 :
347 : /* readonly attribute boolean active; */
348 : NS_IMETHODIMP nsApplicationCache::GetActive(bool *aActive)
349 : {
350 : return NS_ERROR_NOT_IMPLEMENTED;
351 : }
352 :
353 : /* readonly attribute unsigned long usage; */
354 : NS_IMETHODIMP nsApplicationCache::GetUsage(uint32_t *aUsage)
355 : {
356 : return NS_ERROR_NOT_IMPLEMENTED;
357 : }
358 :
359 : /* void activate (); */
360 : NS_IMETHODIMP nsApplicationCache::Activate()
361 : {
362 : return NS_ERROR_NOT_IMPLEMENTED;
363 : }
364 :
365 : /* void discard (); */
366 : NS_IMETHODIMP nsApplicationCache::Discard()
367 : {
368 : return NS_ERROR_NOT_IMPLEMENTED;
369 : }
370 :
371 : /* void markEntry (in ACString key, in unsigned long typeBits); */
372 : NS_IMETHODIMP nsApplicationCache::MarkEntry(const nsACString & key, uint32_t typeBits)
373 : {
374 : return NS_ERROR_NOT_IMPLEMENTED;
375 : }
376 :
377 : /* void unmarkEntry (in ACString key, in unsigned long typeBits); */
378 : NS_IMETHODIMP nsApplicationCache::UnmarkEntry(const nsACString & key, uint32_t typeBits)
379 : {
380 : return NS_ERROR_NOT_IMPLEMENTED;
381 : }
382 :
383 : /* unsigned long getTypes (in ACString key); */
384 : NS_IMETHODIMP nsApplicationCache::GetTypes(const nsACString & key, uint32_t *_retval)
385 : {
386 : return NS_ERROR_NOT_IMPLEMENTED;
387 : }
388 :
389 : /* void gatherEntries (in uint32_t typeBits, out unsigned long count, [array, size_is (count)] out string keys); */
390 : NS_IMETHODIMP nsApplicationCache::GatherEntries(uint32_t typeBits, uint32_t *count, char * **keys)
391 : {
392 : return NS_ERROR_NOT_IMPLEMENTED;
393 : }
394 :
395 : /* void addNamespaces (in nsIArray namespaces); */
396 : NS_IMETHODIMP nsApplicationCache::AddNamespaces(nsIArray *namespaces)
397 : {
398 : return NS_ERROR_NOT_IMPLEMENTED;
399 : }
400 :
401 : /* nsIApplicationCacheNamespace getMatchingNamespace (in ACString key); */
402 : NS_IMETHODIMP nsApplicationCache::GetMatchingNamespace(const nsACString & key, nsIApplicationCacheNamespace * *_retval)
403 : {
404 : return NS_ERROR_NOT_IMPLEMENTED;
405 : }
406 :
407 : /* readonly attribute nsIFile profileDirectory; */
408 : NS_IMETHODIMP nsApplicationCache::GetProfileDirectory(nsIFile * *aProfileDirectory)
409 : {
410 : return NS_ERROR_NOT_IMPLEMENTED;
411 : }
412 :
413 : /* End of implementation class template. */
414 : #endif
415 :
416 :
417 : #endif /* __gen_nsIApplicationCache_h__ */
|