Mercurial > projects > dwt-win
comparison dwt/internal/mozilla/nsIComponentRegistrar.d @ 327:b0d7eb5bd76c
Adding Mozilla XPCOM interfaces from dwt-linux to dwt-win
author | John Reimer <terminal.node@gmail.com> |
---|---|
date | Fri, 02 Jan 2009 17:45:10 -0800 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
326:e4d29367b1fa | 327:b0d7eb5bd76c |
---|---|
1 module dwt.internal.mozilla.nsIComponentRegistrar; | |
2 | |
3 import dwt.internal.mozilla.Common; | |
4 import dwt.internal.mozilla.nsID; | |
5 import dwt.internal.mozilla.nsISupports; | |
6 import dwt.internal.mozilla.nsIFile; | |
7 import dwt.internal.mozilla.nsIFactory; | |
8 import dwt.internal.mozilla.nsISimpleEnumerator; | |
9 | |
10 const char[] NS_ICOMPONENTREGISTRAR_IID_STR = "2417cbfe-65ad-48a6-b4b6-eb84db174392"; | |
11 | |
12 const nsIID NS_ICOMPONENTREGISTRAR_IID= | |
13 {0x2417cbfe, 0x65ad, 0x48a6, | |
14 [ 0xb4, 0xb6, 0xeb, 0x84, 0xdb, 0x17, 0x43, 0x92 ]}; | |
15 | |
16 interface nsIComponentRegistrar : nsISupports { | |
17 static const char[] IID_STR = NS_ICOMPONENTREGISTRAR_IID_STR; | |
18 static const nsIID IID = NS_ICOMPONENTREGISTRAR_IID; | |
19 | |
20 extern(System): | |
21 nsresult AutoRegister(nsIFile aSpec); | |
22 nsresult AutoUnregister(nsIFile aSpec); | |
23 nsresult RegisterFactory(nsCID * aClass, char *aClassName, char *aContractID, nsIFactory aFactory); | |
24 nsresult UnregisterFactory(nsCID * aClass, nsIFactory aFactory); | |
25 nsresult RegisterFactoryLocation(nsCID * aClass, char *aClassName, char *aContractID, nsIFile aFile, char *aLoaderStr, char *aType); | |
26 nsresult UnregisterFactoryLocation(nsCID * aClass, nsIFile aFile); | |
27 nsresult IsCIDRegistered(nsCID * aClass, PRBool *_retval); | |
28 nsresult IsContractIDRegistered(char *aContractID, PRBool *_retval); | |
29 nsresult EnumerateCIDs(nsISimpleEnumerator *_retval); | |
30 nsresult EnumerateContractIDs(nsISimpleEnumerator *_retval); | |
31 nsresult CIDToContractID(nsCID * aClass, char **_retval); | |
32 nsresult ContractIDToCID(char *aContractID, nsCID * *_retval); | |
33 } | |
34 |