nsIObserver
| IID: | DB242E01-E4D9-11d2-9DDE-000064657374 |
| Inherits From: | nsISupports |
| Status: | FROZEN |
This interface is implemented by an object that wants to observe an event corresponding to a topic.
This interface is implemented by the following components:
- @mozilla.org/PopupWindowManager;1
- @mozilla.org/accessibilityService;1
- @mozilla.org/addressbook/abview;1
- @mozilla.org/appshell/appShellService;1
- @mozilla.org/autoconfiguration;1
- @mozilla.org/chrome/chrome-registry;1
- @mozilla.org/commandlinehandler/general-startup;1?type=compose
- @mozilla.org/content/http-startup;1
- @mozilla.org/cookie-consent;1
- @mozilla.org/cookieService;1
- @mozilla.org/download-manager;1
- @mozilla.org/embedcomp/appstartup-notifier;1
- @mozilla.org/exceptionservice;1
- @mozilla.org/gfx/decidecontext/ps;1
- @mozilla.org/gfx/decidecontext/xprint;1
- @mozilla.org/gfx/devicecontext;1
- @mozilla.org/image/cache;1
- @mozilla.org/imgmanager;1
- @mozilla.org/intl/metacharset;1
- @mozilla.org/intl/stringbundle;1
- @mozilla.org/intl/xmlencoding;1
- @mozilla.org/js/jsd/app-start-observer;2
- @mozilla.org/libjar/zip-reader-cache;1
- @mozilla.org/messenger/account-manager;1
- @mozilla.org/messenger/biffManager;1
- @mozilla.org/messenger/migrator;1
- @mozilla.org/messenger/msgPrintEngine;1
- @mozilla.org/messenger/msgdbview;1?type=quicksearch
- @mozilla.org/messenger/msgdbview;1?type=search
- @mozilla.org/messenger/msgdbview;1?type=threaded
- @mozilla.org/messenger/msgdbview;1?type=threadswithunread
- @mozilla.org/messenger/msgdbview;1?type=watchedthreadswithunread
- @mozilla.org/messenger/offline-manager;1
- @mozilla.org/messenger;1
- @mozilla.org/messengercompose;1
- @mozilla.org/mime;1
- @mozilla.org/network/dns-service;1
- @mozilla.org/network/idn-service;1
- @mozilla.org/network/io-service;1
- @mozilla.org/network/protocol;1?name=ftp
- @mozilla.org/network/protocol;1?name=http
- @mozilla.org/p3p/p3pservice;1
- @mozilla.org/permissionmanager;1
- @mozilla.org/plugin/host;1
- @mozilla.org/plugin/manager;1
- @mozilla.org/preferences-service;1
- @mozilla.org/preferences;1
- @mozilla.org/prefetch-service;1
- @mozilla.org/progressdialog;1
- @mozilla.org/rdf/datasource;1?name=addressdirectory
- @mozilla.org/rdf/datasource;1?name=mailnewsfolders
- @mozilla.org/rdf/datasource;1?name=msgaccountmanager
- @mozilla.org/rdf/datasource;1?name=window-mediator
- @mozilla.org/readconfig;1
- @mozilla.org/scriptsecuritymanager;1
- @mozilla.org/typeaheadfind;1
- @mozilla.org/update-notifier;1
- @mozilla.org/uriloader/external-helper-app-service;1
- @mozilla.org/uriloader/external-protocol-service;1
- @mozilla.org/wallet/wallet-service;1
- @mozilla.org/xbl;1
- @mozilla.org/xpcom/observer;1
- @mozilla.org/xpinstall;1
- @mozilla.org/accessibleRetrieval;1
- @mozilla.org/network/io-thread-pool;1
- @mozilla.org/offline-startup;1
- @mozilla.org/psm;1
- @mozilla.org/secure_browser_ui;1
- @mozilla.org/spellchecker/personaldictionary;1
- @mozilla.org/autocomplete/search;1?name=history
- @mozilla.org/browser/browserglue;1
- @mozilla.org/browser/global-history;2
- @mozilla.org/extensions/manager;1
- @mozilla.org/globalprefsecuritycheck;1
- @mozilla.org/network/incremental-download;1
- @mozilla.org/network/util;1
- @mozilla.org/permissions/contentblocker;1
- @mozilla.org/satchel/form-history;1
- @mozilla.org/system-preferences;1
- @mozilla.org/toolkit/app-startup;1
- @mozilla.org/toolkit/remote-service;1
- @mozilla.org/updates/timer-manager;1
- @mozilla.org/updates/update-service;1
- @mozilla.org/xpinstall/install-manager;1
- @mozilla.org/appshell/trytoclose;1
- @mozilla.org/autocomplete/search;1?name=search-autocomplete
- @mozilla.org/browser/download-history;1
- @mozilla.org/browser/feeds/result-writer;1
- @mozilla.org/browser/nav-history-service;1
- @mozilla.org/browser/safebrowsing/navstartlistener;1
- @mozilla.org/browser/search-service;1
- @mozilla.org/browser/sessionstartup;1
- @mozilla.org/browser/sessionstore;1
- @mozilla.org/browser/tagging-service;1
- @mozilla.org/content-pref/service;1
- @mozilla.org/dom/storagemanager;1
- @mozilla.org/embeddor.implemented/web-content-handler-registrar;1
- @mozilla.org/extensions/blocklist;1
- @mozilla.org/fuel/application;1
- @mozilla.org/microsummary/service;1
- @mozilla.org/netwerk/global-channel-event-sink;1
- @mozilla.org/offlinecacheupdate-service;1
- @mozilla.org/progressdialog;1
- @mozilla.org/security/certoverride;1
- @mozilla.org/spellchecker/personaldictionary;1
- @mozilla.org/uriclassifierservice
- @mozilla.org/uriloader/handler-service;1
- @mozilla.org/url-classifier/dbservice;1
- @mozilla.org/url-classifier/hashcompleter;1
- @mozilla.org/url-classifier/streamupdater;1
- @mozilla.org/widget/appshell/mac;1
Methods
void observe ( nsISupports subject , char* topic , PRUnichar* data )
void observe ( nsISupports subject , char* topic , PRUnichar* data )
Observe will be called when there is a notification for the topic topic. 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.
- Arguments:
- subject: : Notification specific interface pointer.
- topic: : The notification topic or subject.
- data: : Notification specific wide string. subject event.
References
This interface is passed as an argument to the following methods:
nsIAlertsService.showAlertNotification, nsICommandManager.addCommandObserver, nsICommandManager.removeCommandObserver, nsIDOMXULDocument.loadOverlay, nsIExtensionManager.addDownloads, nsIIdleService.addIdleObserver, nsIIdleService.removeIdleObserver, nsIKeygenThread.startKeyGeneration, nsIMsgPrintEngine.setStartupPPObserver, nsIObserverService.addObserver, nsIObserverService.removeObserver, nsIPref.addObserver, nsIPref.removeObserver, nsIPrefBranch2.addObserver, nsIPrefBranch2.removeObserver, nsIPrintProgress.openProgressDialog, nsIPrintingPrompt.showPageSetup, nsIPrintingPrompt.showProgress, nsIPrintingPromptService.showPageSetup, nsIPrintingPromptService.showProgress, nsIProtectedAuthThread.login, nsITimer.init, nsIWindowWatcher.registerNotification, nsIWindowWatcher.unregisterNotification, nsIXPIDialogService.openProgressDialog
Reference documentation is generated from Mozilla's source.
