Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDirectoryService.idl
3 : */
4 :
5 : #ifndef __gen_nsIDirectoryService_h__
6 : #define __gen_nsIDirectoryService_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 nsIFile; /* forward declaration */
18 :
19 : class nsISimpleEnumerator; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDirectoryServiceProvider */
23 : #define NS_IDIRECTORYSERVICEPROVIDER_IID_STR "bbf8cab0-d43a-11d3-8cc2-00609792278c"
24 :
25 : #define NS_IDIRECTORYSERVICEPROVIDER_IID \
26 : {0xbbf8cab0, 0xd43a, 0x11d3, \
27 : { 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c }}
28 :
29 15 : class NS_NO_VTABLE nsIDirectoryServiceProvider : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICEPROVIDER_IID)
33 :
34 : /* nsIFile getFile (in string prop, out boolean persistent); */
35 : NS_IMETHOD GetFile(const char * prop, bool *persistent, nsIFile * *_retval) = 0;
36 :
37 : };
38 :
39 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryServiceProvider, NS_IDIRECTORYSERVICEPROVIDER_IID)
40 :
41 : /* Use this macro when declaring classes that implement this interface. */
42 : #define NS_DECL_NSIDIRECTORYSERVICEPROVIDER \
43 : NS_IMETHOD GetFile(const char * prop, bool *persistent, nsIFile * *_retval) override;
44 :
45 : /* Use this macro when declaring the members of this interface when the
46 : class doesn't implement the interface. This is useful for forwarding. */
47 : #define NS_DECL_NON_VIRTUAL_NSIDIRECTORYSERVICEPROVIDER \
48 : nsresult GetFile(const char * prop, bool *persistent, nsIFile * *_retval);
49 :
50 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
51 : #define NS_FORWARD_NSIDIRECTORYSERVICEPROVIDER(_to) \
52 : NS_IMETHOD GetFile(const char * prop, bool *persistent, nsIFile * *_retval) override { return _to GetFile(prop, persistent, _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_NSIDIRECTORYSERVICEPROVIDER(_to) \
56 : NS_IMETHOD GetFile(const char * prop, bool *persistent, nsIFile * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFile(prop, persistent, _retval); }
57 :
58 : #if 0
59 : /* Use the code below as a template for the implementation class for this interface. */
60 :
61 : /* Header file */
62 : class nsDirectoryServiceProvider : public nsIDirectoryServiceProvider
63 : {
64 : public:
65 : NS_DECL_ISUPPORTS
66 : NS_DECL_NSIDIRECTORYSERVICEPROVIDER
67 :
68 : nsDirectoryServiceProvider();
69 :
70 : private:
71 : ~nsDirectoryServiceProvider();
72 :
73 : protected:
74 : /* additional members */
75 : };
76 :
77 : /* Implementation file */
78 : NS_IMPL_ISUPPORTS(nsDirectoryServiceProvider, nsIDirectoryServiceProvider)
79 :
80 : nsDirectoryServiceProvider::nsDirectoryServiceProvider()
81 : {
82 : /* member initializers and constructor code */
83 : }
84 :
85 : nsDirectoryServiceProvider::~nsDirectoryServiceProvider()
86 : {
87 : /* destructor code */
88 : }
89 :
90 : /* nsIFile getFile (in string prop, out boolean persistent); */
91 : NS_IMETHODIMP nsDirectoryServiceProvider::GetFile(const char * prop, bool *persistent, nsIFile * *_retval)
92 : {
93 : return NS_ERROR_NOT_IMPLEMENTED;
94 : }
95 :
96 : /* End of implementation class template. */
97 : #endif
98 :
99 :
100 : /* starting interface: nsIDirectoryServiceProvider2 */
101 : #define NS_IDIRECTORYSERVICEPROVIDER2_IID_STR "2f977d4b-5485-11d4-87e2-0010a4e75ef2"
102 :
103 : #define NS_IDIRECTORYSERVICEPROVIDER2_IID \
104 : {0x2f977d4b, 0x5485, 0x11d4, \
105 : { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
106 :
107 15 : class NS_NO_VTABLE nsIDirectoryServiceProvider2 : public nsIDirectoryServiceProvider {
108 : public:
109 :
110 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICEPROVIDER2_IID)
111 :
112 : /* nsISimpleEnumerator getFiles (in string prop); */
113 : NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval) = 0;
114 :
115 : };
116 :
117 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryServiceProvider2, NS_IDIRECTORYSERVICEPROVIDER2_IID)
118 :
119 : /* Use this macro when declaring classes that implement this interface. */
120 : #define NS_DECL_NSIDIRECTORYSERVICEPROVIDER2 \
121 : NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval) override;
122 :
123 : /* Use this macro when declaring the members of this interface when the
124 : class doesn't implement the interface. This is useful for forwarding. */
125 : #define NS_DECL_NON_VIRTUAL_NSIDIRECTORYSERVICEPROVIDER2 \
126 : nsresult GetFiles(const char * prop, nsISimpleEnumerator * *_retval);
127 :
128 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
129 : #define NS_FORWARD_NSIDIRECTORYSERVICEPROVIDER2(_to) \
130 : NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval) override { return _to GetFiles(prop, _retval); }
131 :
132 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
133 : #define NS_FORWARD_SAFE_NSIDIRECTORYSERVICEPROVIDER2(_to) \
134 : NS_IMETHOD GetFiles(const char * prop, nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFiles(prop, _retval); }
135 :
136 : #if 0
137 : /* Use the code below as a template for the implementation class for this interface. */
138 :
139 : /* Header file */
140 : class nsDirectoryServiceProvider2 : public nsIDirectoryServiceProvider2
141 : {
142 : public:
143 : NS_DECL_ISUPPORTS
144 : NS_DECL_NSIDIRECTORYSERVICEPROVIDER2
145 :
146 : nsDirectoryServiceProvider2();
147 :
148 : private:
149 : ~nsDirectoryServiceProvider2();
150 :
151 : protected:
152 : /* additional members */
153 : };
154 :
155 : /* Implementation file */
156 : NS_IMPL_ISUPPORTS(nsDirectoryServiceProvider2, nsIDirectoryServiceProvider2)
157 :
158 : nsDirectoryServiceProvider2::nsDirectoryServiceProvider2()
159 : {
160 : /* member initializers and constructor code */
161 : }
162 :
163 : nsDirectoryServiceProvider2::~nsDirectoryServiceProvider2()
164 : {
165 : /* destructor code */
166 : }
167 :
168 : /* nsISimpleEnumerator getFiles (in string prop); */
169 : NS_IMETHODIMP nsDirectoryServiceProvider2::GetFiles(const char * prop, nsISimpleEnumerator * *_retval)
170 : {
171 : return NS_ERROR_NOT_IMPLEMENTED;
172 : }
173 :
174 : /* End of implementation class template. */
175 : #endif
176 :
177 :
178 : /* starting interface: nsIDirectoryService */
179 : #define NS_IDIRECTORYSERVICE_IID_STR "57a66a60-d43a-11d3-8cc2-00609792278c"
180 :
181 : #define NS_IDIRECTORYSERVICE_IID \
182 : {0x57a66a60, 0xd43a, 0x11d3, \
183 : { 0x8c, 0xc2, 0x00, 0x60, 0x97, 0x92, 0x27, 0x8c }}
184 :
185 3 : class NS_NO_VTABLE nsIDirectoryService : public nsISupports {
186 : public:
187 :
188 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDIRECTORYSERVICE_IID)
189 :
190 : /* void init (); */
191 : NS_IMETHOD Init(void) = 0;
192 :
193 : /* void registerProvider (in nsIDirectoryServiceProvider prov); */
194 : NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) = 0;
195 :
196 : /* void unregisterProvider (in nsIDirectoryServiceProvider prov); */
197 : NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) = 0;
198 :
199 : };
200 :
201 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDirectoryService, NS_IDIRECTORYSERVICE_IID)
202 :
203 : /* Use this macro when declaring classes that implement this interface. */
204 : #define NS_DECL_NSIDIRECTORYSERVICE \
205 : NS_IMETHOD Init(void) override; \
206 : NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) override; \
207 : NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) override;
208 :
209 : /* Use this macro when declaring the members of this interface when the
210 : class doesn't implement the interface. This is useful for forwarding. */
211 : #define NS_DECL_NON_VIRTUAL_NSIDIRECTORYSERVICE \
212 : nsresult Init(void); \
213 : nsresult RegisterProvider(nsIDirectoryServiceProvider *prov); \
214 : nsresult UnregisterProvider(nsIDirectoryServiceProvider *prov);
215 :
216 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
217 : #define NS_FORWARD_NSIDIRECTORYSERVICE(_to) \
218 : NS_IMETHOD Init(void) override { return _to Init(); } \
219 : NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) override { return _to RegisterProvider(prov); } \
220 : NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) override { return _to UnregisterProvider(prov); }
221 :
222 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
223 : #define NS_FORWARD_SAFE_NSIDIRECTORYSERVICE(_to) \
224 : NS_IMETHOD Init(void) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(); } \
225 : NS_IMETHOD RegisterProvider(nsIDirectoryServiceProvider *prov) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterProvider(prov); } \
226 : NS_IMETHOD UnregisterProvider(nsIDirectoryServiceProvider *prov) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterProvider(prov); }
227 :
228 : #if 0
229 : /* Use the code below as a template for the implementation class for this interface. */
230 :
231 : /* Header file */
232 : class nsDirectoryService : public nsIDirectoryService
233 : {
234 : public:
235 : NS_DECL_ISUPPORTS
236 : NS_DECL_NSIDIRECTORYSERVICE
237 :
238 : nsDirectoryService();
239 :
240 : private:
241 : ~nsDirectoryService();
242 :
243 : protected:
244 : /* additional members */
245 : };
246 :
247 : /* Implementation file */
248 : NS_IMPL_ISUPPORTS(nsDirectoryService, nsIDirectoryService)
249 :
250 : nsDirectoryService::nsDirectoryService()
251 : {
252 : /* member initializers and constructor code */
253 : }
254 :
255 : nsDirectoryService::~nsDirectoryService()
256 : {
257 : /* destructor code */
258 : }
259 :
260 : /* void init (); */
261 : NS_IMETHODIMP nsDirectoryService::Init()
262 : {
263 : return NS_ERROR_NOT_IMPLEMENTED;
264 : }
265 :
266 : /* void registerProvider (in nsIDirectoryServiceProvider prov); */
267 : NS_IMETHODIMP nsDirectoryService::RegisterProvider(nsIDirectoryServiceProvider *prov)
268 : {
269 : return NS_ERROR_NOT_IMPLEMENTED;
270 : }
271 :
272 : /* void unregisterProvider (in nsIDirectoryServiceProvider prov); */
273 : NS_IMETHODIMP nsDirectoryService::UnregisterProvider(nsIDirectoryServiceProvider *prov)
274 : {
275 : return NS_ERROR_NOT_IMPLEMENTED;
276 : }
277 :
278 : /* End of implementation class template. */
279 : #endif
280 :
281 :
282 : #endif /* __gen_nsIDirectoryService_h__ */
|