PageRenderTime 43ms CodeModel.GetById 20ms app.highlight 5ms RepoModel.GetById 15ms app.codeStats 1ms

/gecko_api/include/nsIComponentManager.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 167 lines | 76 code | 33 blank | 58 comment | 0 complexity | 114bedfe5adf8c3c7c186f41788022e7 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_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
 17class 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
 27class NS_NO_VTABLE NS_SCRIPTABLE nsIComponentManager : public nsISupports {
 28 public: 
 29
 30  NS_DECLARE_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_SCRIPTABLE NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result) = 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_SCRIPTABLE NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, 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 nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
 64  NS_SCRIPTABLE 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 aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
 77  NS_SCRIPTABLE NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result) = 0;
 78
 79};
 80
 81  NS_DEFINE_STATIC_IID_ACCESSOR(nsIComponentManager, NS_ICOMPONENTMANAGER_IID)
 82
 83/* Use this macro when declaring classes that implement this interface. */
 84#define NS_DECL_NSICOMPONENTMANAGER \
 85  NS_SCRIPTABLE NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result); \
 86  NS_SCRIPTABLE NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, void * *result); \
 87  NS_SCRIPTABLE NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *result); \
 88  NS_SCRIPTABLE NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result); 
 89
 90/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 91#define NS_FORWARD_NSICOMPONENTMANAGER(_to) \
 92  NS_SCRIPTABLE NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result) { return _to GetClassObject(aClass, aIID, result); } \
 93  NS_SCRIPTABLE NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, void * *result) { return _to GetClassObjectByContractID(aContractID, aIID, result); } \
 94  NS_SCRIPTABLE NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *result) { return _to CreateInstance(aClass, aDelegate, aIID, result); } \
 95  NS_SCRIPTABLE NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result) { return _to CreateInstanceByContractID(aContractID, aDelegate, aIID, result); } 
 96
 97/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 98#define NS_FORWARD_SAFE_NSICOMPONENTMANAGER(_to) \
 99  NS_SCRIPTABLE NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObject(aClass, aIID, result); } \
100  NS_SCRIPTABLE NS_IMETHOD GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObjectByContractID(aContractID, aIID, result); } \
101  NS_SCRIPTABLE NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(aClass, aDelegate, aIID, result); } \
102  NS_SCRIPTABLE NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceByContractID(aContractID, aDelegate, aIID, result); } 
103
104#if 0
105/* Use the code below as a template for the implementation class for this interface. */
106
107/* Header file */
108class nsComponentManager : public nsIComponentManager
109{
110public:
111  NS_DECL_ISUPPORTS
112  NS_DECL_NSICOMPONENTMANAGER
113
114  nsComponentManager();
115
116private:
117  ~nsComponentManager();
118
119protected:
120  /* additional members */
121};
122
123/* Implementation file */
124NS_IMPL_ISUPPORTS1(nsComponentManager, nsIComponentManager)
125
126nsComponentManager::nsComponentManager()
127{
128  /* member initializers and constructor code */
129}
130
131nsComponentManager::~nsComponentManager()
132{
133  /* destructor code */
134}
135
136/* void getClassObject (in nsCIDRef aClass, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
137NS_IMETHODIMP nsComponentManager::GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *result)
138{
139    return NS_ERROR_NOT_IMPLEMENTED;
140}
141
142/* void getClassObjectByContractID (in string aContractID, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
143NS_IMETHODIMP nsComponentManager::GetClassObjectByContractID(const char *aContractID, const nsIID & aIID, void * *result)
144{
145    return NS_ERROR_NOT_IMPLEMENTED;
146}
147
148/* void createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
149NS_IMETHODIMP nsComponentManager::CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *result)
150{
151    return NS_ERROR_NOT_IMPLEMENTED;
152}
153
154/* void createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef aIID, [iid_is (aIID), retval] out nsQIResult result); */
155NS_IMETHODIMP nsComponentManager::CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & aIID, void * *result)
156{
157    return NS_ERROR_NOT_IMPLEMENTED;
158}
159
160/* End of implementation class template. */
161#endif
162
163#ifdef MOZILLA_INTERNAL_API
164#include "nsComponentManagerUtils.h"
165#endif
166
167#endif /* __gen_nsIComponentManager_h__ */