sbDeviceFirmwareDownloader Class Reference

#include <sbDeviceFirmwareDownloader.h>

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

Public Member Functions

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)
 
- Public Member Functions inherited from sbIFileDownloaderListener
void onProgress ()
 Called when progress is made on file download. More...
 
void onComplete ()
 Called when download has completed. More...
 

Static Public Member Functions

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)
 

Protected Member Functions

virtual ~sbDeviceFirmwareDownloader ()
 

Detailed Description

Definition at line 44 of file sbDeviceFirmwareDownloader.h.

Constructor & Destructor Documentation

NS_DECL_ISUPPORTS NS_DECL_SBIFILEDOWNLOADERLISTENER sbDeviceFirmwareDownloader::sbDeviceFirmwareDownloader ( )
sbDeviceFirmwareDownloader::~sbDeviceFirmwareDownloader ( )
protectedvirtual

Definition at line 410 of file sbDeviceFirmwareDownloader.cpp.

Member Function Documentation

nsresult sbDeviceFirmwareDownloader::CacheFirmwareUpdate ( sbIDevice aDevice,
sbIDeviceFirmwareUpdate aFirmwareUpdate,
sbIDeviceFirmwareUpdate **  aCachedFirmwareUpdate 
)
static

Definition at line 662 of file sbDeviceFirmwareDownloader.cpp.

nsresult sbDeviceFirmwareDownloader::CacheFirmwareUpdate ( sbIDevice aDevice,
const nsAString &  aCacheDirName,
sbIDeviceFirmwareUpdate aFirmwareUpdate,
sbIDeviceFirmwareUpdate **  aCachedFirmwareUpdate 
)
static

Definition at line 679 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::Cancel ( )

Definition at line 1024 of file sbDeviceFirmwareDownloader.cpp.

nsresult sbDeviceFirmwareDownloader::CreateCacheDirForDevice ( sbIDevice aDevice,
nsIFile *  aCacheRoot,
nsIFile **  aCacheDir 
)
static

Definition at line 576 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::CreateCacheDirForDevice ( const nsAString &  aCacheDirName,
nsIFile *  aCacheRoot,
nsIFile **  aCacheDir 
)
static

Definition at line 610 of file sbDeviceFirmwareDownloader.cpp.

nsresult sbDeviceFirmwareDownloader::CreateCacheRoot ( nsIFile **  aCacheRoot)
static

Definition at line 484 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::CreateDeviceEvent ( PRUint32  aType,
nsIVariant *  aData,
sbIDeviceEvent **  aEvent 
)

Definition at line 1224 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::CreateDirInCacheRoot ( const nsAString &  aDirName,
nsIFile **  aNewDir 
)
static

Definition at line 789 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::GetCachedFile ( nsIFile **  aFile)

Definition at line 914 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::HandleComplete ( )

Definition at line 1066 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::HandleProgress ( )

Definition at line 1045 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::Init ( sbIDevice aDevice,
sbIDeviceEventListener aListener,
sbIDeviceFirmwareHandler aHandler 
)

Definition at line 415 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::Init ( sbIDevice aDevice,
const nsAString &  aCacheDirName,
sbIDeviceEventListener aListener,
sbIDeviceFirmwareHandler aHandler 
)

Definition at line 449 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

PRBool sbDeviceFirmwareDownloader::IsAlreadyInCache ( )

Definition at line 845 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::SendDeviceEvent ( sbIDeviceEvent aEvent,
PRBool  aAsync = PR_TRUE 
)

Definition at line 1248 of file sbDeviceFirmwareDownloader.cpp.

Here is the caller graph for this function:

nsresult sbDeviceFirmwareDownloader::SendDeviceEvent ( PRUint32  aType,
nsIVariant *  aData,
PRBool  aAsync = PR_TRUE 
)

Definition at line 1276 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:

nsresult sbDeviceFirmwareDownloader::Start ( )

Definition at line 944 of file sbDeviceFirmwareDownloader.cpp.

Here is the call graph for this function:


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