sbIDeviceFirmwareUpdater.idl
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN SONGBIRD GPL
4 //
5 // This file is part of the Songbird web player.
6 //
7 // Copyright(c) 2005-2009 POTI, Inc.
8 // http://songbirdnest.com
9 //
10 // This file may be licensed under the terms of of the
11 // GNU General Public License Version 2 (the "GPL").
12 //
13 // Software distributed under the License is distributed
14 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
15 // express or implied. See the GPL for the specific language
16 // governing rights and limitations.
17 //
18 // You should have received a copy of the GPL along with this
19 // program. If not, go to http://www.gnu.org/licenses/gpl.html
20 // or write to the Free Software Foundation, Inc.,
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22 //
23 // END SONGBIRD GPL
24 //
25 */
26 
27 #include "nsISupports.idl"
28 
29 interface sbIDevice;
30 interface sbIDeviceEventListener;
31 interface sbIDeviceFirmwareHandler;
32 interface sbIDeviceFirmwareUpdate;
33 
44 [scriptable, uuid(f6ad23c7-bd65-4fee-8536-0b47b493109e)]
46 {
61  void checkForUpdate(in sbIDevice aDevice,
62  in unsigned long aDeviceVendorID,
63  in unsigned long aDeviceProductID,
64  in sbIDeviceEventListener aListener);
65 
78  void downloadUpdate(in sbIDevice aDevice,
79  in boolean aVerifyFirmwareUpdate,
80  in sbIDeviceEventListener aListener);
81 
92  void verifyUpdate(in sbIDevice aDevice,
93  in sbIDeviceFirmwareUpdate aFirmwareUpdate,
94  in sbIDeviceEventListener aListener);
95 
107  void applyUpdate(in sbIDevice aDevice,
108  in sbIDeviceFirmwareUpdate aFirmwareUpdate,
109  in sbIDeviceEventListener aListener);
110 
122  void recoveryUpdate(in sbIDevice aDevice,
123  in sbIDeviceFirmwareUpdate aFirmwareUpdate,
124  in unsigned long aDeviceVendorID,
125  in unsigned long aDeviceProductID,
126  in sbIDeviceEventListener aListener);
127 
133  boolean continueUpdate(in sbIDevice aDevice,
134  in sbIDeviceEventListener aListener);
135 
143  void finalizeUpdate(in sbIDevice aDevice);
144 
154  void verifyDevice(in sbIDevice aDevice,
155  in sbIDeviceEventListener aListener);
156 
162  void registerHandler(in sbIDeviceFirmwareHandler aFirmwareHandler);
163 
169  void unregisterHandler(in sbIDeviceFirmwareHandler aFirmwareHandler);
170 
181  boolean hasHandler(in sbIDevice aDevice,
182  in unsigned long aDeviceVendorID,
183  in unsigned long aDeviceProductID);
184 
198  in unsigned long aDeviceVendorID,
199  in unsigned long aDeviceProductID);
200 
205 
209  void cancel(in sbIDevice aDevice);
210 
214  void requireRecovery(in sbIDevice aDevice);
215 };
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.
void cancel(in sbIDevice aDevice)
Cancel the current operation.
void requireRecovery(in sbIDevice aDevice)
Force a device to go through recovery mode.
sbIDeviceFirmwareHandler getHandler(in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID)
Get the firmware handler for the specified device.
var uuid
void checkForUpdate(in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID, in sbIDeviceEventListener aListener)
Check for an update.
void downloadUpdate(in sbIDevice aDevice, in boolean aVerifyFirmwareUpdate, in sbIDeviceEventListener aListener)
Download an update for a device.
sbIDeviceFirmwareHandler getActiveHandler(in sbIDevice aDevice)
Get the running firmware handler for the specified device.
void finalizeUpdate(in sbIDevice aDevice)
Finalize the auto-update process.
boolean hasHandler(in sbIDevice aDevice, in unsigned long aDeviceVendorID, in unsigned long aDeviceProductID)
Is there a handler available for the specified device.
void applyUpdate(in sbIDevice aDevice, in sbIDeviceFirmwareUpdate aFirmwareUpdate, in sbIDeviceEventListener aListener)
Apply firmware update to device.
void unregisterHandler(in sbIDeviceFirmwareHandler aFirmwareHandler)
Unregister a firmware update handler.
boolean continueUpdate(in sbIDevice aDevice, in sbIDeviceEventListener aListener)
Continue the auto-update process.
void verifyUpdate(in sbIDevice aDevice, in sbIDeviceFirmwareUpdate aFirmwareUpdate, in sbIDeviceEventListener aListener)
Verify a firmware update that was previously downloaded.
void registerHandler(in sbIDeviceFirmwareHandler aFirmwareHandler)
Register a firmware update handler.
void verifyDevice(in sbIDevice aDevice, in sbIDeviceEventListener aListener)
Verify the firmware on the specified device.