Core

These interfaces form the core set of XPCOM interfaces.

Jump to:


Basic Types

The following interfaces are for common XPCOM types. The various nsISupports interfaces are wrappers around simple types which can be based into methods that require an XPCOM object.

nsIAtom
nsIDataType
nsIException
nsISupports
nsISupportsArray
nsISupportsCString
nsISupportsChar
nsISupportsDouble
nsISupportsFloat
nsISupportsID
nsISupportsInterfacePointer
nsISupportsPRBool
nsISupportsPRInt16
nsISupportsPRInt32
nsISupportsPRInt64
nsISupportsPRTime
nsISupportsPRUint16
nsISupportsPRUint32
nsISupportsPRUint64
nsISupportsPRUint8
nsISupportsPrimitive
nsISupportsString
nsISupportsVoid
nsISupportsWeakReference
nsIVariant
nsIWeakReference
nsIWritableVariant

Basic Components

The following components implement the basic types above.

@mozilla.org/supports-PRBool;1
@mozilla.org/supports-PRInt16;1
@mozilla.org/supports-PRInt32;1
@mozilla.org/supports-PRInt64;1
@mozilla.org/supports-PRTime;1
@mozilla.org/supports-PRUint16;1
@mozilla.org/supports-PRUint32;1
@mozilla.org/supports-PRUint64;1
@mozilla.org/supports-PRUint8;1
@mozilla.org/supports-array;1
@mozilla.org/supports-char;1
@mozilla.org/supports-cstring;1
@mozilla.org/supports-double;1
@mozilla.org/supports-float;1
@mozilla.org/supports-id;1
@mozilla.org/supports-interface-pointer;1
@mozilla.org/supports-string;1
@mozilla.org/supports-void;1
@mozilla.org/variant;1

Data Structures

The following interfaces are for some common XPCOM data structures. When using native code, a number of non-XPCOM data structures for handling strings, hashtables and so on, may also be used, some of which are also documented.

nsIArray
nsICollection
nsIDictionary
nsIMutableArray
nsIPersistentProperties
nsIProperties
nsIProperty
nsIPropertyBag
nsIPropertyElement

Data Structure Components

The following components implement the data structures above.

@mozilla.org/array;1
@mozilla.org/dictionary;1
@mozilla.org/persistent-properties;1
@mozilla.org/properties;1

Enumerations

These interfaces are used for enumerating or iterating over collections of items. You should use nsISimpleEnumerator when you need a basic enumerator.

nsIBidirectionalEnumerator
nsIBidirectionalIterator
nsIEnumerator
nsIForwardIterator
nsIInputIterator
nsIOutputIterator
nsIRandomAccessIterator
nsISimpleEnumerator
nsIStringEnumerator
nsIUTF8StringEnumerator

Component Management

These interfaces are used to manage installed XPCOM components and services. They can be used to get information about installed components and create instances of them. You can create components using nsIComponentManager and create services with nsIServiceManager. Additional component related information can be obtained through script with XPConnect.

nsICategoryManager
nsIChromeRegistry
nsIClassInfo
nsIComponentLoader
nsIComponentLoaderManager
nsIComponentManager
nsIComponentManagerObsolete
nsIComponentRegistrar
nsIFactory
nsIInterfaceInfo
nsIInterfaceInfoManager
nsIInterfaceInfoSuperManager
nsIInterfaceInfoToIDL
nsIInterfaceRequestor
nsIModule
nsINativeComponentLoader
nsIScriptableInterfaceInfo
nsIScriptableInterfacesByID
nsIServiceManager
nsIXPTLoader
nsIXPTLoaderSink
nsIXULChromeRegistry
nsIXULOverlayProvider

@mozilla.org/categorymanager;1
@mozilla.org/chrome/chrome-native-theme;1
@mozilla.org/chrome/chrome-registry;1
@mozilla.org/generic-factory;1
@mozilla.org/interfaceinfotoidl;1
@mozilla.org/registry;1
@mozilla.org/scriptableInterfaceInfo;1
@mozilla.org/xpti/interfaceinfomanager-service;1


Additional Services

XPCOM provides a number of other services for managing memory and threads.

nsIAtomService
nsIDebug
nsIEnvironment
nsIErrorService
nsIEventQueue
nsIEventQueueService
nsIEventTarget
nsIExceptionManager
nsIExceptionProvider
nsIExceptionService
nsIMemory
nsIObserver
nsIObserverService
nsIProcess
nsIProgrammingLanguage
nsIRecyclingAllocator
nsIRunnable
nsISerializable
nsIStackFrame
nsIStringService
nsIThread
nsIThreadJSContextStack
nsIThreadPool
nsITimeRecorder
nsITimelineService
nsITimer
nsITimerCallback
nsITimerInternal
nsITimerManager
nsITraceRefcnt

XPCOM Services

The following components implement various XPCOM services.

@mozilla.org/arena;1
@mozilla.org/atom-service;1
@mozilla.org/event-queue-service;1
@mozilla.org/event-queue;1
@mozilla.org/exceptionservice;1
@mozilla.org/observer-service;1
@mozilla.org/offline-startup;1
@mozilla.org/process/util;1
@mozilla.org/recycling-allocator;1
@mozilla.org/thread-pool;1
@mozilla.org/thread;1
@mozilla.org/timer/manager;1
@mozilla.org/timer;1
@mozilla.org/winhooks;1
@mozilla.org/xpcom/debug;1
@mozilla.org/xpcom/dynamic-test;1
@mozilla.org/xpcom/error-service;1
@mozilla.org/xpcom/memory-service;1
@mozilla.org/xpcom/observer;1

Miscellaneous Interfaces

Some additional interfaces. nsIConsoleService can be used to log error messages. '@mozilla.org/sample;1' is a sample XPCOM component, which implements nsISample.

nsIConsoleListener
nsIConsoleMessage
nsIConsoleService
nsIFastLoadFileControl
nsIFastLoadFileIO
nsIFastLoadReadControl
nsIFastLoadService
nsIFastLoadWriteControl
nsISample

@mozilla.org/fast-load-service;1
@mozilla.org/jssample;1
@mozilla.org/sample;1

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com