sbMetadataAlbumDetail.js
Go to the documentation of this file.
1 /*
2  *=BEGIN SONGBIRD GPL
3  *
4  * This file is part of the Songbird web player.
5  *
6  * Copyright(c) 2005-2009 POTI, Inc.
7  * http://www.songbirdnest.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 SONGBIRD GPL
23  */
24 
25 const Cc = Components.classes;
26 const Ci = Components.interfaces;
27 const Cr = Components.results;
28 const Ce = Components.Exception;
29 const Cu = Components.utils;
30 
31 Cu.import("resource://gre/modules/XPCOMUtils.jsm");
32 Cu.import("resource://app/jsmodules/ArrayConverter.jsm");
33 Cu.import("resource://app/jsmodules/WindowUtils.jsm");
34 Cu.import("resource://app/jsmodules/SBTimer.jsm");
35 
36 function sbMLAlbumDetail() {
37  this._tracks = Cc["@songbirdnest.com/moz/xpcom/threadsafe-array;1"]
38  .createInstance(Ci.nsIMutableArray);
39 
40  this._properties =
41  Cc["@songbirdnest.com/Songbird/Properties/MutablePropertyArray;1"]
42  .createInstance(Ci.sbIMutablePropertyArray);
43 }
44 
45 sbMLAlbumDetail.prototype = {
46  classDescription : 'Songbird Metadata Lookup Album Detail',
47  classID : Components.ID("84dd6e90-1dd2-11b2-bad9-c6f63b798098"),
48  contractID : "@songbirdnest.com/Songbird/MetadataLookup/albumdetail;1",
49  QueryInterface : XPCOMUtils.generateQI([Ci.sbIMetadataAlbumDetail]),
50 
52  get tracks() {
53  return this._tracks;
54  },
55 
56  get properties() {
57  return this._properties;
58  },
59 }
60 
61 function NSGetModule(compMgr, fileSpec) {
62  return XPCOMUtils.generateModule([sbMLAlbumDetail]);
63 }
const Cr
const Ci
function sbMLAlbumDetail()
const Ce
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
const Cc
sbDeviceFirmwareAutoCheckForUpdate prototype classID
const Cu