1 : #include "nsIClassInfoImpl.h"
2 : #include "nsIProgrammingLanguage.h"
3 :
4 : NS_IMETHODIMP_(nsrefcnt)
5 262156 : GenericClassInfo::AddRef()
6 : {
7 262156 : return 2;
8 : }
9 :
10 : NS_IMETHODIMP_(nsrefcnt)
11 264899 : GenericClassInfo::Release()
12 : {
13 264899 : return 1;
14 : }
15 :
16 214592 : NS_IMPL_QUERY_INTERFACE1(GenericClassInfo, nsIClassInfo)
17 :
18 : NS_IMETHODIMP
19 11723 : GenericClassInfo::GetInterfaces(PRUint32* countp, nsIID*** array)
20 : {
21 11723 : return mData->getinterfaces(countp, array);
22 : }
23 :
24 : NS_IMETHODIMP
25 181778 : GenericClassInfo::GetHelperForLanguage(PRUint32 language, nsISupports** helper)
26 : {
27 181778 : if (mData->getlanguagehelper)
28 91338 : return mData->getlanguagehelper(language, helper);
29 90440 : return NS_ERROR_NOT_IMPLEMENTED;
30 : }
31 :
32 : NS_IMETHODIMP
33 0 : GenericClassInfo::GetContractID(char** contractid)
34 : {
35 0 : NS_ERROR("GetContractID not implemented");
36 0 : *contractid = NULL;
37 0 : return NS_ERROR_NOT_IMPLEMENTED;
38 : }
39 :
40 : NS_IMETHODIMP
41 0 : GenericClassInfo::GetClassDescription(char** description)
42 : {
43 0 : *description = NULL;
44 0 : return NS_ERROR_NOT_IMPLEMENTED;
45 : }
46 :
47 : NS_IMETHODIMP
48 0 : GenericClassInfo::GetClassID(nsCID** classid)
49 : {
50 0 : NS_ERROR("GetClassID not implemented");
51 0 : *classid = NULL;
52 0 : return NS_ERROR_NOT_IMPLEMENTED;
53 : }
54 :
55 : NS_IMETHODIMP
56 0 : GenericClassInfo::GetImplementationLanguage(PRUint32* language)
57 : {
58 0 : *language = nsIProgrammingLanguage::CPLUSPLUS;
59 0 : return NS_OK;
60 : }
61 :
62 : NS_IMETHODIMP
63 221624 : GenericClassInfo::GetFlags(PRUint32* flags)
64 : {
65 221624 : *flags = mData->flags;
66 221624 : return NS_OK;
67 : }
68 :
69 : NS_IMETHODIMP
70 7375 : GenericClassInfo::GetClassIDNoAlloc(nsCID* aClassIDNoAlloc)
71 : {
72 7375 : *aClassIDNoAlloc = mData->cid;
73 7375 : return NS_OK;
74 : }
|