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";

Inheritance diagram for nsIObserver:

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.

Status:
FROZEN

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: