Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsGenericFactory Class Reference

#include <nsGenericFactory.h>

Inheritance diagram for nsGenericFactory:

nsIGenericFactory nsIClassInfo nsIFactory nsISupports nsISupports

List of all members.

Detailed Description

Most factories follow this simple pattern, so why not just use a function pointer for most creation operations?

Definition at line 49 of file nsGenericFactory.h.

Public Member Functions

void createInstance (in nsISupports aOuter, in nsIIDRef iid,[retval, iid_is(iid)] out nsQIResult result)
NS_IMETHOD CreateInstance (nsISupports *aOuter, REFNSIID aIID, void **aResult)
NS_IMETHOD GetComponentInfo (const nsModuleComponentInfo **infop)
nsISupports getHelperForLanguage (in PRUint32 language)
void getInterfaces (out PRUint32 count,[array, size_is(count), retval] out nsIIDPtr array)
void lockFactory (in PRBool lock)
NS_IMETHOD LockFactory (PRBool aLock)
 nsGenericFactory (const nsModuleComponentInfo *info=NULL)
SetComponentInfo (const nsModuleComponentInfo *info)
 NS_IMETHOD_ (nsrefcnt) Release(void)=0
 NS_IMETHOD_ (nsrefcnt) AddRef(void)=0
NS_IMETHOD QueryInterface (REFNSIID aIID, void **aInstancePtr)=0

Static Public Member Functions

static NS_METHOD Create (nsISupports *outer, const nsIID &aIID, void **aInstancePtr)

Public Attributes

readonly attribute string classDescription
readonly attribute nsCIDPtr classID
readonly attribute nsCID classIDNoAlloc
const PRUint32 CONTENT_NODE = 1 << 6
readonly attribute string contractID
const PRUint32 DOM_OBJECT = 1 << 3
const PRUint32 EAGER_CLASSINFO = 1 << 5
readonly attribute PRUint32 flags
readonly attribute PRUint32 implementationLanguage
const PRUint32 MAIN_THREAD_ONLY = 1 << 2
const PRUint32 PLUGIN_OBJECT = 1 << 4
const PRUint32 RESERVED = 1 << 31
const PRUint32 SINGLETON = 1 << 0
const PRUint32 THREADSAFE = 1 << 1
struct nsISupports_vtblvtbl
struct nsISupports_vtblvtbl

Private Attributes

const nsModuleComponentInfomInfo

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index