1 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
2 Components.utils.import(
"resource://app/jsmodules/sbLibraryUtils.jsm");
3 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
5 const Cc = Components.classes;
6 const Ci = Components.interfaces;
7 const Cr = Components.results;
10 const CID =
"{066D6E67-39FE-429B-80D8-99A1CEFF3934}";
11 const CONTRACTID =
"@songbirdnest.com/mashTape/manager;1";
14 this.wrappedJSObject =
this;
34 if (!(aListener instanceof
Ci.sbIMashTapeListener))
35 throw Components.results.NS_ERROR_INVALID_ARG;
37 if (this._listeners.indexOf(aListener) == -1) {
38 this._listeners.push(aListener);
42 removeListener :
function(aListener) {
43 var idx = this._listeners.indexOf(aListener);
45 this._listeners.splice(idx, 1);
48 updateInfo :
function(section,
data) {
50 this._listeners.forEach(
function (
listener) {
54 dump(
"Error calling listener.onInfoUpdated: " + e +
"\n");
58 updatePhotos :
function(photos, photoCount) {
60 this._listeners.forEach(
function (
listener) {
61 listener.onPhotosUpdated(photos, photoCount);
64 dump(
"Error calling listener.onPhotosUpdated: " + e +
"\n");
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
Manager class for mashTape.
function NSGetModule(compMgr, fileSpec)
function mashTapeManager()
sbDeviceFirmwareAutoCheckForUpdate prototype classID