IITFileOrCDTrack Interface Reference
Inheritance diagram for IITFileOrCDTrack:
Detailed Description
Represents a file or CD track.
Public Member Functions | |
Properties | |
HRESULT | Location ([out, retval] BSTR *location) |
Returns the full path to the file represented by this track. | |
HRESULT | Podcast ([out, retval] VARIANT_BOOL *isPodcast) |
Returns true if this track is a podcast track. | |
HRESULT | RememberBookmark ([out, retval] VARIANT_BOOL *rememberBookmark) |
Returns true if playback position is remembered for this track. | |
HRESULT | RememberBookmark ([in] VARIANT_BOOL shouldRememberBookmark) |
Set whether the playback position is remembered for this track. | |
HRESULT | ExcludeFromShuffle ([out, retval] VARIANT_BOOL *excludeFromShuffle) |
Returns true if this track is skipped when shuffling. | |
HRESULT | ExcludeFromShuffle ([in] VARIANT_BOOL shouldExcludeFromShuffle) |
Set whether this track is skipped when shuffling. | |
HRESULT | Lyrics ([out, retval] BSTR *lyrics) |
Returns the lyrics for the track. | |
HRESULT | Lyrics ([in] BSTR lyrics) |
Sets the lyrics for the track. | |
HRESULT | Category ([out, retval] BSTR *category) |
Returns the category for the track. | |
HRESULT | Category ([in] BSTR category) |
Sets the category for the track. | |
HRESULT | Description ([out, retval] BSTR *description) |
Returns the description for the track. | |
HRESULT | Description ([in] BSTR description) |
Sets the description for the track. | |
HRESULT | LongDescription ([out, retval] BSTR *longDescription) |
Returns the long description for the track. | |
HRESULT | LongDescription ([in] BSTR longDescription) |
Sets the long description for the track. | |
HRESULT | BookmarkTime ([out, retval] long *bookmarkTime) |
Returns the bookmark time of the track (in seconds). This will always be zero if the track is not bookmarkable. | |
HRESULT | BookmarkTime ([in] long bookmarkTime) |
Set the bookmark time of the track (in seconds). | |
HRESULT | VideoKind ([out, retval] ITVideoKind *videoKind) |
Returns the video track kind. This will be ITVideoKindNone if the track is not a video track. | |
HRESULT | VideoKind ([in] ITVideoKind videoKind) |
Set the video track kind. Note that the video kind cannot be changed for purchased content. | |
HRESULT | SkippedCount ([out, retval] long *skippedCount) |
Returns the number of times the track has been skipped. | |
HRESULT | SkippedCount ([in] long skippedCount) |
Set the number of times the track has been skipped. This property cannot be set if the track is not playable (e.g. a PDF file). | |
HRESULT | SkippedDate ([out, retval] DATE *skippedDate) |
Returns the date and time the track was last skipped. | |
HRESULT | SkippedDate ([in] DATE skippedDate) |
Set the date and time the track was last skipped. This property cannot be set if the track is not playable (e.g. a PDF file). | |
HRESULT | PartOfGaplessAlbum ([out, retval] VARIANT_BOOL *partOfGaplessAlbum) |
Returns true if this track is part of a gapless album. | |
HRESULT | PartOfGaplessAlbum ([in] VARIANT_BOOL shouldBePartOfGaplessAlbum) |
Set whether this track is part of a gapless album. | |
HRESULT | AlbumArtist ([out, retval] BSTR *albumArtist) |
Returns the name of the album artist of the track. | |
HRESULT | AlbumArtist ([in] BSTR albumArtist) |
Set the name of the album artist of the track. | |
HRESULT | Show ([out, retval] BSTR *showName) |
Returns the show name of the track. | |
HRESULT | Show ([in] BSTR showName) |
Set the show name of the track. | |
HRESULT | SeasonNumber ([out, retval] long *seasonNumber) |
Returns the season number of the track. | |
HRESULT | SeasonNumber ([in] long seasonNumber) |
Set the season number of the track. | |
HRESULT | EpisodeID ([out, retval] BSTR *episodeID) |
Returns the episode ID of the track. | |
HRESULT | EpisodeID ([in] BSTR episodeID) |
Set the episode ID of the track. | |
HRESULT | EpisodeNumber ([out, retval] long *episodeNumber) |
Returns the episode number of the track. | |
HRESULT | EpisodeNumber ([in] long episodeNumber) |
Set the episode number of the track. | |
HRESULT | Size64High ([out, retval] long *sizeHigh) |
Returns the high 32-bits of the size of the track (in bytes). | |
HRESULT | Size64Low ([out, retval] long *sizeLow) |
Returns the low 32-bits of the size of the track (in bytes). | |
HRESULT | Unplayed ([out, retval] VARIANT_BOOL *isUnplayed) |
Returns false if this track has been played. | |
HRESULT | Unplayed ([in] VARIANT_BOOL shouldBeUnplayed) |
Set whether this track has been played. | |
HRESULT | SortAlbum ([out, retval] BSTR *album) |
Returns the name of the album used for sorting. If a sort album is specified, iTunes will use this string instead of the real album name when sorting. | |
HRESULT | SortAlbum ([in] BSTR album) |
Set the name of the album used for sorting. If a sort album is specified, iTunes will use this string instead of the real album name when sorting. | |
HRESULT | SortAlbumArtist ([out, retval] BSTR *albumArtist) |
Returns the name of the album artist used for sorting. If a sort album artist is specified, iTunes will use this string instead of the real album artist when sorting. | |
HRESULT | SortAlbumArtist ([in] BSTR albumArtist) |
Set the name of the album artist used for sorting. If a sort album artist is specified, iTunes will use this string instead of the real album artist when sorting. | |
HRESULT | SortArtist ([out, retval] BSTR *artist) |
Returns the name of the artist used for sorting. If a sort artist is specified, iTunes will use this string instead of the real artist when sorting. | |
HRESULT | SortArtist ([in] BSTR artist) |
Set the name of the artist used for sorting. If a sort artist is specified, iTunes will use this string instead of the real artist when sorting. | |
HRESULT | SortComposer ([out, retval] BSTR *composer) |
Returns the composer used for sorting. If a sort composer is specified, iTunes will use this string instead of the real composer when sorting. | |
HRESULT | SortComposer ([in] BSTR composer) |
Set the composer used for sorting. If a sort composer is specified, iTunes will use this string instead of the real composer when sorting. | |
HRESULT | SortName ([out, retval] BSTR *name) |
Returns the name of the track used for sorting. If a sort name is specified, iTunes will use this string instead of the real track name when sorting. | |
HRESULT | SortName ([in] BSTR name) |
Set the name of the track used for sorting. If a sort name is specified, iTunes will use this string instead of the real track name when sorting. | |
HRESULT | SortShow ([out, retval] BSTR *showName) |
Returns the show name used for sorting. If a sort show is specified, iTunes will use this string instead of the real show name when sorting. | |
HRESULT | SortShow ([in] BSTR showName) |
Set the show name used for sorting. If a sort show is specified, iTunes will use this string instead of the real show name when sorting. | |
HRESULT | AlbumRating ([out, retval] long *rating) |
Returns the user or computed rating of the album that this track belongs to (0 to 100). If the album rating has never been set, or has been set to 0, it will be computed based on the ratings of tracks in the album. | |
HRESULT | AlbumRating ([in] long rating) |
Set the album rating of the album that this track belongs to (0 to 100). If the album rating is set to 0, it will be computed based on the ratings of tracks in the album. | |
HRESULT | AlbumRatingKind ([out, retval] ITRatingKind *ratingKind) |
Returns the album rating kind. If the album rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser. | |
HRESULT | RatingKind ([out, retval] ITRatingKind *ratingKind) |
Returns the track rating kind. If the track rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser. | |
HRESULT | Playlists ([out, retval] IITPlaylistCollection **iPlaylistCollection) |
Returns a collection of playlists that contain the song that this track represents. | |
HRESULT | Location ([in] BSTR location) |
Set the full path to the file represented by this track. iTunes will not move or copy any existing file from the track's current location to the new location, the full path must point to an existing file that is playable by iTunes. Attempting to set the location of a track on CD will always fail with E_INVALIDARG. | |
HRESULT | ReleaseDate ([out, retval] DATE *releaseDate) |
Returns release date of the track. This property is read-only. | |
Methods | |
HRESULT | UpdateInfoFromFile () |
Update this track's information with the information stored in its file. | |
HRESULT | UpdatePodcastFeed () |
Update the podcast feed for this track. This is equivalent to the user choosing Update Podcast from the contextual menu for the podcast feed that contains this track. | |
HRESULT | Reveal () |
Reveals the track in the main browser window. |
Member Function Documentation
|
Set the name of the album artist of the track.
|
|
Returns the name of the album artist of the track.
|
|
Set the album rating of the album that this track belongs to (0 to 100). If the album rating is set to 0, it will be computed based on the ratings of tracks in the album.
|
|
Returns the user or computed rating of the album that this track belongs to (0 to 100). If the album rating has never been set, or has been set to 0, it will be computed based on the ratings of tracks in the album.
|
|
Returns the album rating kind. If the album rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser.
|
|
Set the bookmark time of the track (in seconds).
|
|
Returns the bookmark time of the track (in seconds). This will always be zero if the track is not bookmarkable.
|
|
Sets the category for the track.
|
|
Returns the category for the track.
|
|
Sets the description for the track.
|
|
Returns the description for the track.
|
|
Set the episode ID of the track.
|
|
Returns the episode ID of the track.
|
|
Set the episode number of the track.
|
|
Returns the episode number of the track.
|
|
Set whether this track is skipped when shuffling. Audio books are always skipped when shuffling.
|
|
Returns true if this track is skipped when shuffling. Audio books are always skipped when shuffling.
|
|
Set the full path to the file represented by this track. iTunes will not move or copy any existing file from the track's current location to the new location, the full path must point to an existing file that is playable by iTunes. Attempting to set the location of a track on CD will always fail with E_INVALIDARG.
|
|
Returns the full path to the file represented by this track.
|
|
Sets the long description for the track.
|
|
Returns the long description for the track.
|
|
Sets the lyrics for the track.
|
|
Returns the lyrics for the track.
|
|
Set whether this track is part of a gapless album.
|
|
Returns true if this track is part of a gapless album.
|
|
Returns a collection of playlists that contain the song that this track represents. This is the same collection of playlists that are shown in the "Show in Playlist" contextual menu for a track, plus the specific playlist that contains this track. A track represents a song in a single playlist, use IITTrack::Playlist() to get the specific playlist that contains this track.
|
|
Returns true if this track is a podcast track.
|
|
Returns the track rating kind. If the track rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser.
|
|
Returns release date of the track. This property is read-only. A value of zero means no release date.
|
|
Set whether the playback position is remembered for this track. The playback position is always remembered for audio books.
|
|
Returns true if playback position is remembered for this track. The playback position is always remembered for audio books.
|
|
Reveals the track in the main browser window.
|
|
Set the season number of the track.
|
|
Returns the season number of the track.
|
|
Set the show name of the track.
|
|
Returns the show name of the track.
|
|
Returns the high 32-bits of the size of the track (in bytes). You can use IITTrack::Size() if you know the size of the track is less than 4GB. Otherwise, use IITFileOrCDTrack::Size64High() and IITFileOrCDTrack::Size64Low() to determine the full 64-bit size.
|
|
Returns the low 32-bits of the size of the track (in bytes). You can use IITTrack::Size() if you know the size of the track is less than 4GB. Otherwise, use IITFileOrCDTrack::Size64High() and IITFileOrCDTrack::Size64Low() to determine the full 64-bit size.
|
|
Set the number of times the track has been skipped. This property cannot be set if the track is not playable (e.g. a PDF file).
|
|
Returns the number of times the track has been skipped.
|
|
Set the date and time the track was last skipped. This property cannot be set if the track is not playable (e.g. a PDF file). A value of zero means no skipped date.
|
|
Returns the date and time the track was last skipped. A value of zero means no skipped date.
|
|
Set the name of the album used for sorting. If a sort album is specified, iTunes will use this string instead of the real album name when sorting.
|
|
Returns the name of the album used for sorting. If a sort album is specified, iTunes will use this string instead of the real album name when sorting.
|
|
Set the name of the album artist used for sorting. If a sort album artist is specified, iTunes will use this string instead of the real album artist when sorting.
|
|
Returns the name of the album artist used for sorting. If a sort album artist is specified, iTunes will use this string instead of the real album artist when sorting.
|
|
Set the name of the artist used for sorting. If a sort artist is specified, iTunes will use this string instead of the real artist when sorting.
|
|
Returns the name of the artist used for sorting. If a sort artist is specified, iTunes will use this string instead of the real artist when sorting.
|
|
Set the composer used for sorting. If a sort composer is specified, iTunes will use this string instead of the real composer when sorting.
|
|
Returns the composer used for sorting. If a sort composer is specified, iTunes will use this string instead of the real composer when sorting.
|
|
Set the name of the track used for sorting. If a sort name is specified, iTunes will use this string instead of the real track name when sorting.
|
|
Returns the name of the track used for sorting. If a sort name is specified, iTunes will use this string instead of the real track name when sorting.
|
|
Set the show name used for sorting. If a sort show is specified, iTunes will use this string instead of the real show name when sorting.
|
|
Returns the show name used for sorting. If a sort show is specified, iTunes will use this string instead of the real show name when sorting.
|
|
Set whether this track has been played.
|
|
Returns false if this track has been played.
|
|
Update this track's information with the information stored in its file. If you have edited this track's metadata (such as song name, album, artist, etc.) with another program outside of iTunes, you can call this method to force iTunes to update its internal information with the current information stored in the track's file.
|
|
Update the podcast feed for this track. This is equivalent to the user choosing Update Podcast from the contextual menu for the podcast feed that contains this track.
|
|
Set the video track kind. Note that the video kind cannot be changed for purchased content.
|
|
Returns the video track kind. This will be ITVideoKindNone if the track is not a video track.
|
Generated on Fri Mar 13 12:50:54 2009 for iTunes 8.1.0.52
©2004-2007 Apple Computer, Inc.