Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIObserver Interface Reference

This interface is implemented by an object that wants to observe an event corresponding to a topic. More...

import "nsIObserver.idl";

Inherits nsISupports.

Inherited by CMfcEmbedApp, CnsIObserServ, CTestEmbedApp, EditorShutdownObserver, GeckoContainer, imgCache, jsdASObserver, LayoutShutdownObserver, LocalStoreImpl, mozJSComponentLoader, mozMySpell, mozPersonalDictionary, mozStorageService, mozXMLTerminal, NS_COM, NS_GFX, nsAbAddressCollecter, nsAbDirectoryDataSource, nsAbView, nsAccessibilityService, nsAccessProxy, nsAppShellService, nsAppStartup, nsAppStartupNotifier, nsAutoCompleteCollector, nsAutoConfig, nsCacheProfilePrefObserver, nsCharsetMenuObserver, nsChromeRegistry, nsChromeRegistry, nsClientAuthRememberService, nsClipboard, nsClipboard, nsContentBlocker, nsContentHTTPStartup, nsCookiePermission, nsCookieService, nsDNSService, nsDocAccessible, nsDocLoadObserver, nsDOMScriptObjectFactory, nsDOMStorageManager, nsDownload, nsDownloadManager, nsDownloadManager, nsDragService, nsDragService, nsEditorParserObserver, nsEmbedGlobalHistory, nsEventStateManager, nsExceptionService, nsExternalHelperAppService, nsFolderCharsetObserver, nsFontCleanupObserver, nsFontCleanupObserver, nsFontCleanupObserver, nsFormHistory, nsFormHistory, nsFtpProtocolHandler, nsGlobalHistory, nsGlobalWindow, nsGlyphTableList, nsGnomeVFSProtocolHandler, nsGTKRemoteService, nsHttpHandler, nsIDNService, nsImageFrame::IconLoad, nsIMAPHostSessionList, nsIncrementalDownload, nsIOService, nsIOThreadPool, nsJVMManager, nsLayoutStylesheetCache, nsMailnewsContentBlocker, nsMapiSupport, nsMessenger, nsMessengerMigrator, nsMessengerUnixIntegration, nsMessengerWinIntegration, nsMetaCharsetObserver, nsMetricsService, nsMsgAccountManager, nsMsgBiffManager, nsMsgComposeService, nsMsgContentPolicy, nsMsgOfflineManager, nsMsgPrintEngine, nsMsgRDFDataSource, nsNativeAppSupportBeOS, nsNativeAppSupportMac, nsNativeAppSupportOS2, nsNativeAppSupportWin, nsNativeThemeGTK, nsNotifyAddrListener, nsNSSComponent, nsP3PService, nsPalmSyncSupport, nsPasswordManager, nsPermissionManager, nsPhRemoteService, nsPluginHostImpl, nsPopupWindowManager, nsPref, nsPrefBranch, nsPrefetchService, nsPrefService, nsPresContext_base, nsPrintEngine, nsProtocolProxyService, nsReadConfig, nsScriptSecurityManager, nsSecureBrowserUIImpl, nsSHistoryObserver, nsShutdownObserver, nsSingleSignOnProfileObserver, nsSoftwareUpdate, nsSpatialNavigationService, nsStandardURL::nsPrefObserver, nsStringBundleService, nsSystemPref, nsTypeAheadFind, nsTypeAheadFind, nsUICommandCollector, nsUrlClassifierDBService, nsWalletlibService, nsWindowCollector, nsXBLService, nsXMLEncodingObserver, nsXULPrototypeCache [private], nsZipReaderCache, PrefObserver, PresShell, ProfileChangeObserver, TestObserver, TimerThread, WebBrowserChrome, WebBrowserChrome, and WindowChangeObserver.

Collaboration diagram for nsIObserver:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Detailed Description

This interface is implemented by an object that wants to observe an event corresponding to a topic.

FROZEN

Definition at line 48 of file nsIObserver.idl.


Member Function Documentation

void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
)

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

Parameters:
aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.

The documentation for this interface was generated from the following file: