nsIClassInfo

IID:986c11d0-f340-11d4-9075-0010a4e73d9a
Inherits From:nsISupports
Status:FROZEN

Provides information about a specific implementation class

This interface is implemented by the following components:


Constants

Bitflags for 'flags' attribute.
PRUint32 SINGLETON = 1
PRUint32 THREADSAFE = 2
PRUint32 MAIN_THREAD_ONLY = 4
PRUint32 DOM_OBJECT = 8
PRUint32 PLUGIN_OBJECT = 16
PRUint32 EAGER_CLASSINFO = 32
'flags' attribute bitflag: whether objects of this type implement nsIContent.
PRUint32 CONTENT_NODE = 64
PRUint32 RESERVED = -2147483648

Properties

readonly char* classDescription

A human readable string naming the class, or null.

readonly nsCIDPtr* classID

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

[notxpcom] readonly nsCID classIDNoAlloc

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.

readonly char* contractID

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

readonly PRUint32 flags

readonly PRUint32 implementationLanguage

Return language type from list in nsIProgrammingLanguage


Methods

nsISupports getHelperForLanguage ( PRUint32 language ) void getInterfaces ( out PRUint32 count , out nsIIDPtr array )

nsISupports getHelperForLanguage ( PRUint32 language )

Get a language mapping specific helper object that may assist in using objects of this class in a specific lanaguage. For instance, if asked for the helper for nsIProgrammingLanguage::JAVASCRIPT this might return an object that can be QI'd into the nsIXPCScriptable interface to assist XPConnect in supplying JavaScript specific behavior to callers of the instance object.

See: nsIProgrammingLanguage.idl

Should return null if no helper available for given language.

Arguments:
language

void getInterfaces ( out PRUint32 count , out nsIIDPtr array )

Get an ordered list of the interface ids that instances of the class promise to implement. Note that nsISupports is an implicit member of any such list and need not be included.

Should set *count = 0 and *array = null and return NS_OK if getting the list is not supported.

Arguments:
count
array

References

This interface is the type of the following properties:

nsIXPCNativeCallContext.CalleeClassInfo

This interface is passed as an argument to the following methods:

nsIXPCSecurityManager.CanAccess, nsIXPCSecurityManager.CanCreateWrapper, nsIXPConnect.getWrappedNativePrototype, nsIXPConnect.restoreWrappedNativePrototype

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com