27 #ifndef sbCDDeviceMarshall_h_
28 #define sbCDDeviceMarshall_h_
33 #include <sbIDeviceRegistrar.h>
34 #include <sbICDDeviceService.h>
36 #include <nsIClassInfo.h>
37 #include <nsStringAPI.h>
38 #include <nsIWritablePropertyBag.h>
39 #include <nsInterfaceHashtable.h>
40 #include <nsAutoLock.h>
41 #include <nsIThread.h>
54 NS_DECL_SBIDEVICEMARSHALL
55 NS_DECL_SBICDDEVICELISTENER
81 nsresult
GetHasDevice(nsAString
const & aName, PRBool *aOutHasDevice);
92 nsIVariant *
aData = nsnull,
94 PRBool aAsync = PR_FALSE);
113 nsInterfaceHashtableMT<nsStringHashKey, nsISupports> mKnownDevices;
114 PRMonitor *mKnownDevicesLock;
117 nsCOMPtr<sbICDDeviceService> mCDDeviceService;
120 nsCOMPtr<nsIThread> mOwnerContextThread;
127 #endif // sbCDDeviceMarshall_h_
nsresult AddDevice(sbICDDevice *aCDDevice)
virtual ~sbCDDeviceMarshall()
nsresult GetHasDevice(nsAString const &aName, PRBool *aOutHasDevice)
nsresult RemoveDevice(nsAString const &aName)
#define SB_CDDEVICE_MARSHALL_IID
void RunNotifyDeviceStartScan()
nsresult AddDevice2(nsAString const &aName, sbIDevice *aDevice)
nsresult DiscoverDevices()
void RunNotifyDeviceStopScan()
NS_DECL_ISUPPORTS NS_DECL_NSICLASSINFO NS_DECL_SBIDEVICEMARSHALL NS_DECL_SBICDDEVICELISTENER nsresult Init()
void RunDiscoverDevices()
nsresult GetDevice(nsAString const &aName, sbIDevice **aOutDevice)
nsresult CreateAndDispatchDeviceManagerEvent(PRUint32 aType, nsIVariant *aData=nsnull, nsISupports *aOrigin=nsnull, PRBool aAsync=PR_FALSE)
_updateTextAndScrollDataForFrame aData