ngMutableEqualizerPreset.js
Go to the documentation of this file.
1 /*
2 //
3 // BEGIN NIGHTINGALE GPL
4 //
5 // This file is part of the Nightingale web player.
6 //
7 // http://getnightingale.com
8 //
9 // This file may be licensed under the terms of of the
10 // GNU General Public License Version 2 (the "GPL").
11 //
12 // Software distributed under the License is distributed
13 // on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
14 // express or implied. See the GPL for the specific language
15 // governing rights and limitations.
16 //
17 // You should have received a copy of the GPL along with this
18 // program. If not, go to http://www.gnu.org/licenses/gpl.html
19 // or write to the Free Software Foundation, Inc.,
20 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 //
22 // END NIGHTINGALE GPL
23 //
24 */
25 
26 "use strict";
27 
28 Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
29 
37  XPCOMUtils.defineLazyServiceGetter(this, "_gMM", "@songbirdnest.com/Songbird/Mediacore/Manager;1", "sbIMediacoreManager");
38 }
39 
41  classDescription: "Basic mutable equalizer preset",
42  classID: Components.ID("{f87e3ba3-c3fe-437a-8b2f-3aeb48536a9b}"),
43  contractID: "@getnightingale.com/equalizer-presets/mutable;1",
44  QueryInterface: XPCOMUtils.generateQI([Components.interfaces.ngIMutableEqualizerPreset]),
45 
46  _gMM: null,
47 
48  _name: null,
49  _values: null,
50 
51  get name() {
52  return this._name;
53  },
54  setName: function(aName) {
55  this._name = aName;
56  },
57  get values() {
58  return this._values;
59  },
60  setValues: function(aValues) {
61  if(aValues instanceof Components.interfaces.nsIArray &&
62  aValues.length == 10) //TODO shouldn't hardcode 10, though the equalizer component my not yet be initialized
63  this._values = aValues;
64  else
65  throw Components.results.NS_ERROR_ILLEGAL_VALUE;
66  }
67 };
68 
69 var NSGetModule = XPCOMUtils.generateNSGetModule([ngMutableEqualizerPreset]);
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
function ngMutableEqualizerPreset()
return null
Definition: FeedWriter.js:1143
_updateCookies aName
sbDeviceFirmwareAutoCheckForUpdate prototype classID