WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIEventTarget

IID:4e8febe4-6631-49dc-8ac9-308c1cb9b09c
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

This flag specifies the default mode of event dispatch, whereby the event is simply queued for later processing. When this flag is specified, dispatch returns immediately after the event is queued.
PRUint32 DISPATCH_NORMAL = 0
This flag specifies the synchronous mode of event dispatch, in which the dispatch method does not return until the event has been processed.

NOTE: passing this flag to dispatch may have the side-effect of causing other events on the current thread to be processed while waiting for the given event to be processed.

PRUint32 DISPATCH_SYNC = 1

Methods

void dispatch ( nsIRunnable event , PRUint32 flags ) PRBool isOnCurrentThread ( )

void dispatch ( nsIRunnable event , PRUint32 flags )

Dispatch an event to this event target. This function may be called from any thread, and it may be called re-entrantly.

Arguments:
event: The event to dispatch.
flags: The flags modifying event dispatch. The flags are described in detail below.

PRBool isOnCurrentThread ( )

Check to see if this event target is associated with the current thread.


References

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

nsIAsyncInputStream.asyncWait, nsIAsyncOutputStream.asyncWait, nsIAsyncStreamCopier.init, nsIDNSService.asyncResolve, nsIImapIncomingServer.GetImapConnectionAndLoadUrl, nsIImapProtocol.Initialize, nsIImapService.addMessageFlags, nsIImapService.appendMessageFromFile, nsIImapService.biff, nsIImapService.createFolder, nsIImapService.deleteAllMessages, nsIImapService.deleteFolder, nsIImapService.deleteMessages, nsIImapService.discoverAllAndSubscribedFolders, nsIImapService.discoverAllFolders, nsIImapService.discoverChildren, nsIImapService.ensureFolderExists, nsIImapService.expunge, nsIImapService.fetchCustomMsgAttribute, nsIImapService.getBodyStart, nsIImapService.getFolderAdminUrl, nsIImapService.getHeaders, nsIImapService.issueCommandOnMsgs, nsIImapService.listFolder, nsIImapService.liteSelectFolder, nsIImapService.moveFolder, nsIImapService.noop, nsIImapService.onlineMessageCopy, nsIImapService.renameLeaf, nsIImapService.selectFolder, nsIImapService.setMessageFlags, nsIImapService.storeCustomKeywords, nsIImapService.subscribeFolder, nsIImapService.subtractMessageFlags, nsIImapService.unsubscribeFolder, nsIImapService.updateFolderStatus, nsIProxyObjectManager.getProxyForObject, nsIRequestObserverProxy.init, nsITransport.setEventSink

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com