sbBaseDeviceEventTarget Class Reference

#include <sbBaseDeviceEventTarget.h>

Inheritance diagram for sbBaseDeviceEventTarget:
[legend]
Collaboration diagram for sbBaseDeviceEventTarget:
[legend]

Classes

struct  DispatchState
 

Public Member Functions

 sbBaseDeviceEventTarget ()
 
- Public Member Functions inherited from sbIDeviceEventTarget
boolean dispatchEvent (in sbIDeviceEvent aEvent, [optional] in PRBool aAsync)
 
void addEventListener (in sbIDeviceEventListener aListener)
 
void removeEventListener (in sbIDeviceEventListener aListener)
 

Public Attributes

 NS_DECL_SBIDEVICEEVENTTARGET
 

Protected Member Functions

virtual ~sbBaseDeviceEventTarget ()
 
nsresult DispatchEventInternal (nsCOMPtr< sbIDeviceEvent > aEvent)
 

Protected Attributes

nsCOMArray
< sbIDeviceEventListener
mListeners
 
nsDeque mStates
 
nsCOMPtr< nsIWeakReference > mParentEventTarget
 

Friends

class sbDeviceEventTargetRemovalHelper
 

Detailed Description

sbBaseDeviceEventTarget is a helper class to implement a basic sbIDeviceEventTarget. All events will be proxied onto the main thread and dispatched there.

Definition at line 45 of file sbBaseDeviceEventTarget.h.

Constructor & Destructor Documentation

sbBaseDeviceEventTarget::sbBaseDeviceEventTarget ( )

Definition at line 64 of file sbBaseDeviceEventTarget.cpp.

sbBaseDeviceEventTarget::~sbBaseDeviceEventTarget ( )
protectedvirtual

Definition at line 71 of file sbBaseDeviceEventTarget.cpp.

Member Function Documentation

nsresult sbBaseDeviceEventTarget::DispatchEventInternal ( nsCOMPtr< sbIDeviceEvent aEvent)
protected

Definition at line 127 of file sbBaseDeviceEventTarget.cpp.

Friends And Related Function Documentation

friend class sbDeviceEventTargetRemovalHelper
friend

Definition at line 68 of file sbBaseDeviceEventTarget.h.

Member Data Documentation

nsCOMArray<sbIDeviceEventListener> sbBaseDeviceEventTarget::mListeners
protected

Definition at line 59 of file sbBaseDeviceEventTarget.h.

nsCOMPtr<nsIWeakReference> sbBaseDeviceEventTarget::mParentEventTarget
protected

Definition at line 70 of file sbBaseDeviceEventTarget.h.

nsDeque sbBaseDeviceEventTarget::mStates
protected

Definition at line 67 of file sbBaseDeviceEventTarget.h.

sbBaseDeviceEventTarget::NS_DECL_SBIDEVICEEVENTTARGET

Definition at line 48 of file sbBaseDeviceEventTarget.h.


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