Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsShutdownObserver Class Reference
Inheritance diagram for nsShutdownObserver:
Inheritance graph
Collaboration diagram for nsShutdownObserver:
Collaboration graph

List of all members.

Public Member Functions

 nsShutdownObserver ()
virtual ~nsShutdownObserver ()
NS_DECL_ISUPPORTS NS_IMETHOD Observe (nsISupports *aSubject, const char *aTopic, const PRUnichar *aData)
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

Definition at line 52 of file nsUnicharUtils.cpp.

Constructor & Destructor Documentation

Definition at line 55 of file nsUnicharUtils.cpp.

{ }
virtual nsShutdownObserver::~nsShutdownObserver ( ) [inline, virtual]

Definition at line 56 of file nsUnicharUtils.cpp.


Member Function Documentation

NS_DECL_ISUPPORTS NS_IMETHOD nsShutdownObserver::Observe ( nsISupports *  aSubject,
const char *  aTopic,
const PRUnichar aData 
) [inline]

Definition at line 59 of file nsUnicharUtils.cpp.

        if (nsCRT::strcmp(aTopic, NS_XPCOM_SHUTDOWN_OBSERVER_ID)==0) {

        return NS_OK;
void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

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.

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

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