nsIEventTarget

IID:ea99ad5b-cc67-4efb-97c9-2ef620a59f2a
Inherits From:nsISupports

This interface is used to dispatch events to a particular thread. In many cases the event target also supports nsIEventQueue.

This interface is implemented by the following components:


Methods

PRBool isOnCurrentThread ( ) [noscript] void postEvent ( PLEventPtr* event )

PRBool isOnCurrentThread ( )

This method returns true if the event target is the current thread.


void postEvent ( PLEventPtr* event )

Method for posting an asynchronous event to the event target. If this method succeeds, then the event will be dispatched on the target thread.

Arguments:
event: The event to dispatched.

References

This interface is passed as an argument to the following methods:

nsIAsyncInputStream.asyncWait, nsIAsyncOutputStream.asyncWait, nsIAsyncStreamCopier.init, nsIDNSService.asyncResolve, nsITransport.setEventSink

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com