sbDeviceEventMonitor.js File Reference

This service monitors devices for events, we can then perform various tasks based on these events. This is a global monitor so it will get events for all devices and also detects devices being added or removed. More...

Go to the source code of this file.

Functions

Cu import ("resource://gre/modules/XPCOMUtils.jsm")
 
function deviceEventMonitor ()
 
function NSGetModule (compMgr, fileSpec)
 

Variables

const Cc = Components.classes
 
const Ci = Components.interfaces
 
const Cu = Components.utils
 
const VIDEO_TOGO_PLAYLIST_NAME = "video-togo"
 
var deviceEventMonitorConfig
 
deviceEventMonitor prototype
 

Detailed Description

This service monitors devices for events, we can then perform various tasks based on these events. This is a global monitor so it will get events for all devices and also detects devices being added or removed.

Definition in file sbDeviceEventMonitor.js.

Function Documentation

function deviceEventMonitor ( )

Definition at line 63 of file sbDeviceEventMonitor.js.

Here is the caller graph for this function:

Cu import ( "resource://gre/modules/XPCOMUtils.jsm"  )
function NSGetModule (   compMgr,
  fileSpec 
)

/brief XPCOM initialization code

Definition at line 245 of file sbDeviceEventMonitor.js.

Here is the call graph for this function:

Variable Documentation

const Cc = Components.classes

Definition at line 32 of file sbDeviceEventMonitor.js.

Definition at line 33 of file sbDeviceEventMonitor.js.

const Cu = Components.utils

Definition at line 34 of file sbDeviceEventMonitor.js.

var deviceEventMonitorConfig
Initial value:
= {
className: "Songbird Device Event Monitor Service",
cid: Components.ID("{57b32ce8-a373-4d8d-babb-9d23afeeb409}"),
contractID: "@songbirdnest.com/device/event-monitor-service;1",
ifList: [ Ci.sbIDeviceEventListener,
Ci.nsISupportsWeakReference,
Ci.nsIObserver ],
[
{
category: 'app-startup',
entry: 'service-device-event-monitor',
value: 'service,@songbirdnest.com/device/event-monitor-service;1'
}
]
}
classDescription entry
Definition: FeedWriter.js:1427
sbLibraryImporterManagerCfg categoryList
sbOSDControlService prototype className
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
const Ci
countRef value
Definition: FeedWriter.js:1423

Definition at line 44 of file sbDeviceEventMonitor.js.

deviceEventMonitor prototype

Definition at line 72 of file sbDeviceEventMonitor.js.

const VIDEO_TOGO_PLAYLIST_NAME = "video-togo"

Definition at line 42 of file sbDeviceEventMonitor.js.