sbDeviceManager Class Reference

#include <sbDeviceManager.h>

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

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_SBIDEVICEMANAGER2
NS_DECL_SBIDEVICECONTROLLERREGISTRAR
NS_DECL_SBIDEVICEREGISTRAR
NS_DECL_NSICLASSINFO
NS_DECL_NSIOBSERVER 
sbDeviceManager ()
 
- Public Member Functions inherited from sbBaseDeviceEventTarget
 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 Member Functions inherited from sbIDeviceManager2
sbIDeviceMarshall getMarshallByID (in nsIDPtr aIDPtr)
 
void updateDevices ()
 
sbIDeviceEvent createEvent (in unsigned long aType, [optional] in nsIVariant aData, [optional] in nsISupports aOrigin, [optional] in unsigned long aDeviceState, [optional] in unsigned long aDeviceSubState)
 
sbIDeviceEventBeforeAddedData createBeforeAddedData (in sbIDevice aDevice)
 
sbIDevice getDeviceForItem (in sbIMediaItem aItem)
 
- Public Member Functions inherited from sbIDeviceControllerRegistrar
void registerController (in sbIDeviceController aController)
 
void unregisterController (in sbIDeviceController aController)
 
sbIDeviceController getController (in nsIDPtr aControllerId)
 
- Public Member Functions inherited from sbIDeviceRegistrar
void registerDevice (in sbIDevice aDevice)
 
void unregisterDevice (in sbIDevice aDevice)
 
sbIDevice getDevice (in nsIDPtr aDeviceId)
 
- Public Member Functions inherited from sbSupportsWeakReference
 sbSupportsWeakReference ()
 

Protected Member Functions

nsresult Init ()
 
nsresult BeginMarshallMonitoring ()
 
nsresult PrepareShutdown ()
 
nsresult FinalShutdown ()
 
nsresult QuitApplicationRequested (PRBool *aShouldQuit)
 
nsresult QuitApplicationGranted ()
 
nsresult RemoveAllDevices ()
 
- Protected Member Functions inherited from sbBaseDeviceEventTarget
virtual ~sbBaseDeviceEventTarget ()
 
nsresult DispatchEventInternal (nsCOMPtr< sbIDeviceEvent > aEvent)
 
- Protected Member Functions inherited from sbSupportsWeakReference
 ~sbSupportsWeakReference ()
 
void ClearWeakReferences ()
 
PRBool HasWeakReferences () const
 

Static Protected Member Functions

template<class T >
static NS_HIDDEN_ (PLDHashOperator) EnumerateIntoArray(const nsID &aKey
 

Protected Attributes

static T * aData
 
static T void * aArray
 
PRMonitor * mMonitor
 
nsInterfaceHashtableMT
< nsIDHashKey,
sbIDeviceController
mControllers
 
nsInterfaceHashtableMT
< nsIDHashKey, sbIDevice
mDevices
 
nsInterfaceHashtableMT
< nsIDHashKey,
sbIDeviceMarshall
mMarshalls
 
PRBool mHasAllowedShutdown
 
- Protected Attributes inherited from sbBaseDeviceEventTarget
nsCOMArray
< sbIDeviceEventListener
mListeners
 
nsDeque mStates
 
nsCOMPtr< nsIWeakReference > mParentEventTarget
 

Additional Inherited Members

- Public Attributes inherited from sbBaseDeviceEventTarget
 NS_DECL_SBIDEVICEEVENTTARGET
 
- Public Attributes inherited from sbIDeviceManager2
readonly attribute nsIArray marshalls
 
readonly attribute boolean canDisconnect
 
- Public Attributes inherited from sbIDeviceControllerRegistrar
readonly attribute nsIArray controllers
 
- Public Attributes inherited from sbIDeviceRegistrar
readonly attribute nsIArray devices
 

Detailed Description

Definition at line 46 of file sbDeviceManager.h.

Constructor & Destructor Documentation

nsISupportsWeakReference sbDeviceManager::sbDeviceManager ( )

Definition at line 84 of file sbDeviceManager.cpp.

Member Function Documentation

nsresult sbDeviceManager::BeginMarshallMonitoring ( )
protected

Definition at line 702 of file sbDeviceManager.cpp.

nsresult sbDeviceManager::FinalShutdown ( )
protected

Definition at line 903 of file sbDeviceManager.cpp.

nsresult sbDeviceManager::Init ( )
protected

Definition at line 572 of file sbDeviceManager.cpp.

Here is the call graph for this function:

template<class T >
static sbDeviceManager::NS_HIDDEN_ ( PLDHashOperator  ) const
staticprotected
nsresult sbDeviceManager::PrepareShutdown ( )
protected

Definition at line 840 of file sbDeviceManager.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult sbDeviceManager::QuitApplicationGranted ( )
protected

Definition at line 796 of file sbDeviceManager.cpp.

Here is the call graph for this function:

nsresult sbDeviceManager::QuitApplicationRequested ( PRBool *  aShouldQuit)
protected

Definition at line 740 of file sbDeviceManager.cpp.

Here is the call graph for this function:

nsresult sbDeviceManager::RemoveAllDevices ( )
protected

Definition at line 935 of file sbDeviceManager.cpp.

Here is the caller graph for this function:

Member Data Documentation

T void* sbDeviceManager::aArray
protected

Definition at line 70 of file sbDeviceManager.h.

T* sbDeviceManager::aData
protected

Definition at line 70 of file sbDeviceManager.h.

nsInterfaceHashtableMT<nsIDHashKey, sbIDeviceController> sbDeviceManager::mControllers
protected

Definition at line 84 of file sbDeviceManager.h.

nsInterfaceHashtableMT<nsIDHashKey, sbIDevice> sbDeviceManager::mDevices
protected

Definition at line 85 of file sbDeviceManager.h.

PRBool sbDeviceManager::mHasAllowedShutdown
protected

Definition at line 87 of file sbDeviceManager.h.

nsInterfaceHashtableMT<nsIDHashKey, sbIDeviceMarshall> sbDeviceManager::mMarshalls
protected

Definition at line 86 of file sbDeviceManager.h.

PRMonitor* sbDeviceManager::mMonitor
protected

Definition at line 83 of file sbDeviceManager.h.


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