25 const Cc = Components.classes;
26 const Ci = Components.interfaces;
27 const Cu = Components.utils;
29 Cu.import(
"resource://gre/modules/XPCOMUtils.jsm");
46 classID: Components.ID(
"{8bb6de60-a11b-11de-8a39-0800200c9a66}"),
47 contractID:
"@songbirdnest.com/Songbird/MediacoreErrorHandler;1",
55 processError:
function ErrorHandler_processError(aError) {
57 .getService(
Ci.fuelIApplication);
58 if (Application.prefs.getValue(
"songbird.mediacore.error.dontshowme",
63 if (errorDialog && !errorDialog.closed) {
65 errorQueue.push(aError);
67 errorDialog.addError(aError);
70 var windowWatcher =
Cc[
"@mozilla.org/embedcomp/window-watcher;1"]
71 .getService(
Ci.nsIWindowWatcher);
72 errorDialog = windowWatcher.openWindow(windowWatcher.activeWindow,
73 "chrome://songbird/content/xul/mediacore/mediacoreErrorDialog.xul",
75 "centerscreen,chrome,resizable,titlebar",
80 errorDialog.addEventListener(
"load",
function() {
81 for each (let error
in errorQueue)
82 errorDialog.addError(error);
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
sbDeviceFirmwareAutoCheckForUpdate prototype classID