Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

void nsIObserverService::addObserver ( in nsIObserver  anObserver,
in string  aTopic,
in boolean  ownsWeak 
)

AddObserver

Registers a given listener for a notifications regarding the specified topic.

Parameters:
anObserve : The interface pointer which will receive notifications.
aTopic : The notification topic or subject.
ownsWeak : If set to false, the nsIObserverService will hold a strong reference to |anObserver|. If set to true and |anObserver| supports the nsIWeakReference interface, a weak reference will be held. Otherwise an error will be returned.


Generated by  Doxygen 1.6.0   Back to index