Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIComponentRegistrar.idl
3 : */
4 :
5 : #ifndef __gen_nsIComponentRegistrar_h__
6 : #define __gen_nsIComponentRegistrar_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 nsIFactory; /* forward declaration */
20 :
21 : class nsISimpleEnumerator; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIComponentRegistrar */
25 : #define NS_ICOMPONENTREGISTRAR_IID_STR "2417cbfe-65ad-48a6-b4b6-eb84db174392"
26 :
27 : #define NS_ICOMPONENTREGISTRAR_IID \
28 : {0x2417cbfe, 0x65ad, 0x48a6, \
29 : { 0xb4, 0xb6, 0xeb, 0x84, 0xdb, 0x17, 0x43, 0x92 }}
30 :
31 3 : class NS_NO_VTABLE nsIComponentRegistrar : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ICOMPONENTREGISTRAR_IID)
35 :
36 : /* void autoRegister (in nsIFile aSpec); */
37 : NS_IMETHOD AutoRegister(nsIFile *aSpec) = 0;
38 :
39 : /* void autoUnregister (in nsIFile aSpec); */
40 : NS_IMETHOD AutoUnregister(nsIFile *aSpec) = 0;
41 :
42 : /* void registerFactory (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory); */
43 : NS_IMETHOD RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory) = 0;
44 :
45 : /* void unregisterFactory (in nsCIDRef aClass, in nsIFactory aFactory); */
46 : NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) = 0;
47 :
48 : /* void registerFactoryLocation (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aFile, in string aLoaderStr, in string aType); */
49 : NS_IMETHOD RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType) = 0;
50 :
51 : /* void unregisterFactoryLocation (in nsCIDRef aClass, in nsIFile aFile); */
52 : NS_IMETHOD UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile) = 0;
53 :
54 : /* boolean isCIDRegistered (in nsCIDRef aClass); */
55 : NS_IMETHOD IsCIDRegistered(const nsCID & aClass, bool *_retval) = 0;
56 :
57 : /* boolean isContractIDRegistered (in string aContractID); */
58 : NS_IMETHOD IsContractIDRegistered(const char * aContractID, bool *_retval) = 0;
59 :
60 : /* nsISimpleEnumerator enumerateCIDs (); */
61 : NS_IMETHOD EnumerateCIDs(nsISimpleEnumerator * *_retval) = 0;
62 :
63 : /* nsISimpleEnumerator enumerateContractIDs (); */
64 : NS_IMETHOD EnumerateContractIDs(nsISimpleEnumerator * *_retval) = 0;
65 :
66 : /* string CIDToContractID (in nsCIDRef aClass); */
67 : NS_IMETHOD CIDToContractID(const nsCID & aClass, char * *_retval) = 0;
68 :
69 : /* nsCIDPtr contractIDToCID (in string aContractID); */
70 : NS_IMETHOD ContractIDToCID(const char * aContractID, nsCID **_retval) = 0;
71 :
72 : };
73 :
74 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIComponentRegistrar, NS_ICOMPONENTREGISTRAR_IID)
75 :
76 : /* Use this macro when declaring classes that implement this interface. */
77 : #define NS_DECL_NSICOMPONENTREGISTRAR \
78 : NS_IMETHOD AutoRegister(nsIFile *aSpec) override; \
79 : NS_IMETHOD AutoUnregister(nsIFile *aSpec) override; \
80 : NS_IMETHOD RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory) override; \
81 : NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) override; \
82 : NS_IMETHOD RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType) override; \
83 : NS_IMETHOD UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile) override; \
84 : NS_IMETHOD IsCIDRegistered(const nsCID & aClass, bool *_retval) override; \
85 : NS_IMETHOD IsContractIDRegistered(const char * aContractID, bool *_retval) override; \
86 : NS_IMETHOD EnumerateCIDs(nsISimpleEnumerator * *_retval) override; \
87 : NS_IMETHOD EnumerateContractIDs(nsISimpleEnumerator * *_retval) override; \
88 : NS_IMETHOD CIDToContractID(const nsCID & aClass, char * *_retval) override; \
89 : NS_IMETHOD ContractIDToCID(const char * aContractID, nsCID **_retval) override;
90 :
91 : /* Use this macro when declaring the members of this interface when the
92 : class doesn't implement the interface. This is useful for forwarding. */
93 : #define NS_DECL_NON_VIRTUAL_NSICOMPONENTREGISTRAR \
94 : nsresult AutoRegister(nsIFile *aSpec); \
95 : nsresult AutoUnregister(nsIFile *aSpec); \
96 : nsresult RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory); \
97 : nsresult UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory); \
98 : nsresult RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType); \
99 : nsresult UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile); \
100 : nsresult IsCIDRegistered(const nsCID & aClass, bool *_retval); \
101 : nsresult IsContractIDRegistered(const char * aContractID, bool *_retval); \
102 : nsresult EnumerateCIDs(nsISimpleEnumerator * *_retval); \
103 : nsresult EnumerateContractIDs(nsISimpleEnumerator * *_retval); \
104 : nsresult CIDToContractID(const nsCID & aClass, char * *_retval); \
105 : nsresult ContractIDToCID(const char * aContractID, nsCID **_retval);
106 :
107 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
108 : #define NS_FORWARD_NSICOMPONENTREGISTRAR(_to) \
109 : NS_IMETHOD AutoRegister(nsIFile *aSpec) override { return _to AutoRegister(aSpec); } \
110 : NS_IMETHOD AutoUnregister(nsIFile *aSpec) override { return _to AutoUnregister(aSpec); } \
111 : NS_IMETHOD RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory) override { return _to RegisterFactory(aClass, aClassName, aContractID, aFactory); } \
112 : NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) override { return _to UnregisterFactory(aClass, aFactory); } \
113 : NS_IMETHOD RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType) override { return _to RegisterFactoryLocation(aClass, aClassName, aContractID, aFile, aLoaderStr, aType); } \
114 : NS_IMETHOD UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile) override { return _to UnregisterFactoryLocation(aClass, aFile); } \
115 : NS_IMETHOD IsCIDRegistered(const nsCID & aClass, bool *_retval) override { return _to IsCIDRegistered(aClass, _retval); } \
116 : NS_IMETHOD IsContractIDRegistered(const char * aContractID, bool *_retval) override { return _to IsContractIDRegistered(aContractID, _retval); } \
117 : NS_IMETHOD EnumerateCIDs(nsISimpleEnumerator * *_retval) override { return _to EnumerateCIDs(_retval); } \
118 : NS_IMETHOD EnumerateContractIDs(nsISimpleEnumerator * *_retval) override { return _to EnumerateContractIDs(_retval); } \
119 : NS_IMETHOD CIDToContractID(const nsCID & aClass, char * *_retval) override { return _to CIDToContractID(aClass, _retval); } \
120 : NS_IMETHOD ContractIDToCID(const char * aContractID, nsCID **_retval) override { return _to ContractIDToCID(aContractID, _retval); }
121 :
122 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
123 : #define NS_FORWARD_SAFE_NSICOMPONENTREGISTRAR(_to) \
124 : NS_IMETHOD AutoRegister(nsIFile *aSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoRegister(aSpec); } \
125 : NS_IMETHOD AutoUnregister(nsIFile *aSpec) override { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoUnregister(aSpec); } \
126 : NS_IMETHOD RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFactory(aClass, aClassName, aContractID, aFactory); } \
127 : NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterFactory(aClass, aFactory); } \
128 : NS_IMETHOD RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType) override { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFactoryLocation(aClass, aClassName, aContractID, aFile, aLoaderStr, aType); } \
129 : NS_IMETHOD UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile) override { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterFactoryLocation(aClass, aFile); } \
130 : NS_IMETHOD IsCIDRegistered(const nsCID & aClass, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCIDRegistered(aClass, _retval); } \
131 : NS_IMETHOD IsContractIDRegistered(const char * aContractID, bool *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->IsContractIDRegistered(aContractID, _retval); } \
132 : NS_IMETHOD EnumerateCIDs(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCIDs(_retval); } \
133 : NS_IMETHOD EnumerateContractIDs(nsISimpleEnumerator * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateContractIDs(_retval); } \
134 : NS_IMETHOD CIDToContractID(const nsCID & aClass, char * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->CIDToContractID(aClass, _retval); } \
135 : NS_IMETHOD ContractIDToCID(const char * aContractID, nsCID **_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ContractIDToCID(aContractID, _retval); }
136 :
137 : #if 0
138 : /* Use the code below as a template for the implementation class for this interface. */
139 :
140 : /* Header file */
141 : class nsComponentRegistrar : public nsIComponentRegistrar
142 : {
143 : public:
144 : NS_DECL_ISUPPORTS
145 : NS_DECL_NSICOMPONENTREGISTRAR
146 :
147 : nsComponentRegistrar();
148 :
149 : private:
150 : ~nsComponentRegistrar();
151 :
152 : protected:
153 : /* additional members */
154 : };
155 :
156 : /* Implementation file */
157 : NS_IMPL_ISUPPORTS(nsComponentRegistrar, nsIComponentRegistrar)
158 :
159 : nsComponentRegistrar::nsComponentRegistrar()
160 : {
161 : /* member initializers and constructor code */
162 : }
163 :
164 : nsComponentRegistrar::~nsComponentRegistrar()
165 : {
166 : /* destructor code */
167 : }
168 :
169 : /* void autoRegister (in nsIFile aSpec); */
170 : NS_IMETHODIMP nsComponentRegistrar::AutoRegister(nsIFile *aSpec)
171 : {
172 : return NS_ERROR_NOT_IMPLEMENTED;
173 : }
174 :
175 : /* void autoUnregister (in nsIFile aSpec); */
176 : NS_IMETHODIMP nsComponentRegistrar::AutoUnregister(nsIFile *aSpec)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* void registerFactory (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory); */
182 : NS_IMETHODIMP nsComponentRegistrar::RegisterFactory(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFactory *aFactory)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 :
187 : /* void unregisterFactory (in nsCIDRef aClass, in nsIFactory aFactory); */
188 : NS_IMETHODIMP nsComponentRegistrar::UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory)
189 : {
190 : return NS_ERROR_NOT_IMPLEMENTED;
191 : }
192 :
193 : /* void registerFactoryLocation (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aFile, in string aLoaderStr, in string aType); */
194 : NS_IMETHODIMP nsComponentRegistrar::RegisterFactoryLocation(const nsCID & aClass, const char * aClassName, const char * aContractID, nsIFile *aFile, const char * aLoaderStr, const char * aType)
195 : {
196 : return NS_ERROR_NOT_IMPLEMENTED;
197 : }
198 :
199 : /* void unregisterFactoryLocation (in nsCIDRef aClass, in nsIFile aFile); */
200 : NS_IMETHODIMP nsComponentRegistrar::UnregisterFactoryLocation(const nsCID & aClass, nsIFile *aFile)
201 : {
202 : return NS_ERROR_NOT_IMPLEMENTED;
203 : }
204 :
205 : /* boolean isCIDRegistered (in nsCIDRef aClass); */
206 : NS_IMETHODIMP nsComponentRegistrar::IsCIDRegistered(const nsCID & aClass, bool *_retval)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* boolean isContractIDRegistered (in string aContractID); */
212 : NS_IMETHODIMP nsComponentRegistrar::IsContractIDRegistered(const char * aContractID, bool *_retval)
213 : {
214 : return NS_ERROR_NOT_IMPLEMENTED;
215 : }
216 :
217 : /* nsISimpleEnumerator enumerateCIDs (); */
218 : NS_IMETHODIMP nsComponentRegistrar::EnumerateCIDs(nsISimpleEnumerator * *_retval)
219 : {
220 : return NS_ERROR_NOT_IMPLEMENTED;
221 : }
222 :
223 : /* nsISimpleEnumerator enumerateContractIDs (); */
224 : NS_IMETHODIMP nsComponentRegistrar::EnumerateContractIDs(nsISimpleEnumerator * *_retval)
225 : {
226 : return NS_ERROR_NOT_IMPLEMENTED;
227 : }
228 :
229 : /* string CIDToContractID (in nsCIDRef aClass); */
230 : NS_IMETHODIMP nsComponentRegistrar::CIDToContractID(const nsCID & aClass, char * *_retval)
231 : {
232 : return NS_ERROR_NOT_IMPLEMENTED;
233 : }
234 :
235 : /* nsCIDPtr contractIDToCID (in string aContractID); */
236 : NS_IMETHODIMP nsComponentRegistrar::ContractIDToCID(const char * aContractID, nsCID **_retval)
237 : {
238 : return NS_ERROR_NOT_IMPLEMENTED;
239 : }
240 :
241 : /* End of implementation class template. */
242 : #endif
243 :
244 :
245 : #endif /* __gen_nsIComponentRegistrar_h__ */
|