Interface nsIClassInfoType

Provides information about a specific implementation class. If you want your class to implement nsIClassInfo, see nsIClassInfoImpl.h for instructions--you most likely do not want to inherit from nsIClassInfo.

Hierarchy

Properties

classDescription: string

A human readable string naming the class, or null/void.

classID: nsCIDPtr

A class ID through which an instance of this class can be created (or accessed as a service, if |flags & SINGLETON|), or null.

classIDNoAlloc: nsCID

Also a class ID through which an instance of this class can be created (or accessed as a service, if |flags & SINGLETON|). If the class does not have a CID, it should return NS_ERROR_NOT_AVAILABLE. This attribute exists so C++ callers can avoid allocating and freeing a CID, as would happen if they used classID.

contractID: string

A contract ID through which an instance of this class can be created (or accessed as a service, if |flags & SINGLETON|), or null/void.

flags: uint32_t

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

  • Return an object to assist XPConnect in supplying JavaScript-specific behavior to callers of the instance object, or null if not needed.

    Returns nsIXPCScriptable

Generated using TypeDoc