#include <sbDeviceFirmwareDownloader.h>
|
NS_DECL_ISUPPORTS
NS_DECL_SBIFILEDOWNLOADERLISTENER | sbDeviceFirmwareDownloader () |
| |
| nsresult | Init (sbIDevice *aDevice, sbIDeviceEventListener *aListener, sbIDeviceFirmwareHandler *aHandler) |
| |
| nsresult | Init (sbIDevice *aDevice, const nsAString &aCacheDirName, sbIDeviceEventListener *aListener, sbIDeviceFirmwareHandler *aHandler) |
| |
| PRBool | IsAlreadyInCache () |
| |
| nsresult | GetCachedFile (nsIFile **aFile) |
| |
| nsresult | Start () |
| |
| nsresult | Cancel () |
| |
| nsresult | HandleProgress () |
| |
| nsresult | HandleComplete () |
| |
| nsresult | CreateDeviceEvent (PRUint32 aType, nsIVariant *aData, sbIDeviceEvent **aEvent) |
| |
| nsresult | SendDeviceEvent (sbIDeviceEvent *aEvent, PRBool aAsync=PR_TRUE) |
| |
| nsresult | SendDeviceEvent (PRUint32 aType, nsIVariant *aData, PRBool aAsync=PR_TRUE) |
| |
| void | onProgress () |
| | Called when progress is made on file download. More...
|
| |
| void | onComplete () |
| | Called when download has completed. More...
|
| |
|
| static nsresult | CreateCacheRoot (nsIFile **aCacheRoot) |
| |
| static nsresult | CreateCacheDirForDevice (sbIDevice *aDevice, nsIFile *aCacheRoot, nsIFile **aCacheDir) |
| |
| static nsresult | CreateCacheDirForDevice (const nsAString &aCacheDirName, nsIFile *aCacheRoot, nsIFile **aCacheDir) |
| |
| static nsresult | CacheFirmwareUpdate (sbIDevice *aDevice, sbIDeviceFirmwareUpdate *aFirmwareUpdate, sbIDeviceFirmwareUpdate **aCachedFirmwareUpdate) |
| |
| static nsresult | CacheFirmwareUpdate (sbIDevice *aDevice, const nsAString &aCacheDirName, sbIDeviceFirmwareUpdate *aFirmwareUpdate, sbIDeviceFirmwareUpdate **aCachedFirmwareUpdate) |
| |
| static nsresult | CreateDirInCacheRoot (const nsAString &aDirName, nsIFile **aNewDir) |
| |
| NS_DECL_ISUPPORTS NS_DECL_SBIFILEDOWNLOADERLISTENER sbDeviceFirmwareDownloader::sbDeviceFirmwareDownloader |
( |
| ) |
|
| sbDeviceFirmwareDownloader::~sbDeviceFirmwareDownloader |
( |
| ) |
|
|
protectedvirtual |
| nsresult sbDeviceFirmwareDownloader::Cancel |
( |
| ) |
|
| nsresult sbDeviceFirmwareDownloader::CreateCacheDirForDevice |
( |
sbIDevice * |
aDevice, |
|
|
nsIFile * |
aCacheRoot, |
|
|
nsIFile ** |
aCacheDir |
|
) |
| |
|
static |
| nsresult sbDeviceFirmwareDownloader::CreateCacheDirForDevice |
( |
const nsAString & |
aCacheDirName, |
|
|
nsIFile * |
aCacheRoot, |
|
|
nsIFile ** |
aCacheDir |
|
) |
| |
|
static |
| nsresult sbDeviceFirmwareDownloader::CreateCacheRoot |
( |
nsIFile ** |
aCacheRoot | ) |
|
|
static |
| nsresult sbDeviceFirmwareDownloader::CreateDeviceEvent |
( |
PRUint32 |
aType, |
|
|
nsIVariant * |
aData, |
|
|
sbIDeviceEvent ** |
aEvent |
|
) |
| |
| nsresult sbDeviceFirmwareDownloader::CreateDirInCacheRoot |
( |
const nsAString & |
aDirName, |
|
|
nsIFile ** |
aNewDir |
|
) |
| |
|
static |
| nsresult sbDeviceFirmwareDownloader::GetCachedFile |
( |
nsIFile ** |
aFile | ) |
|
| nsresult sbDeviceFirmwareDownloader::HandleComplete |
( |
| ) |
|
| nsresult sbDeviceFirmwareDownloader::HandleProgress |
( |
| ) |
|
| PRBool sbDeviceFirmwareDownloader::IsAlreadyInCache |
( |
| ) |
|
| nsresult sbDeviceFirmwareDownloader::SendDeviceEvent |
( |
sbIDeviceEvent * |
aEvent, |
|
|
PRBool |
aAsync = PR_TRUE |
|
) |
| |
| nsresult sbDeviceFirmwareDownloader::SendDeviceEvent |
( |
PRUint32 |
aType, |
|
|
nsIVariant * |
aData, |
|
|
PRBool |
aAsync = PR_TRUE |
|
) |
| |
| nsresult sbDeviceFirmwareDownloader::Start |
( |
| ) |
|
The documentation for this class was generated from the following files: