IITTrackCollection Interface Reference
List of all members.Detailed Description
Represents a collection of track objects.Note that collection indices are always 1-based.
You can retrieve all the tracks defined for a playlist using IITPlaylist::Tracks().
You can retrieve the currently selected track or tracks using IiTunes::SelectedTracks().
After calling IITLibraryPlaylist::AddFile(), IITLibraryPlaylist::AddFiles(), IITUserPlaylist::AddFile(), IITUserPlaylist::AddFiles(), IiTunes::ConvertFile(), IiTunes::ConvertFile2(), IiTunes::ConvertFiles(), IiTunes::ConvertFiles2(), IiTunes::ConvertTrack(), IiTunes::ConvertTrack2(), IiTunes::ConvertTracks(), or IiTunes::ConvertTracks2(), you can retrieve the added or converted tracks using IITOperationStatus::Tracks().
Public Member Functions | |
Properties | |
HRESULT | Count ([out, retval] long *count) |
Returns the number of tracks in the collection. | |
HRESULT | Item ([in] long index,[out, retval] IITTrack **iTrack) |
Returns an IITTrack object corresponding to the given index (1-based). | |
HRESULT | ItemByPlayOrder ([in] long index,[out, retval] IITTrack **iTrack) |
Returns an IITTrack object corresponding to the given index (1-based). | |
HRESULT | ItemByName ([in] BSTR name,[out, retval] IITTrack **iTrack) |
Returns an IITTrack object with the specified name. | |
HRESULT | _NewEnum ([out, retval] IUnknown **iEnumerator) |
Returns an IEnumVARIANT object which can enumerate the collection. | |
HRESULT | ItemByPersistentID ([in] long highID,[in] long lowID,[out, retval] IITTrack **iTrack) |
Returns an IITTrack object with the specified persistent ID. See the documentation on IITObject for more information on persistent IDs. |
Member Function Documentation
|
Returns an IEnumVARIANT object which can enumerate the collection. Note that track enumerators use IITTrackCollection::Item(), not IITTrackCollection::ItemByPlayOrder(). In other words, you cannot use an enumerator to enumerate tracks by play order.
|
|
Returns the number of tracks in the collection.
|
|
Returns an IITTrack object corresponding to the given index (1-based). The index is independent of the play order in the playlist.
|
|
Returns an IITTrack object with the specified name.
|
|
Returns an IITTrack object with the specified persistent ID. See the documentation on IITObject for more information on persistent IDs.
|
|
Returns an IITTrack object corresponding to the given index (1-based). The index is defined by the play order of the playlist containing the track collection.
|
Generated on Fri Mar 13 12:50:54 2009 for iTunes 8.1.0.52
©2004-2007 Apple Computer, Inc.