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