import"sbIDeviceFirmwareUpdater.idl";
Public Member Functions | |
void | checkForUpdate (in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID, in sbIDeviceEventListener aListener) |
Check for an update. More... | |
void | downloadUpdate (in sbIDevice aDevice, in boolean aVerifyFirmwareUpdate, in sbIDeviceEventListener aListener) |
Download an update for a device. More... | |
void | verifyUpdate (in sbIDevice aDevice, in sbIDeviceFirmwareUpdate aFirmwareUpdate, in sbIDeviceEventListener aListener) |
Verify a firmware update that was previously downloaded. More... | |
void | applyUpdate (in sbIDevice aDevice, in sbIDeviceFirmwareUpdate aFirmwareUpdate, in sbIDeviceEventListener aListener) |
Apply firmware update to device. More... | |
void | recoveryUpdate (in sbIDevice aDevice, in sbIDeviceFirmwareUpdate aFirmwareUpdate, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID, in sbIDeviceEventListener aListener) |
Recover the device restoring it to factory state. More... | |
boolean | continueUpdate (in sbIDevice aDevice, in sbIDeviceEventListener aListener) |
Continue the auto-update process. More... | |
void | finalizeUpdate (in sbIDevice aDevice) |
Finalize the auto-update process. More... | |
void | verifyDevice (in sbIDevice aDevice, in sbIDeviceEventListener aListener) |
Verify the firmware on the specified device. More... | |
void | registerHandler (in sbIDeviceFirmwareHandler aFirmwareHandler) |
Register a firmware update handler. More... | |
void | unregisterHandler (in sbIDeviceFirmwareHandler aFirmwareHandler) |
Unregister a firmware update handler. More... | |
boolean | hasHandler (in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID) |
Is there a handler available for the specified device. More... | |
sbIDeviceFirmwareHandler | getHandler (in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID) |
Get the firmware handler for the specified device. More... | |
sbIDeviceFirmwareHandler | getActiveHandler (in sbIDevice aDevice) |
Get the running firmware handler for the specified device. More... | |
void | cancel (in sbIDevice aDevice) |
Cancel the current operation. More... | |
void | requireRecovery (in sbIDevice aDevice) |
Force a device to go through recovery mode. More... | |
Definition at line 45 of file sbIDeviceFirmwareUpdater.idl.
void sbIDeviceFirmwareUpdater::applyUpdate | ( | in sbIDevice | aDevice, |
in sbIDeviceFirmwareUpdate | aFirmwareUpdate, | ||
in sbIDeviceEventListener | aListener | ||
) |
Apply firmware update to device.
aDevice | - The device to update |
aFirmwareUpdate | - The firmware update to apply |
aListener | [optional] - Device listener to receive events |
void sbIDeviceFirmwareUpdater::cancel | ( | in sbIDevice | aDevice | ) |
Cancel the current operation.
void sbIDeviceFirmwareUpdater::checkForUpdate | ( | in sbIDevice | aDevice, |
in unsigned long | aDeviceVendorID, | ||
in unsigned long | aDeviceProductID, | ||
in sbIDeviceEventListener | aListener | ||
) |
Check for an update.
aDevice | - Device for which to check for an update |
aDeviceVendorID | [optional] - The device vendor ID. Set to 0 to fetch from device instance or if not available. |
aDeviceProductID | [optional] - The device product ID. Set to 0 to fetch from device instance or if not available. |
aListener | [optional] - Device listener to recieve events |
boolean sbIDeviceFirmwareUpdater::continueUpdate | ( | in sbIDevice | aDevice, |
in sbIDeviceEventListener | aListener | ||
) |
Continue the auto-update process.
aDevice | - The device to update |
aListener | [optional] - Device listener to recieve events |
void sbIDeviceFirmwareUpdater::downloadUpdate | ( | in sbIDevice | aDevice, |
in boolean | aVerifyFirmwareUpdate, | ||
in sbIDeviceEventListener | aListener | ||
) |
Download an update for a device.
aDevice | - Device for which to download an update |
aVerifyFirmwareUpdate | - Verify firmware update after it's downloaded |
aListener | [optional] - Device listener to recieve events |
void sbIDeviceFirmwareUpdater::finalizeUpdate | ( | in sbIDevice | aDevice | ) |
Finalize the auto-update process.
sbIDeviceFirmwareHandler sbIDeviceFirmwareUpdater::getActiveHandler | ( | in sbIDevice | aDevice | ) |
Get the running firmware handler for the specified device.
sbIDeviceFirmwareHandler sbIDeviceFirmwareUpdater::getHandler | ( | in sbIDevice | aDevice, |
in unsigned long | aDeviceVendorID, | ||
in unsigned long | aDeviceProductID | ||
) |
Get the firmware handler for the specified device.
aDevice | - The device |
aDeviceVendorID | [optional] - The device vendor ID. Set to 0 to fetch from device instance or if not available. |
aDeviceProductID | [optional] - The device product ID. Set to 0 to fetch from device instance or if not available. |
NS_ERROR_NOT_AVAILABLE | when there is no firmware handler available for the specified device |
boolean sbIDeviceFirmwareUpdater::hasHandler | ( | in sbIDevice | aDevice, |
in unsigned long | aDeviceVendorID, | ||
in unsigned long | aDeviceProductID | ||
) |
Is there a handler available for the specified device.
aDevice | - The device |
aDeviceVendorID | [optional] - The device vendor ID. Set to 0 to fetch from device instance or if not available. |
aDeviceProductID | [optional] - The device product ID. Set to 0 to fetch from device instance or if not available. |
True | - Firmware Handler is available for specified device |
False | - No firmware handler available for specified device |
void sbIDeviceFirmwareUpdater::recoveryUpdate | ( | in sbIDevice | aDevice, |
in sbIDeviceFirmwareUpdate | aFirmwareUpdate, | ||
in unsigned long | aDeviceVendorID, | ||
in unsigned long | aDeviceProductID, | ||
in sbIDeviceEventListener | aListener | ||
) |
Recover the device restoring it to factory state.
aDevice | - The device to restore to factory state |
aFirmwareUpdate | [optional] - The firmware update to apply to the device when recovering. |
aDeviceVendorID | [optional] - The device vendor ID. Set to 0 to fetch from device instance or if not available. |
aDeviceProductID | [optional] - The device product ID. Set to 0 to fetch from device instance or if not available. |
aListener | [optional] - Device listener to receive events |
void sbIDeviceFirmwareUpdater::registerHandler | ( | in sbIDeviceFirmwareHandler | aFirmwareHandler | ) |
Register a firmware update handler.
aFirmwareHandler | - The firmware handler to register |
void sbIDeviceFirmwareUpdater::requireRecovery | ( | in sbIDevice | aDevice | ) |
Force a device to go through recovery mode.
void sbIDeviceFirmwareUpdater::unregisterHandler | ( | in sbIDeviceFirmwareHandler | aFirmwareHandler | ) |
Unregister a firmware update handler.
aFirmwareHandler | - The firmware handler to unregister |
void sbIDeviceFirmwareUpdater::verifyDevice | ( | in sbIDevice | aDevice, |
in sbIDeviceEventListener | aListener | ||
) |
Verify the firmware on the specified device.
aDevice | - The device to verify |
aListener | [optional] - Device listener to recieve events |
void sbIDeviceFirmwareUpdater::verifyUpdate | ( | in sbIDevice | aDevice, |
in sbIDeviceFirmwareUpdate | aFirmwareUpdate, | ||
in sbIDeviceEventListener | aListener | ||
) |
Verify a firmware update that was previously downloaded.
aDevice | - The device associated with the firmware update |
aFirmwareUpdate | - The firmware update to verify |
aListener | [optional] - Device listener to recieve events |