nsicomponentmanagerobsolete.h
来自「linux下的一款播放器」· C头文件 代码 · 共 603 行 · 第 1/3 页
H
603 行
/* * DO NOT EDIT. THIS FILE IS GENERATED FROM d:/mozilla/xpcom/components/nsIComponentManagerObsolete.idl */#ifndef __gen_nsIComponentManagerObsolete_h__#define __gen_nsIComponentManagerObsolete_h__#ifndef __gen_nsISupports_h__#include "nsISupports.h"#endif#ifndef __gen_nsIFactory_h__#include "nsIFactory.h"#endif/* For IDL files that don't want to include root IDL files. */#ifndef NS_NO_VTABLE#define NS_NO_VTABLE#endifclass nsIFile; /* forward declaration */class nsIEnumerator; /* forward declaration *//* starting interface: nsIComponentManagerObsolete */#define NS_ICOMPONENTMANAGEROBSOLETE_IID_STR "8458a740-d5dc-11d2-92fb-00e09805570f"#define NS_ICOMPONENTMANAGEROBSOLETE_IID \ {0x8458a740, 0xd5dc, 0x11d2, \ { 0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f }}class NS_NO_VTABLE nsIComponentManagerObsolete : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGEROBSOLETE_IID) /** * findFactory * * Returns the factory object that can be used to create instances of * CID aClass * * @param aClass The classid of the factory that is being requested */ /* nsIFactory findFactory (in nsCIDRef aClass); */ NS_IMETHOD FindFactory(const nsCID & aClass, nsIFactory **_retval) = 0; /** * getClassObject * * @param aClass : CID of the class whose class object is requested * @param aIID : IID of an interface that the class object is known to * to implement. nsISupports and nsIFactory are known to * be implemented by the class object. */ /* [noscript] voidPtr getClassObject (in nsCIDRef aClass, in nsIIDRef aIID); */ NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval) = 0; /** * contractIDToClassID * * Get the ClassID for a given ContractID. Many ClassIDs may implement a * ContractID. In such a situation, this returns the preferred ClassID, which * happens to be the last registered ClassID. * * @param aContractID : Contractid for which ClassID is requested * @return aClass : ClassID return */ /* [notxpcom] nsresult contractIDToClassID (in string aContractID, out nsCID aClass); */ NS_IMETHOD_(nsresult) ContractIDToClassID(const char *aContractID, nsCID *aClass) = 0; /** * classIDToContractid * * Get the ContractID for a given ClassID. A ClassIDs may implement multiple * ContractIDs. This function return the last registered ContractID. * * @param aClass : ClassID for which ContractID is requested. * @return aClassName : returns class name asssociated with aClass * @return : ContractID last registered for aClass */ /* string CLSIDToContractID (in nsCIDRef aClass, out string aClassName); */ NS_IMETHOD CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval) = 0; /** * createInstance * * Create an instance of the CID aClass and return the interface aIID. * * @param aClass : ClassID of object instance requested * @param aDelegate : Used for aggregation * @param aIID : IID of interface requested */ /* [noscript] voidPtr createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID); */ NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval) = 0; /** * createInstanceByContractID * * Create an instance of the CID that implements aContractID and return the * interface aIID. This is a convenience function that effectively does * ContractIDToClassID() followed by CreateInstance(). * * @param aContractID : aContractID of object instance requested * @param aDelegate : Used for aggregation * @param aIID : IID of interface requested */ /* [noscript] voidPtr createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef IID); */ NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval) = 0; /** * registryLocationForSpec * * Given a file specification, return the registry representation of * the filename. Files that are found relative to the components * directory will have a registry representation * "rel:<relative-native-path>" while filenames that are not, will have * "abs:<full-native-path>". */ /* string registryLocationForSpec (in nsIFile aSpec); */ NS_IMETHOD RegistryLocationForSpec(nsIFile *aSpec, char **_retval) = 0; /** * specForRegistyLocation * * Create a file specification for the registry representation (rel:/abs:) * got via registryLocationForSpec. */ /* nsIFile specForRegistryLocation (in string aLocation); */ NS_IMETHOD SpecForRegistryLocation(const char *aLocation, nsIFile **_retval) = 0; /** * registerFactory * * Register a factory and ContractID associated with CID aClass * * @param aClass : CID of object * @param aClassName : Class Name of CID * @param aContractID : ContractID associated with CID aClass * @param aFactory : Factory that will be registered for CID aClass * @param aReplace : Boolean that indicates whether to replace a previous * registration for the CID aClass. */ /* void registerFactory (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory, in boolean aReplace); */ NS_IMETHOD RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace) = 0; /** * registerComponent * * Register a native dll module via its registry representation as returned * by registryLocationForSpec() as the container of CID implemenation * aClass and associate aContractID and aClassName to the CID aClass. Native * dll component type is assumed. * * @param aClass : CID implemenation contained in module * @param aClassName : Class name associated with CID aClass * @param aContractID : ContractID associated with CID aClass * @param aLocation : Location of module (dll). Format of this is the * registry representation as returned by * registryLocationForSpec() * @param aReplace : Boolean that indicates whether to replace a previous * module registration for aClass. * @param aPersist : Remember this registration across sessions. */ /* void registerComponent (in nsCIDRef aClass, in string aClassName, in string aContractID, in string aLocation, in boolean aReplace, in boolean aPersist); */ NS_IMETHOD RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist) = 0; /** * registerComponentWithType * * Register a module's location via its registry representation * as returned by registryLocationForSpec() as the container of CID implemenation * aClass of type aType and associate aContractID and aClassName to the CID aClass. * * @param aClass : CID implemenation contained in module * @param aClassName : Class name associated with CID aClass * @param aContractID : ContractID associated with CID aClass * @param aSpec : Filename spec for module's location. * @param aLocation : Location of module of type aType. Format of this string * is the registry representation as returned by * registryLocationForSpec() * @param aReplace : Boolean that indicates whether to replace a previous * loader registration for aClass. * @param aPersist : Remember this registration across sessions. * @param aType : Component Type of CID aClass. */ /* void registerComponentWithType (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aSpec, in string aLocation, in boolean aReplace, in boolean aPersist, in string aType); */ NS_IMETHOD RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType) = 0; /** * registerComponentSpec * * Register a native dll module via its file specification as the container * of CID implemenation aClass and associate aContractID and aClassName to the * CID aClass. Native dll component type is assumed. * * @param aClass : CID implemenation contained in module * @param aClassName : Class name associated with CID aClass * @param aContractID : ContractID associated with CID aClass * @param aLibrary : File specification Location of module (dll).
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?