25 const Cc = Components.classes;
26 const Ci = Components.interfaces;
27 const Cu = Components.utils;
28 const Cr = Components.results;
30 Cu.import(
"resource://gre/modules/XPCOMUtils.jsm");
37 this._bundles =
new Array();
38 Cc[
"@mozilla.org/observer-service;1"]
39 .getService(
Ci.nsIObserverService)
40 .addObserver(
this,
"quit-application",
true);
45 registerHotkeyActionBundle:
function (
bundle) {
46 this._bundles.push(
bundle);
49 unregisterHotkeyActionBundle:
function (
bundle) {
50 var idx = this._bundles.indexOf(
bundle);
52 this._bundles.splice(idx, 1);
53 idx = this._bundles.indexOf(
bundle, idx);
58 return this._bundles.length;
61 enumBundle:
function (idx) {
62 return this._bundles[idx];
68 observe:
function HotkeyActions_observe (aSubject, aTopic,
aData) {
70 case "quit-application": {
72 Cc[
"@mozilla.org/observer-service;1"]
73 .getService(
Ci.nsIObserverService)
74 .removeObserver(
this, aTopic);
84 Ci.nsISupportsWeakReference]),
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
const SONGBIRD_HOTKEYACTIONS_CLASSNAME
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
const SONGBIRD_HOTKEYACTIONS_CONTRACTID
const SONGBIRD_HOTKEYACTIONS_CID
sbDeviceFirmwareAutoCheckForUpdate prototype classID
_updateTextAndScrollDataForFrame aData
sbDeviceFirmwareAutoCheckForUpdate prototype observe