import"sbIDeviceFirmwareHandler.idl";
Public Member Functions | |
| boolean | canUpdate (in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID) |
| Check to see if this handler can update the specified device. More... | |
| void | initiateRecoveryModeSwitch ([optional] in unsigned long aDeviceVendorID, [optional] in unsigned long aDeviceProductID) |
| Notify the handler to expect a device to connect in recovery mode. More... | |
| void | bind (in sbIDevice aDevice, in sbIDeviceEventListener aListener) |
| Bind the handler to a device. More... | |
| boolean | rebind (in sbIDevice aDevice, in sbIDeviceEventListener aListener) |
| Rebind a device to an already running handler. More... | |
| void | unbind () |
| Unbind the handler. More... | |
| void | cancel () |
| Cancel the current operation. More... | |
| void | refreshInfo () |
| Refresh the firmware location, version, readable version, notes, and instructions. More... | |
| void | update (in sbIDeviceFirmwareUpdate aFirmwareUpdate) |
| Perform a firmware update on the specified device. More... | |
| void | recover (in sbIDeviceFirmwareUpdate aFirmwareUpdate) |
| Perform a recovery update on the specified device. More... | |
| void | verifyDevice () |
| Verify the firmware already on the device. More... | |
| void | verifyUpdate (in sbIDeviceFirmwareUpdate aFirmwareUpdate) |
| Verify the firmware update image. More... | |
Public Attributes | |
| readonly attribute AString | contractId |
| The Contract ID for this handler. More... | |
| readonly attribute nsIURI | latestFirmwareLocation |
| URI for latest firmware (where it can be downloaded from). More... | |
| readonly attribute unsigned long | latestFirmwareVersion |
| The latest firmware version, in machine friendly format. More... | |
| readonly attribute AString | latestFirmwareReadableVersion |
| The latest firmware version, in human readable format. More... | |
| readonly attribute unsigned long | currentFirmwareVersion |
| The current firmware version, in machine friendly format. More... | |
| readonly attribute AString | currentFirmwareReadableVersion |
| The current firmware version on the device, in human readable format (eg. xx.xx.xx.xx). More... | |
| readonly attribute nsIURI | releaseNotesLocation |
| Location for the release notes of the latest firmware. More... | |
| readonly attribute nsIURI | resetInstructionsLocation |
| Location of the reset instructions. More... | |
| readonly attribute AString | recoveryModeKeyCombination |
| Magic key combination required by the device to go into recovery or firmware flashing mode. More... | |
| readonly attribute nsIURI | customerSupportLocation |
| Device Customer Support URL. More... | |
| readonly attribute nsIURI | registerLocation |
| Location where one can perform owner registration with the device manufacturer. More... | |
| readonly attribute boolean | needsRecoveryMode |
| Whether the device needs to be in recovery mode to have its firmware updated. More... | |
| readonly attribute boolean | recoveryMode |
| Indicates whether the device is in recovery mode or not. More... | |
| readonly attribute sbIDeviceFirmwareUpdate | defaultFirmwareUpdate |
| The default firmware update that is packaged with the firmware handler. This update should always be available. More... | |
| readonly attribute sbIDevice | boundDevice |
| The device bound to this handler, or null. More... | |
| readonly attribute AString | deviceModelNumber |
| Device model number / name as reported by the firmware handler. More... | |
| readonly attribute AString | deviceModelVersion |
| Device model version / version name as reported by the firmware handler. More... | |
| readonly attribute AString | deviceVendor |
| Device manufacturer as reported by the firmware handler. More... | |
| readonly attribute nsISimpleEnumerator | supportedDevices |
| Array containing the list of devices supported by the firmware handler. More... | |
Definition at line 42 of file sbIDeviceFirmwareHandler.idl.
| void sbIDeviceFirmwareHandler::bind | ( | in sbIDevice | aDevice, |
| in sbIDeviceEventListener | aListener | ||
| ) |
Bind the handler to a device.
| aDevice | - The device you wish to bind to |
| [optional] | aListener - Optional event listener to also send events to, may be null. |
| NS_ERROR_ALREADY_INITIALIZED | when handler is already bound. |
| void sbIDeviceFirmwareHandler::cancel | ( | ) |
Cancel the current operation.
| boolean sbIDeviceFirmwareHandler::canUpdate | ( | in sbIDevice | aDevice, |
| in unsigned long | aDeviceVendorID, | ||
| in unsigned long | aDeviceProductID | ||
| ) |
Check to see if this handler can update the specified device.
| aDevice | - The device |
| aDeviceVendorID | [optional] - The device vendor ID. Set to 0 if not available. |
| aDeviceProductID | [optional] - The device product ID. Set to 0 if not available. |
| void sbIDeviceFirmwareHandler::initiateRecoveryModeSwitch | ( | [optional] in unsigned long | aDeviceVendorID, |
| [optional] in unsigned long | aDeviceProductID | ||
| ) |
Notify the handler to expect a device to connect in recovery mode.
| aDeviceVendorID | - The device vendor ID of the device that will reconnect in recovery mode, or 0 for the currently bound device. |
| aDeviceProductID | - The device product ID of the device that will reconnect in recovery mode, or 0 for the currently bound device. |
| boolean sbIDeviceFirmwareHandler::rebind | ( | in sbIDevice | aDevice, |
| in sbIDeviceEventListener | aListener | ||
| ) |
Rebind a device to an already running handler.
| aDevice | - The device you wish to bind to |
| [optional] | aListener - Optional event listener to also send events to, may be null. |
| PR_TRUE | Rebinding was successful |
| PR_FALSE | Rebinding failed |
| void sbIDeviceFirmwareHandler::recover | ( | in sbIDeviceFirmwareUpdate | aFirmwareUpdate | ) |
Perform a recovery update on the specified device.
| aFirmwareUpdate | - The firmware update to apply during the recovery update. |
| void sbIDeviceFirmwareHandler::refreshInfo | ( | ) |
Refresh the firmware location, version, readable version, notes, and instructions.
| void sbIDeviceFirmwareHandler::unbind | ( | ) |
Unbind the handler.
| void sbIDeviceFirmwareHandler::update | ( | in sbIDeviceFirmwareUpdate | aFirmwareUpdate | ) |
Perform a firmware update on the specified device.
| aFirmwareUpdate | - The firmware update to apply |
| void sbIDeviceFirmwareHandler::verifyDevice | ( | ) |
Verify the firmware already on the device.
| void sbIDeviceFirmwareHandler::verifyUpdate | ( | in sbIDeviceFirmwareUpdate | aFirmwareUpdate | ) |
Verify the firmware update image.
| aFirmwareUpdate | - The firmware update to verify |
| readonly attribute sbIDevice sbIDeviceFirmwareHandler::boundDevice |
The device bound to this handler, or null.
Definition at line 147 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::contractId |
The Contract ID for this handler.
Definition at line 47 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::currentFirmwareReadableVersion |
The current firmware version on the device, in human readable format (eg. xx.xx.xx.xx).
Definition at line 82 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute unsigned long sbIDeviceFirmwareHandler::currentFirmwareVersion |
The current firmware version, in machine friendly format.
Definition at line 75 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsIURI sbIDeviceFirmwareHandler::customerSupportLocation |
Device Customer Support URL.
Definition at line 113 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute sbIDeviceFirmwareUpdate sbIDeviceFirmwareHandler::defaultFirmwareUpdate |
The default firmware update that is packaged with the firmware handler. This update should always be available.
Definition at line 142 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::deviceModelNumber |
Device model number / name as reported by the firmware handler.
Definition at line 153 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::deviceModelVersion |
Device model version / version name as reported by the firmware handler.
Definition at line 160 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::deviceVendor |
Device manufacturer as reported by the firmware handler.
Definition at line 166 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsIURI sbIDeviceFirmwareHandler::latestFirmwareLocation |
URI for latest firmware (where it can be downloaded from).
Definition at line 54 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::latestFirmwareReadableVersion |
The latest firmware version, in human readable format.
Definition at line 68 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute unsigned long sbIDeviceFirmwareHandler::latestFirmwareVersion |
The latest firmware version, in machine friendly format.
Definition at line 61 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute boolean sbIDeviceFirmwareHandler::needsRecoveryMode |
Whether the device needs to be in recovery mode to have its firmware updated.
Definition at line 129 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute boolean sbIDeviceFirmwareHandler::recoveryMode |
Indicates whether the device is in recovery mode or not.
Definition at line 136 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute AString sbIDeviceFirmwareHandler::recoveryModeKeyCombination |
Magic key combination required by the device to go into recovery or firmware flashing mode.
Definition at line 106 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsIURI sbIDeviceFirmwareHandler::registerLocation |
Location where one can perform owner registration with the device manufacturer.
Definition at line 121 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsIURI sbIDeviceFirmwareHandler::releaseNotesLocation |
Location for the release notes of the latest firmware.
Definition at line 89 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsIURI sbIDeviceFirmwareHandler::resetInstructionsLocation |
Location of the reset instructions.
Definition at line 97 of file sbIDeviceFirmwareHandler.idl.
| readonly attribute nsISimpleEnumerator sbIDeviceFirmwareHandler::supportedDevices |
Array containing the list of devices supported by the firmware handler.
Definition at line 174 of file sbIDeviceFirmwareHandler.idl.