1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/startupcache/nsIStartupCache.idl
3 : */
4 :
5 : #ifndef __gen_nsIStartupCache_h__
6 : #define __gen_nsIStartupCache_h__
7 :
8 :
9 : #ifndef __gen_nsIInputStream_h__
10 : #include "nsIInputStream.h"
11 : #endif
12 :
13 : #ifndef __gen_nsISupports_h__
14 : #include "nsISupports.h"
15 : #endif
16 :
17 : #ifndef __gen_nsIObserver_h__
18 : #include "nsIObserver.h"
19 : #endif
20 :
21 : #ifndef __gen_nsIObjectOutputStream_h__
22 : #include "nsIObjectOutputStream.h"
23 : #endif
24 :
25 : /* For IDL files that don't want to include root IDL files. */
26 : #ifndef NS_NO_VTABLE
27 : #define NS_NO_VTABLE
28 : #endif
29 :
30 : /* starting interface: nsIStartupCache */
31 : #define NS_ISTARTUPCACHE_IID_STR "c1b3796b-33af-4ff0-b83d-8eb0ca2c080f"
32 :
33 : #define NS_ISTARTUPCACHE_IID \
34 : {0xc1b3796b, 0x33af, 0x4ff0, \
35 : { 0xb8, 0x3d, 0x8e, 0xb0, 0xca, 0x2c, 0x08, 0x0f }}
36 :
37 1 : class NS_NO_VTABLE nsIStartupCache : public nsISupports {
38 : public:
39 :
40 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISTARTUPCACHE_IID)
41 :
42 : /* PRUint32 getBuffer (in string aID, out charPtr aBuffer); */
43 : NS_IMETHOD GetBuffer(const char * aID, char **aBuffer NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) = 0;
44 :
45 : /* void putBuffer (in string aID, in string aBuffer, in PRUint32 aLength); */
46 : NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, PRUint32 aLength) = 0;
47 :
48 : /* void invalidateCache (); */
49 : NS_IMETHOD InvalidateCache(void) = 0;
50 :
51 : /* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
52 : NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval NS_OUTPARAM) = 0;
53 :
54 : /* boolean startupWriteComplete (); */
55 : NS_IMETHOD StartupWriteComplete(bool *_retval NS_OUTPARAM) = 0;
56 :
57 : /* void resetStartupWriteTimer (); */
58 : NS_IMETHOD ResetStartupWriteTimer(void) = 0;
59 :
60 : /* void recordAgesAlways (); */
61 : NS_IMETHOD RecordAgesAlways(void) = 0;
62 :
63 : /* readonly attribute nsIObserver observer; */
64 : NS_IMETHOD GetObserver(nsIObserver * *aObserver) = 0;
65 :
66 : };
67 :
68 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIStartupCache, NS_ISTARTUPCACHE_IID)
69 :
70 : /* Use this macro when declaring classes that implement this interface. */
71 : #define NS_DECL_NSISTARTUPCACHE \
72 : NS_IMETHOD GetBuffer(const char * aID, char **aBuffer NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM); \
73 : NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, PRUint32 aLength); \
74 : NS_IMETHOD InvalidateCache(void); \
75 : NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval NS_OUTPARAM); \
76 : NS_IMETHOD StartupWriteComplete(bool *_retval NS_OUTPARAM); \
77 : NS_IMETHOD ResetStartupWriteTimer(void); \
78 : NS_IMETHOD RecordAgesAlways(void); \
79 : NS_IMETHOD GetObserver(nsIObserver * *aObserver);
80 :
81 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
82 : #define NS_FORWARD_NSISTARTUPCACHE(_to) \
83 : NS_IMETHOD GetBuffer(const char * aID, char **aBuffer NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return _to GetBuffer(aID, aBuffer, _retval); } \
84 : NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, PRUint32 aLength) { return _to PutBuffer(aID, aBuffer, aLength); } \
85 : NS_IMETHOD InvalidateCache(void) { return _to InvalidateCache(); } \
86 : NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval NS_OUTPARAM) { return _to GetDebugObjectOutputStream(aStream, _retval); } \
87 : NS_IMETHOD StartupWriteComplete(bool *_retval NS_OUTPARAM) { return _to StartupWriteComplete(_retval); } \
88 : NS_IMETHOD ResetStartupWriteTimer(void) { return _to ResetStartupWriteTimer(); } \
89 : NS_IMETHOD RecordAgesAlways(void) { return _to RecordAgesAlways(); } \
90 : NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return _to GetObserver(aObserver); }
91 :
92 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
93 : #define NS_FORWARD_SAFE_NSISTARTUPCACHE(_to) \
94 : NS_IMETHOD GetBuffer(const char * aID, char **aBuffer NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetBuffer(aID, aBuffer, _retval); } \
95 : NS_IMETHOD PutBuffer(const char * aID, const char * aBuffer, PRUint32 aLength) { return !_to ? NS_ERROR_NULL_POINTER : _to->PutBuffer(aID, aBuffer, aLength); } \
96 : NS_IMETHOD InvalidateCache(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateCache(); } \
97 : NS_IMETHOD GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDebugObjectOutputStream(aStream, _retval); } \
98 : NS_IMETHOD StartupWriteComplete(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartupWriteComplete(_retval); } \
99 : NS_IMETHOD ResetStartupWriteTimer(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetStartupWriteTimer(); } \
100 : NS_IMETHOD RecordAgesAlways(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->RecordAgesAlways(); } \
101 : NS_IMETHOD GetObserver(nsIObserver * *aObserver) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetObserver(aObserver); }
102 :
103 : #if 0
104 : /* Use the code below as a template for the implementation class for this interface. */
105 :
106 : /* Header file */
107 : class nsStartupCache : public nsIStartupCache
108 : {
109 : public:
110 : NS_DECL_ISUPPORTS
111 : NS_DECL_NSISTARTUPCACHE
112 :
113 : nsStartupCache();
114 :
115 : private:
116 : ~nsStartupCache();
117 :
118 : protected:
119 : /* additional members */
120 : };
121 :
122 : /* Implementation file */
123 : NS_IMPL_ISUPPORTS1(nsStartupCache, nsIStartupCache)
124 :
125 : nsStartupCache::nsStartupCache()
126 : {
127 : /* member initializers and constructor code */
128 : }
129 :
130 : nsStartupCache::~nsStartupCache()
131 : {
132 : /* destructor code */
133 : }
134 :
135 : /* PRUint32 getBuffer (in string aID, out charPtr aBuffer); */
136 : NS_IMETHODIMP nsStartupCache::GetBuffer(const char * aID, char **aBuffer NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* void putBuffer (in string aID, in string aBuffer, in PRUint32 aLength); */
142 : NS_IMETHODIMP nsStartupCache::PutBuffer(const char * aID, const char * aBuffer, PRUint32 aLength)
143 : {
144 : return NS_ERROR_NOT_IMPLEMENTED;
145 : }
146 :
147 : /* void invalidateCache (); */
148 : NS_IMETHODIMP nsStartupCache::InvalidateCache()
149 : {
150 : return NS_ERROR_NOT_IMPLEMENTED;
151 : }
152 :
153 : /* nsIObjectOutputStream getDebugObjectOutputStream (in nsIObjectOutputStream aStream); */
154 : NS_IMETHODIMP nsStartupCache::GetDebugObjectOutputStream(nsIObjectOutputStream *aStream, nsIObjectOutputStream * *_retval NS_OUTPARAM)
155 : {
156 : return NS_ERROR_NOT_IMPLEMENTED;
157 : }
158 :
159 : /* boolean startupWriteComplete (); */
160 : NS_IMETHODIMP nsStartupCache::StartupWriteComplete(bool *_retval NS_OUTPARAM)
161 : {
162 : return NS_ERROR_NOT_IMPLEMENTED;
163 : }
164 :
165 : /* void resetStartupWriteTimer (); */
166 : NS_IMETHODIMP nsStartupCache::ResetStartupWriteTimer()
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* void recordAgesAlways (); */
172 : NS_IMETHODIMP nsStartupCache::RecordAgesAlways()
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 :
177 : /* readonly attribute nsIObserver observer; */
178 : NS_IMETHODIMP nsStartupCache::GetObserver(nsIObserver * *aObserver)
179 : {
180 : return NS_ERROR_NOT_IMPLEMENTED;
181 : }
182 :
183 : /* End of implementation class template. */
184 : #endif
185 :
186 :
187 : #endif /* __gen_nsIStartupCache_h__ */
|