-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathsbStandardProperties.h
195 lines (180 loc) · 13 KB
/
sbStandardProperties.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
/*
*=BEGIN SONGBIRD GPL
*
* This file is part of the Songbird web player.
*
* Copyright(c) 2005-2011 POTI, Inc.
* http://www.songbirdnest.com
*
* This file may be licensed under the terms of of the
* GNU General Public License Version 2 (the ``GPL'').
*
* Software distributed under the License is distributed
* on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
* express or implied. See the GPL for the specific language
* governing rights and limitations.
*
* You should have received a copy of the GPL along with this
* program. If not, go to http://www.gnu.org/licenses/gpl.html
* or write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*=END SONGBIRD GPL
*/
#ifndef __SB_STANDARD_PROPERTIES_H__
#define __SB_STANDARD_PROPERTIES_H__
#define SB_PROPERTY_STORAGEGUID "http://songbirdnest.com/data/1.0#storageGUID"
#define SB_PROPERTY_CREATED "http://songbirdnest.com/data/1.0#created"
#define SB_PROPERTY_UPDATED "http://songbirdnest.com/data/1.0#updated"
#define SB_PROPERTY_CONTENTURL "http://songbirdnest.com/data/1.0#contentURL"
#define SB_PROPERTY_CONTENTTYPE "http://songbirdnest.com/data/1.0#contentType"
#define SB_PROPERTY_CONTENTLENGTH "http://songbirdnest.com/data/1.0#contentLength"
#define SB_PROPERTY_HASH "http://songbirdnest.com/data/1.0#hash"
// Stores a mediaitem's identity as calculated by hashing various metadata
#define SB_PROPERTY_METADATA_HASH_IDENTITY "http://songbirdnest.com/data/1.0#metadataHashIdentity"
#define SB_PROPERTY_TRACKNAME "http://songbirdnest.com/data/1.0#trackName"
#define SB_PROPERTY_ALBUMNAME "http://songbirdnest.com/data/1.0#albumName"
#define SB_PROPERTY_ARTISTNAME "http://songbirdnest.com/data/1.0#artistName"
// Track source of the media item, for the "Source" media view colume.
#define SB_PROPERTY_TRACKTYPE "http://songbirdnest.com/data/1.0#trackType"
#define SB_PROPERTY_DURATION "http://songbirdnest.com/data/1.0#duration"
#define SB_PROPERTY_GENRE "http://songbirdnest.com/data/1.0#genre"
#define SB_PROPERTY_TRACKNUMBER "http://songbirdnest.com/data/1.0#trackNumber"
#define SB_PROPERTY_YEAR "http://songbirdnest.com/data/1.0#year"
#define SB_PROPERTY_DISCNUMBER "http://songbirdnest.com/data/1.0#discNumber"
#define SB_PROPERTY_TOTALDISCS "http://songbirdnest.com/data/1.0#totalDiscs"
#define SB_PROPERTY_TOTALTRACKS "http://songbirdnest.com/data/1.0#totalTracks"
#define SB_PROPERTY_ISPARTOFCOMPILATION "http://songbirdnest.com/data/1.0#isPartOfCompilation"
#define SB_PROPERTY_PRODUCERNAME "http://songbirdnest.com/data/1.0#producerName"
#define SB_PROPERTY_COMPOSERNAME "http://songbirdnest.com/data/1.0#composerName"
#define SB_PROPERTY_CONDUCTORNAME "http://songbirdnest.com/data/1.0#conductorName"
#define SB_PROPERTY_LYRICISTNAME "http://songbirdnest.com/data/1.0#lyricistName"
#define SB_PROPERTY_LYRICS "http://songbirdnest.com/data/1.0#lyrics"
#define SB_PROPERTY_RECORDLABELNAME "http://songbirdnest.com/data/1.0#recordLabelName"
#define SB_PROPERTY_PRIMARYIMAGEURL "http://songbirdnest.com/data/1.0#primaryImageURL"
#define SB_PROPERTY_LASTPLAYTIME "http://songbirdnest.com/data/1.0#lastPlayTime"
#define SB_PROPERTY_PLAYCOUNT "http://songbirdnest.com/data/1.0#playCount"
#define SB_PROPERTY_LASTPLAYPOSITION "http://songbirdnest.com/data/1.0#lastPlayPosition"
#define SB_PROPERTY_LASTSKIPTIME "http://songbirdnest.com/data/1.0#lastSkipTime"
#define SB_PROPERTY_SKIPCOUNT "http://songbirdnest.com/data/1.0#skipCount"
#define SB_PROPERTY_RATING "http://songbirdnest.com/data/1.0#rating"
#define SB_PROPERTY_BITRATE "http://songbirdnest.com/data/1.0#bitRate"
#define SB_PROPERTY_CHANNELS "http://songbirdnest.com/data/1.0#channels"
#define SB_PROPERTY_SAMPLERATE "http://songbirdnest.com/data/1.0#sampleRate"
#define SB_PROPERTY_BPM "http://songbirdnest.com/data/1.0#bpm"
#define SB_PROPERTY_KEY "http://songbirdnest.com/data/1.0#key"
#define SB_PROPERTY_LANGUAGE "http://songbirdnest.com/data/1.0#language"
#define SB_PROPERTY_COMMENT "http://songbirdnest.com/data/1.0#comment"
#define SB_PROPERTY_COPYRIGHT "http://songbirdnest.com/data/1.0#copyright"
#define SB_PROPERTY_COPYRIGHTURL "http://songbirdnest.com/data/1.0#copyrightURL"
#define SB_PROPERTY_SUBTITLE "http://songbirdnest.com/data/1.0#subtitle"
#define SB_PROPERTY_METADATAUUID "http://songbirdnest.com/data/1.0#metadataUUID"
#define SB_PROPERTY_SOFTWAREVENDOR "http://songbirdnest.com/data/1.0#softwareVendor"
#define SB_PROPERTY_ORIGINURL "http://songbirdnest.com/data/1.0#originURL"
#define SB_PROPERTY_ORIGINPAGE "http://songbirdnest.com/data/1.0#originPage"
#define SB_PROPERTY_ORIGINPAGEIMAGE "http://songbirdnest.com/data/1.0#originPageImage"
#define SB_PROPERTY_ORIGINPAGETITLE "http://songbirdnest.com/data/1.0#originPageTitle"
/* for items copied from other libraries, the library it came from */
#define SB_PROPERTY_ORIGINLIBRARYGUID "http://songbirdnest.com/data/1.0#originLibraryGuid"
/* for items copied from other libraries, the original item's guid */
#define SB_PROPERTY_ORIGINITEMGUID "http://songbirdnest.com/data/1.0#originItemGuid"
#define SB_PROPERTY_GUID "http://songbirdnest.com/data/1.0#GUID"
#define SB_PROPERTY_HIDDEN "http://songbirdnest.com/data/1.0#hidden"
#define SB_PROPERTY_ISLIST "http://songbirdnest.com/data/1.0#isList"
#define SB_PROPERTY_LISTTYPE "http://songbirdnest.com/data/1.0#listType"
#define SB_PROPERTY_ISREADONLY "http://songbirdnest.com/data/1.0#isReadOnly"
#define SB_PROPERTY_ISCONTENTREADONLY "http://songbirdnest.com/data/1.0#isContentReadOnly"
#define SB_PROPERTY_ORDINAL "http://songbirdnest.com/data/1.0#ordinal"
#define SB_PROPERTY_MEDIALISTNAME "http://songbirdnest.com/data/1.0#mediaListName"
#define SB_PROPERTY_COLUMNSPEC "http://songbirdnest.com/data/1.0#columnSpec"
#define SB_PROPERTY_DEFAULTCOLUMNSPEC "http://songbirdnest.com/data/1.0#defaultColumnSpec"
#define SB_PROPERTY_CUSTOMTYPE "http://songbirdnest.com/data/1.0#customType"
#define SB_PROPERTY_DESTINATION "http://songbirdnest.com/data/1.0#destination"
#define SB_PROPERTY_DOWNLOADBUTTON "http://songbirdnest.com/data/1.0#downloadButton"
#define SB_PROPERTY_DOWNLOAD_STATUS_TARGET "http://songbirdnest.com/data/1.0#downloadStatusTarget"
#define SB_PROPERTY_DOWNLOAD_DETAILS "http://songbirdnest.com/data/1.0#downloadDetails"
#define SB_PROPERTY_ISSORTABLE "http://songbirdnest.com/data/1.0#isSortable"
#define SB_PROPERTY_RAPISCOPEURL "http://songbirdnest.com/data/1.0#rapiScopeURL"
#define SB_PROPERTY_RAPISITEID "http://songbirdnest.com/data/1.0#rapiSiteID"
#define SB_PROPERTY_ENABLE_AUTO_DOWNLOAD "http://songbirdnest.com/data/1.0#enableAutoDownload"
#define SB_PROPERTY_TRANSFER_POLICY "http://songbirdnest.com/data/1.0#transferPolicy"
#define SB_PROPERTY_DEFAULT_MEDIAPAGE_URL "http://songbirdnest.com/data/1.0#defaultMediaPageURL"
#define SB_PROPERTY_ONLY_CUSTOM_MEDIAPAGES "http://songbirdnest.com/data/1.0#onlyCustomMediaPages"
#define SB_PROPERTY_AVAILABILITY "http://songbirdnest.com/data/1.0#availability"
#define SB_PROPERTY_ALBUMARTISTNAME "http://songbirdnest.com/data/1.0#albumArtistName"
#define SB_PROPERTY_OUTERGUID "http://songbirdnest.com/data/1.0#outerGUID"
#define SB_PROPERTY_ALBUMDETAIL "http://songbirdnest.com/data/1.0#albumDetailImage"
#define SB_PROPERTY_ARTISTDETAIL "http://songbirdnest.com/data/1.0#artistDetailImage"
#define SB_PROPERTY_ALBUMDETAILURL "http://songbirdnest.com/data/1.0#albumDetailUrl"
#define SB_PROPERTY_ARTISTDETAILURL "http://songbirdnest.com/data/1.0#artistDetailUrl"
#define SB_PROPERTY_EXCLUDE_FROM_HISTORY "http://songbirdnest.com/data/1.0#excludeFromHistory"
#define SB_PROPERTY_DISABLE_DOWNLOAD "http://songbirdnest.com/data/1.0#disableDownload"
#define SB_PROPERTY_ISSUBSCRIPTION "http://songbirdnest.com/data/1.0#isSubscription"
#define SB_PROPERTY_CDRIP_STATUS "http://songbirdnest.com/data/1.0#cdRipStatus"
#define SB_PROPERTY_CDDISCHASH "http://songbirdnest.com/data/1.0#cdDiscHash"
#define SB_PROPERTY_SHOULDRIP "http://songbirdnest.com/data/1.0#shouldRip"
/* boolean: true if the media is DRM protected; false/empty otherwise */
#define SB_PROPERTY_ISDRMPROTECTED "http://songbirdnest.com/data/1.0#isDRMProtected"
#define SB_PROPERTY_DONT_WRITE_METADATA "http://songbirdnest.com/data/1.0#dontWriteMetadata"
/** An optional import type applied to a media item according to rules defined
* by <import> elements in device info XML files. The import type can be any
* string the <import> element defines, but the following types are
* currently recognized and given special handling:
*
* fm-recording
* SB_PROPERTY_GENRE set to indicate an FM recording; file routed
* to a subfolder for recordings when copied to main library. See
* songbird.properties device.sync.import_type.fm-recording and
* mediamanager.recordings_dir
*
* video-recording
* SB_PROPERTY_GENRE set to indicate a video recording; file routed
* to a subfolder for recordings when copied to main library. See
* songbird.properties device.sync.import_type.video-recording and
* mediamanager.recordings_dir
*
* voice-recording
* SB_PROPERTY_GENRE set to indicate a voice recording; file routed
* to a subfolder for recordings when copied to main library. See
* songbird.properties device.sync.import_type.voice-recording and
* mediamanager.recordings_dir
*/
#define SB_PROPERTY_IMPORTTYPE "http://songbirdnest.com/data/1.0#importType"
#define SB_VALUE_IMPORTTYPE_FM_RECORDING "fm-recording"
#define SB_VALUE_IMPORTTYPE_VIDEO_RECORDING "video-recording"
#define SB_VALUE_IMPORTTYPE_VOICE_RECORDING "voice-recording"
// Device library specific properties
#define SB_PROPERTY_DEVICE_PERSISTENT_ID "http://songbirdnest.com/data/1.0#deviceId"
#define SB_PROPERTY_LAST_SYNC_PLAYCOUNT "http://songbirdnest.com/data/1.0#playCount_AtLastSync"
#define SB_PROPERTY_LAST_SYNC_SKIPCOUNT "http://songbirdnest.com/data/1.0#skipCount_AtLastSync"
#define SB_PROPERTY_LAST_SYNC_TIME "http://songbirdnest.com/data/1.0#lastSyncTime"
/**
* This boolean property indicates whether a media item or media list on a
* device originally came from the main library. If "true" then the item has
* origin GUIDs that correspond to an item that exists in the main library.
* Used by the UI for visual indicator on the media item or media list..
*/
#define SB_PROPERTY_ORIGIN_IS_IN_MAIN_LIBRARY "http://songbirdnest.com/data/1.0#originIsInMainLibrary"
// Smart media list specific properties
#define SB_PROPERTY_SMARTMEDIALIST_STATE "http://songbirdnest.com/data/1.0#smartMediaListState"
// Main library specific properties
#define SB_PROPERTY_CREATED_FIRSTRUN_SMARTPLAYLISTS "http://songbirdnest.com/data/1.0#createdFirstRunSmartPlaylists"
#define SB_PROPERTY_DOWNLOAD_MEDIALIST_GUID "http://songbirdnest.com/data/1.0#downloadMediaListGUID"
// Play queue library specific properties
#define SB_PROPERTY_PLAYQUEUE_MEDIALIST_GUID "http://songbirdnest.com/data/1.0#playQueueMediaListGUID"
// GUID of the device library. Present if the library is the one created for a
// device library
#define SB_PROPERTY_DEVICE_LIBRARY_GUID "http://songbirdnest.com/data/1.0#deviceLibraryGuid"
// iTunes Import/export related properties
#define SB_PROPERTY_ITUNES_GUID "http://songbirdnest.com/data/1.0#iTunesGUID"
// Video properties
#define SB_PROPERTY_KEYWORDS "http://songbirdnest.com/data/1.0#keywords"
#define SB_PROPERTY_DESCRIPTION "http://songbirdnest.com/data/1.0#description"
#define SB_PROPERTY_SHOWNAME "http://songbirdnest.com/data/1.0#showName"
#define SB_PROPERTY_EPISODENUMBER "http://songbirdnest.com/data/1.0#episodeNumber"
#define SB_PROPERTY_SEASONNUMBER "http://songbirdnest.com/data/1.0#seasonNumber"
// Playlist properties
#define SB_PROPERTY_PLAYLISTURL "http://songbirdnest.com/data/1.0#playlistURL"
// Artwork properties.
#define SB_PROPERTY_ATTEMPTED_REMOTE_ART_FETCH "http://songbirdnest.com/data/1.0#attemptedRemoteArtFetch"
#endif /* __SB_STANDARD_PROPERTIES_H__ */