25 const Cc = Components.classes;
26 const Ci = Components.interfaces;
27 const Cr = Components.results;
28 const Ce = Components.Exception;
30 Components.utils.import(
"resource://gre/modules/XPCOMUtils.jsm");
31 Components.utils.import(
"resource://app/jsmodules/sbProperties.jsm");
32 Components.utils.import(
"resource://app/jsmodules/ArrayConverter.jsm");
37 var context =
"default";
40 function register(
id,
width, direction)
42 this.registerPropertyToContext(context, SBProperties[
id], width, direction);
46 [
"albumName", 220,
"a"],
47 [
"albumArtistName", 220,
"a"],
48 [
"artistName", 220,
"a"],
51 [
"comment", 120,
"a"],
52 [
"composerName", 150,
"a"],
53 [
"created", 122,
"d"],
54 [
"updated", 122,
"d"],
55 [
"discNumber", 40,
"d"],
56 [
"contentURL", 220,
"a"],
58 [
"lastPlayTime", 122,
"d"],
59 [
"lastSkipTime", 122,
"d"],
60 [
"playCount", 40,
"d"],
62 [
"sampleRate", 75,
"d"],
63 [
"contentLength", 50,
"d"],
64 [
"skipCount", 40,
"d"],
65 [
"originURL", 220,
"a"],
66 [
"originPage", 220,
"a"],
67 [
"originPageTitle", 150,
"a"],
68 [
"duration", 55,
"d"],
69 [
"trackName", 220,
"a"],
70 [
"trackNumber", 40,
"d"],
72 [
"keywords", 220,
"a"],
73 [
"description", 220,
"a"],
74 [
"showName", 220,
"a"],
75 [
"episodeNumber", 40,
"a"],
76 [
"seasonNumber", 40,
"a"],
77 [
"contentType", 40,
"a"],
82 register.apply(
this,
p);
85 this.registerPropertyToContext(context,
86 "http://songbirdnest.com/dummy/smartmedialists/1.0#playlist",
94 classID : Components.ID(
"{4b6a6c23-e247-419e-b629-3c2ef5f5876d}"),
95 contractID :
"@songbirdnest.com/Songbird/SmartPlaylistPropertyRegistrar;1",
101 getPropertiesForContext:
function
102 SmartPlaylistPropertyRegistrar_getPropertyForContext(aContextID) {
103 return ArrayConverter.enumerator(this._maps[aContextID]);
109 registerPropertyToContext:
function
110 SmartPlaylistPropertyRegistrar_registerPropertyToContext(aContextID,
114 if (!(aContextID in this._maps)) {
115 this._maps[aContextID] = [];
117 var smartPlaylistProperty = {
118 propertyID : aPropertyID,
119 defaultColumnWidth : aColWidth,
120 defaultSortDirection : aSortDir,
123 this._maps[aContextID].push(smartPlaylistProperty);
130 XPCOMUtils.generateQI([
Ci.sbISmartPlaylistPropertyRegistrar])
134 XPCOMUtils.categoryManager
135 .addCategoryEntry(
'app-startup',
136 'smartplaylist-property-registrar',
137 'service,@songbirdnest.com/Songbird/SmartPlaylistPropertyRegistrar;1',
sbDeviceFirmwareAutoCheckForUpdate prototype contractID
sbOSDControlService prototype QueryInterface
sbDeviceFirmwareAutoCheckForUpdate prototype classDescription
function postRegister(aCompMgr, aFileSpec, aLocation)
DataRemote prototype constructor
function SmartPlaylistPropertyRegistrar()
sbDeviceFirmwareAutoCheckForUpdate prototype classID