28 #ifndef __SB_MOCKDEVICEFIRMWAREHANDLER_H__
29 #define __SB_MOCKDEVICEFIRMWAREHANDLER_H__
32 #include <sbPIMockFirmwareHandlerURLService.h>
33 #include <nsIStreamListener.h>
37 public nsIStreamListener
41 NS_DECL_NSISTREAMLISTENER
42 NS_DECL_NSIREQUESTOBSERVER
56 PRUint32 aDeviceVendorID,
57 PRUint32 aDeviceProductID,
71 virtual ~sbMockDeviceFirmwareHandler();
nsresult HandleRefreshInfoRequest()
virtual nsresult OnGetCurrentFirmwareVersion(PRUint32 *aCurrentFirmwareVersion)
virtual nsresult OnGetDeviceModelNumber(nsAString &aModelNumber)
virtual nsresult OnRecover(sbIDeviceFirmwareUpdate *aFirmwareUpdate)
virtual nsresult OnRebind(sbIDevice *aDevice, sbIDeviceEventListener *aListener, PRBool *_retval)
virtual nsresult OnCancel()
virtual nsresult OnCanUpdate(sbIDevice *aDevice, PRUint32 aDeviceVendorID, PRUint32 aDeviceProductID, PRBool *_retval)
nsCOMPtr< sbPIMockFirmwareHandlerURLService > mHandlerURLService
virtual nsresult OnInit()
virtual nsresult OnVerifyUpdate(sbIDeviceFirmwareUpdate *aFirmwareUpdate)
virtual nsresult OnGetRecoveryMode(PRBool *aRecoveryMode)
virtual nsresult OnGetDeviceModelVersion(nsAString &aModelVersion)
virtual nsresult OnGetDeviceVendor(nsAString &aDeviceVendor)
virtual nsresult OnGetCurrentFirmwareReadableVersion(nsAString &aCurrentFirmwareReadableVersion)
virtual nsresult OnVerifyDevice()
virtual nsresult OnHttpRequestCompleted()
NS_DECL_ISUPPORTS NS_DECL_NSISTREAMLISTENER NS_DECL_NSIREQUESTOBSERVER sbMockDeviceFirmwareHandler()
virtual nsresult OnUpdate(sbIDeviceFirmwareUpdate *aFirmwareUpdate)
virtual nsresult OnRefreshInfo()