Public Member Functions

extIEvents Interface Reference

Interface for supporting custom events. More...

import "extIApplication.idl";

List of all members.

Public Member Functions

NS_SCRIPTABLE NS_IMETHOD AddListener (const nsAString &aEvent, extIEventListener *aListener)=0
 Adds an event listener to the list.
NS_SCRIPTABLE NS_IMETHOD RemoveListener (const nsAString &aEvent, extIEventListener *aListener)=0
 Removes an event listener from the list.
void addListener (in AString aEvent, in extIEventListener aListener)
 Adds an event listener to the list.
void removeListener (in AString aEvent, in extIEventListener aListener)
 Removes an event listener from the list.

Detailed Description

Interface for supporting custom events.


Member Function Documentation

NS_SCRIPTABLE NS_IMETHOD extIEvents::AddListener ( const nsAString aEvent,
extIEventListener aListener 
) [pure virtual]

Adds an event listener to the list.

If multiple identical event listeners are registered on the same event target with the same parameters the duplicate instances are discarded. They do not cause the EventListener to be called twice and since they are discarded they do not need to be removed with the removeListener method.

Parameters:
aEvent The name of an event
aListener The reference to a listener
void extIEvents::addListener ( in AString  aEvent,
in extIEventListener  aListener 
)

Adds an event listener to the list.

If multiple identical event listeners are registered on the same event target with the same parameters the duplicate instances are discarded. They do not cause the EventListener to be called twice and since they are discarded they do not need to be removed with the removeListener method.

Parameters:
aEvent The name of an event
aListener The reference to a listener
void extIEvents::removeListener ( in AString  aEvent,
in extIEventListener  aListener 
)

Removes an event listener from the list.

Calling remove with arguments which do not identify any currently registered event listener has no effect.

Parameters:
aEvent The name of an event
aListener The reference to a listener
NS_SCRIPTABLE NS_IMETHOD extIEvents::RemoveListener ( const nsAString aEvent,
extIEventListener aListener 
) [pure virtual]

Removes an event listener from the list.

Calling remove with arguments which do not identify any currently registered event listener has no effect.

Parameters:
aEvent The name of an event
aListener The reference to a listener

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