1 module org.eclipse.swt.internal.mozilla.nsIComponentRegistrar;
2 
3 import java.lang.all;
4 
5 import org.eclipse.swt.internal.mozilla.Common;
6 import org.eclipse.swt.internal.mozilla.nsID;
7 import org.eclipse.swt.internal.mozilla.nsISupports;
8 import org.eclipse.swt.internal.mozilla.nsIFile;
9 import org.eclipse.swt.internal.mozilla.nsIFactory;
10 import org.eclipse.swt.internal.mozilla.nsISimpleEnumerator;
11 
12 const char[] NS_ICOMPONENTREGISTRAR_IID_STR = "2417cbfe-65ad-48a6-b4b6-eb84db174392";
13 
14 const nsIID NS_ICOMPONENTREGISTRAR_IID= 
15   {0x2417cbfe, 0x65ad, 0x48a6, 
16     [ 0xb4, 0xb6, 0xeb, 0x84, 0xdb, 0x17, 0x43, 0x92 ]};
17 
18 interface nsIComponentRegistrar : nsISupports {
19   static const char[] IID_STR = NS_ICOMPONENTREGISTRAR_IID_STR;
20   static const nsIID IID = NS_ICOMPONENTREGISTRAR_IID;
21 
22 extern(System):
23   nsresult AutoRegister(nsIFile aSpec);
24   nsresult AutoUnregister(nsIFile aSpec);
25   nsresult RegisterFactory(in nsCID * aClass, in char *aClassName, in char *aContractID, nsIFactory aFactory);
26   nsresult UnregisterFactory(in nsCID * aClass, nsIFactory aFactory);
27   nsresult RegisterFactoryLocation(in nsCID * aClass, in char *aClassName, in char *aContractID, nsIFile aFile, in char *aLoaderStr, in char *aType);
28   nsresult UnregisterFactoryLocation(in nsCID * aClass, nsIFile aFile);
29   nsresult IsCIDRegistered(in nsCID * aClass, PRBool *_retval);
30   nsresult IsContractIDRegistered(in char *aContractID, PRBool *_retval);
31   nsresult EnumerateCIDs(nsISimpleEnumerator *_retval);
32   nsresult EnumerateContractIDs(nsISimpleEnumerator *_retval);
33   nsresult CIDToContractID(nsCID * aClass, char **_retval);
34   nsresult ContractIDToCID(in char *aContractID, nsCID * *_retval);
35 }
36