1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/image/public/imgICache.idl
3 : */
4 :
5 : #ifndef __gen_imgICache_h__
6 : #define __gen_imgICache_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 nsIURI; /* forward declaration */
18 :
19 : class imgIRequest; /* forward declaration */
20 :
21 : class nsIProperties; /* forward declaration */
22 :
23 :
24 : /* starting interface: imgICache */
25 : #define IMGICACHE_IID_STR "f1b74aae-5661-4753-a21c-66dd644afebc"
26 :
27 : #define IMGICACHE_IID \
28 : {0xf1b74aae, 0x5661, 0x4753, \
29 : { 0xa2, 0x1c, 0x66, 0xdd, 0x64, 0x4a, 0xfe, 0xbc }}
30 :
31 1647 : class NS_NO_VTABLE NS_SCRIPTABLE imgICache : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(IMGICACHE_IID)
35 :
36 : /* void clearCache (in boolean chrome); */
37 : NS_SCRIPTABLE NS_IMETHOD ClearCache(bool chrome) = 0;
38 :
39 : /* void removeEntry (in nsIURI uri); */
40 : NS_SCRIPTABLE NS_IMETHOD RemoveEntry(nsIURI *uri) = 0;
41 :
42 : /* nsIProperties findEntryProperties (in nsIURI uri); */
43 : NS_SCRIPTABLE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIProperties * *_retval NS_OUTPARAM) = 0;
44 :
45 : };
46 :
47 : NS_DEFINE_STATIC_IID_ACCESSOR(imgICache, IMGICACHE_IID)
48 :
49 : /* Use this macro when declaring classes that implement this interface. */
50 : #define NS_DECL_IMGICACHE \
51 : NS_SCRIPTABLE NS_IMETHOD ClearCache(bool chrome); \
52 : NS_SCRIPTABLE NS_IMETHOD RemoveEntry(nsIURI *uri); \
53 : NS_SCRIPTABLE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIProperties * *_retval NS_OUTPARAM);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_IMGICACHE(_to) \
57 : NS_SCRIPTABLE NS_IMETHOD ClearCache(bool chrome) { return _to ClearCache(chrome); } \
58 : NS_SCRIPTABLE NS_IMETHOD RemoveEntry(nsIURI *uri) { return _to RemoveEntry(uri); } \
59 : NS_SCRIPTABLE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIProperties * *_retval NS_OUTPARAM) { return _to FindEntryProperties(uri, _retval); }
60 :
61 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
62 : #define NS_FORWARD_SAFE_IMGICACHE(_to) \
63 : NS_SCRIPTABLE NS_IMETHOD ClearCache(bool chrome) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearCache(chrome); } \
64 : NS_SCRIPTABLE NS_IMETHOD RemoveEntry(nsIURI *uri) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveEntry(uri); } \
65 : NS_SCRIPTABLE NS_IMETHOD FindEntryProperties(nsIURI *uri, nsIProperties * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindEntryProperties(uri, _retval); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class _MYCLASS_ : public imgICache
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_IMGICACHE
76 :
77 : _MYCLASS_();
78 :
79 : private:
80 : ~_MYCLASS_();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS1(_MYCLASS_, imgICache)
88 :
89 : _MYCLASS_::_MYCLASS_()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : _MYCLASS_::~_MYCLASS_()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* void clearCache (in boolean chrome); */
100 : NS_IMETHODIMP _MYCLASS_::ClearCache(bool chrome)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* void removeEntry (in nsIURI uri); */
106 : NS_IMETHODIMP _MYCLASS_::RemoveEntry(nsIURI *uri)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* nsIProperties findEntryProperties (in nsIURI uri); */
112 : NS_IMETHODIMP _MYCLASS_::FindEntryProperties(nsIURI *uri, nsIProperties * *_retval NS_OUTPARAM)
113 : {
114 : return NS_ERROR_NOT_IMPLEMENTED;
115 : }
116 :
117 : /* End of implementation class template. */
118 : #endif
119 :
120 :
121 : #endif /* __gen_imgICache_h__ */
|