Inheritance diagram for IITPlaylist:
A playlist is always associated with an IITSource.
You can retrieve all the playlists defined for a source using IITSource::Playlists().
For convenience, you can retrieve the main library playlist using IiTunes::LibraryPlaylist().
You can create a new playlist using IiTunes::CreatePlaylist().
Public Member Functions | |
Methods | |
HRESULT | Delete () |
Delete this playlist. | |
HRESULT | PlayFirstTrack () |
Start playing the first track in this playlist. | |
HRESULT | Print ([in] VARIANT_BOOL showPrintDialog,[in] ITPlaylistPrintKind printKind,[in] BSTR theme) |
Print this playlist. | |
HRESULT | Search ([in] BSTR searchText,[in] ITPlaylistSearchField searchFields,[out, retval] IITTrackCollection **iTrackCollection) |
Returns a collection containing the tracks with the specified text. | |
Properties | |
HRESULT | Kind ([out, retval] ITPlaylistKind *kind) |
Returns the kind of the playlist. | |
HRESULT | Source ([out, retval] IITSource **iSource) |
Returns an IITSource object corresponding to the source that contains the playlist. | |
HRESULT | Duration ([out, retval] long *duration) |
Returns the total length of all songs in the playlist (in seconds). | |
HRESULT | Shuffle ([out, retval] VARIANT_BOOL *isShuffle) |
Returns true if songs in the playlist are played in random order. | |
HRESULT | Shuffle ([in] VARIANT_BOOL shouldShuffle) |
Set whether songs in the playlist should be played in random order. | |
HRESULT | Size ([out, retval] double *size) |
Returns the total size of all songs in the playlist (in bytes). | |
HRESULT | SongRepeat ([out, retval] ITPlaylistRepeatMode *repeatMode) |
Returns the playback repeat mode. | |
HRESULT | SongRepeat ([in] ITPlaylistRepeatMode repeatMode) |
Sets the playback repeat mode. | |
HRESULT | Time ([out, retval] BSTR *time) |
Returns the total length of all songs in the playlist (in MM:SS format). | |
HRESULT | Visible ([out, retval] VARIANT_BOOL *isVisible) |
Returns true if the playlist is visible in the Source list. | |
HRESULT | Tracks ([out, retval] IITTrackCollection **iTrackCollection) |
Returns a collection containing the tracks in this playlist. |
|
Delete this playlist.
|
|
Returns the total length of all songs in the playlist (in seconds).
|
|
Returns the kind of the playlist.
|
|
Start playing the first track in this playlist.
|
|
Print this playlist.
|
|
Returns a collection containing the tracks with the specified text. If searchFields is ITPlaylistSearchFieldVisible , this is identical to the list of tracks displayed if the user enters the search text in the Search edit field in iTunes when this playlist is being displayed.
|
|
Set whether songs in the playlist should be played in random order.
|
|
Returns true if songs in the playlist are played in random order.
|
|
Returns the total size of all songs in the playlist (in bytes).
|
|
Sets the playback repeat mode.
|
|
Returns the playback repeat mode.
|
|
Returns an IITSource object corresponding to the source that contains the playlist.
|
|
Returns the total length of all songs in the playlist (in MM:SS format).
|
|
Returns a collection containing the tracks in this playlist.
|
|
Returns true if the playlist is visible in the Source list.
|