OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * DO NOT EDIT. THIS FILE IS GENERATED FROM c:/builds/tinderbox/XR-Mozilla1.8.0
-Release/WINNT_5.2_Depend/mozilla/xpcom/components/nsIComponentManager.idl |
| 3 */ |
| 4 |
| 5 #ifndef __gen_nsIComponentManager_h__ |
| 6 #define __gen_nsIComponentManager_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 nsIFactory; /* forward declaration */ |
| 18 |
| 19 |
| 20 /* starting interface: nsIComponentManager */ |
| 21 #define NS_ICOMPONENTMANAGER_IID_STR "a88e5a60-205a-4bb1-94e1-2628daf51eae" |
| 22 |
| 23 #define NS_ICOMPONENTMANAGER_IID \ |
| 24 {0xa88e5a60, 0x205a, 0x4bb1, \ |
| 25 { 0x94, 0xe1, 0x26, 0x28, 0xda, 0xf5, 0x1e, 0xae }} |
| 26 |
| 27 class NS_NO_VTABLE nsIComponentManager : public nsISupports { |
| 28 public: |
| 29 |
| 30 NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGER_IID) |
| 31 |
| 32 /** |
| 33 * getClassObject |
| 34 * |
| 35 * Returns the factory object that can be used to create instances of |
| 36 * CID aClass |
| 37 * |
| 38 * @param aClass The classid of the factory that is being requested |
| 39 */ |
| 40 /* void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID),
retval] out nsQIResult result); */ |
| 41 NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *re
sult) = 0; |
| 42 |
| 43 /** |
| 44 * getClassObjectByContractID |
| 45 * |
| 46 * Returns the factory object that can be used to create instances of |
| 47 * CID aClass |
| 48 * |
| 49 * @param aClass The classid of the factory that is being requested |
| 50 */ |
| 51 /* void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [
iid_is (aIID), retval] out nsQIResult result); */ |
| 52 NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & a
IID, void * *result) = 0; |
| 53 |
| 54 /** |
| 55 * createInstance |
| 56 * |
| 57 * Create an instance of the CID aClass and return the interface aIID. |
| 58 * |
| 59 * @param aClass : ClassID of object instance requested |
| 60 * @param aDelegate : Used for aggregation |
| 61 * @param aIID : IID of interface requested |
| 62 */ |
| 63 /* void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIID
Ref aIID, [iid_is (aIID), retval] out nsQIResult result); */ |
| 64 NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const
nsIID & aIID, void * *result) = 0; |
| 65 |
| 66 /** |
| 67 * createInstanceByContractID |
| 68 * |
| 69 * Create an instance of the CID that implements aContractID and return the |
| 70 * interface aIID. |
| 71 * |
| 72 * @param aContractID : aContractID of object instance requested |
| 73 * @param aDelegate : Used for aggregation |
| 74 * @param aIID : IID of interface requested |
| 75 */ |
| 76 /* void createInstanceByContractID (in string aContractID, in nsISupports aDel
egate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */ |
| 77 NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aD
elegate, const nsIID & aIID, void * *result) = 0; |
| 78 |
| 79 }; |
| 80 |
| 81 /* Use this macro when declaring classes that implement this interface. */ |
| 82 #define NS_DECL_NSICOMPONENTMANAGER \ |
| 83 NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *re
sult); \ |
| 84 NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & a
IID, void * *result); \ |
| 85 NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const
nsIID & aIID, void * *result); \ |
| 86 NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aD
elegate, const nsIID & aIID, void * *result); |
| 87 |
| 88 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object. */ |
| 89 #define NS_FORWARD_NSICOMPONENTMANAGER(_to) \ |
| 90 NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *re
sult) { return _to GetClassObject(aClass, aIID, result); } \ |
| 91 NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & a
IID, void * *result) { return _to GetClassObjectByContractID(aContractID, aIID,
result); } \ |
| 92 NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const
nsIID & aIID, void * *result) { return _to CreateInstance(aClass, aDelegate, aII
D, result); } \ |
| 93 NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aD
elegate, const nsIID & aIID, void * *result) { return _to CreateInstanceByContra
ctID(aContractID, aDelegate, aIID, result); } |
| 94 |
| 95 /* Use this macro to declare functions that forward the behavior of this interfa
ce to another object in a safe way. */ |
| 96 #define NS_FORWARD_SAFE_NSICOMPONENTMANAGER(_to) \ |
| 97 NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *re
sult) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObject(aClass, aIID,
result); } \ |
| 98 NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & a
IID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObject
ByContractID(aContractID, aIID, result); } \ |
| 99 NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const
nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->Creat
eInstance(aClass, aDelegate, aIID, result); } \ |
| 100 NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aD
elegate, const nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINT
ER : _to->CreateInstanceByContractID(aContractID, aDelegate, aIID, result); } |
| 101 |
| 102 #if 0 |
| 103 /* Use the code below as a template for the implementation class for this interf
ace. */ |
| 104 |
| 105 /* Header file */ |
| 106 class nsComponentManager : public nsIComponentManager |
| 107 { |
| 108 public: |
| 109 NS_DECL_ISUPPORTS |
| 110 NS_DECL_NSICOMPONENTMANAGER |
| 111 |
| 112 nsComponentManager(); |
| 113 |
| 114 private: |
| 115 ~nsComponentManager(); |
| 116 |
| 117 protected: |
| 118 /* additional members */ |
| 119 }; |
| 120 |
| 121 /* Implementation file */ |
| 122 NS_IMPL_ISUPPORTS1(nsComponentManager, nsIComponentManager) |
| 123 |
| 124 nsComponentManager::nsComponentManager() |
| 125 { |
| 126 /* member initializers and constructor code */ |
| 127 } |
| 128 |
| 129 nsComponentManager::~nsComponentManager() |
| 130 { |
| 131 /* destructor code */ |
| 132 } |
| 133 |
| 134 /* void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), re
tval] out nsQIResult result); */ |
| 135 NS_IMETHODIMP nsComponentManager::GetClassObject(const nsCID & aClass, const nsI
ID & aIID, void * *result) |
| 136 { |
| 137 return NS_ERROR_NOT_IMPLEMENTED; |
| 138 } |
| 139 |
| 140 /* void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [ii
d_is (aIID), retval] out nsQIResult result); */ |
| 141 NS_IMETHODIMP nsComponentManager::GetClassObjectByContractID(const char *aContra
ctID, const nsIID & aIID, void * *result) |
| 142 { |
| 143 return NS_ERROR_NOT_IMPLEMENTED; |
| 144 } |
| 145 |
| 146 /* void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRe
f aIID, [iid_is (aIID), retval] out nsQIResult result); */ |
| 147 NS_IMETHODIMP nsComponentManager::CreateInstance(const nsCID & aClass, nsISuppor
ts *aDelegate, const nsIID & aIID, void * *result) |
| 148 { |
| 149 return NS_ERROR_NOT_IMPLEMENTED; |
| 150 } |
| 151 |
| 152 /* void createInstanceByContractID (in string aContractID, in nsISupports aDeleg
ate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */ |
| 153 NS_IMETHODIMP nsComponentManager::CreateInstanceByContractID(const char *aContra
ctID, nsISupports *aDelegate, const nsIID & aIID, void * *result) |
| 154 { |
| 155 return NS_ERROR_NOT_IMPLEMENTED; |
| 156 } |
| 157 |
| 158 /* End of implementation class template. */ |
| 159 #endif |
| 160 |
| 161 #ifdef MOZILLA_INTERNAL_API |
| 162 #include "nsComponentManagerUtils.h" |
| 163 #endif |
| 164 |
| 165 #endif /* __gen_nsIComponentManager_h__ */ |
OLD | NEW |