sbDeviceFirmwareAutoCheckForUpdate.js File Reference

Go to the source code of this file.

Functions

Components utils import ("resource://gre/modules/XPCOMUtils.jsm")
 
function DEBUG (msg)
 
function sbDeviceFirmwareAutoCheckForUpdate ()
 

Variables

const Ci = Components.interfaces
 
const Cc = Components.classes
 
const Cr = Components.results
 
const Cu = Components.utils
 
const NS_QUIT_APPLICATION_GRANTED_TOPIC = "quit-application-granted"
 
const NS_TIMER_CALLBACK_TOPIC = "timer-callback"
 
const SB_FINAL_UI_STARTUP_TOPIC = "final-ui-startup"
 
const SB_TIMER_MANAGER_PREFIX = "songbird-device-firmware-update-"
 
const FIRMWARE_WIZARD_ACTIVE_DATAREMOTE = "firmware.wizard.active"
 
const FIRMWARE_UPDATE_INTERVAL = "songbird.firmware.update.defaultInterval"
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_deviceFirmwareUpdater = null
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_deviceManager = null
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_registeredDevices = {}
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_queue = []
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_queueItem = null
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_queueItemSuccess = false
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_timer = null
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
_timerManager = null
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
classDescription
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
classID
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
contractID
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
flags = Ci.nsIClassInfo.SINGLETON
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
interfaces
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
getHelperForLanguage = Function()
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
getInterfaces
 
sbDeviceFirmwareAutoCheckForUpdate
prototype 
observe
 

Function Documentation

function DEBUG (   msg)

Definition at line 46 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Here is the caller graph for this function:

Components utils import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function sbDeviceFirmwareAutoCheckForUpdate ( )

Definition at line 96 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Here is the call graph for this function:

Variable Documentation

a cached reference to the device firmware update service

Definition at line 105 of file sbDeviceFirmwareAutoCheckForUpdate.js.

a cached reference to the device manager service

Definition at line 107 of file sbDeviceFirmwareAutoCheckForUpdate.js.

the queue of devices currently needing a firmware update check

Definition at line 111 of file sbDeviceFirmwareAutoCheckForUpdate.js.

the device currenly being checked for a firmware update

Definition at line 113 of file sbDeviceFirmwareAutoCheckForUpdate.js.

whether the current item in the queue has been successfully checked

Definition at line 115 of file sbDeviceFirmwareAutoCheckForUpdate.js.

a set where the keys are the ids of devices that have registered timers

Definition at line 109 of file sbDeviceFirmwareAutoCheckForUpdate.js.

timer used to manage firmware update queue

Definition at line 117 of file sbDeviceFirmwareAutoCheckForUpdate.js.

the timer manager service (long-running timer service)

Definition at line 119 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const Cc = Components.classes

Definition at line 33 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Definition at line 32 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Initial value:
=
'Songbird Device Firmware Auto Check For Update'

Definition at line 121 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Initial value:
=
Components.ID("{2137a87f-2ade-448b-a093-bad4f6649fa3}")

Definition at line 123 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Initial value:
=
'@songbirdnest.com/Songbird/Device/Firmware/AutoCheckForUpdate

Definition at line 125 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const Cr = Components.results

Definition at line 34 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const Cu = Components.utils

Definition at line 35 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const FIRMWARE_UPDATE_INTERVAL = "songbird.firmware.update.defaultInterval"

Definition at line 44 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const FIRMWARE_WIZARD_ACTIVE_DATAREMOTE = "firmware.wizard.active"

Definition at line 42 of file sbDeviceFirmwareAutoCheckForUpdate.js.

sbDeviceFirmwareAutoCheckForUpdate prototype flags = Ci.nsIClassInfo.SINGLETON

Definition at line 127 of file sbDeviceFirmwareAutoCheckForUpdate.js.

sbDeviceFirmwareAutoCheckForUpdate prototype getHelperForLanguage = Function()

Definition at line 130 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Initial value:
=
function sbDeviceFirmwareAutoCheckForUpdate_getInterfaces(count) {
count.value = this.interfaces.length;
return this.interfaces;
}
sbDeviceFirmwareAutoCheckForUpdate.prototype.QueryInterface =
XPCOMUtils.generateQI(sbDeviceFirmwareAutoCheckForUpdate.prototype.interfaces)
var count
Definition: test_bug7406.js:32
function sbDeviceFirmwareAutoCheckForUpdate()
sbDeviceFirmwareAutoCheckForUpdate prototype interfaces

Definition at line 131 of file sbDeviceFirmwareAutoCheckForUpdate.js.

Initial value:
=
[Ci.nsISupports, Ci.nsIClassInfo, Ci.nsIObserver, Ci.sbIDeviceEventListener]

Definition at line 128 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const NS_QUIT_APPLICATION_GRANTED_TOPIC = "quit-application-granted"

Definition at line 37 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const NS_TIMER_CALLBACK_TOPIC = "timer-callback"

Definition at line 38 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const SB_FINAL_UI_STARTUP_TOPIC = "final-ui-startup"

Definition at line 39 of file sbDeviceFirmwareAutoCheckForUpdate.js.

const SB_TIMER_MANAGER_PREFIX = "songbird-device-firmware-update-"

Definition at line 40 of file sbDeviceFirmwareAutoCheckForUpdate.js.