TPlaylist Class

Playlist (list of songs from a connector)

Unit: Zicplay.Types
TThreadList<TSong>
  Zicplay.Types.TPlaylist
type TPlaylist = class(TThreadList<TSong>)

The TPlaylist type exposes the following members.

Show:
 NameDescription
Create

Destroy

Top
Show:
 NameDescription
Connector

Connector for this playlist

ConnectorParams

Params to use with this connector to get the songs

Count

Returns the number of songs in the playlist

Enabled

True is the songs in this playlists are available in the global playlist False is it's songs are not shown on the global playlist

Text

Playlist name

UniqID

Uniq Id of the playlist A GUID generated when the list is created, to link it to other files or classes.

hasChanged

Is True if a song or the list itself has changed

Top
Show:
 NameDescription
Delete

Delete item at AIndex

GetSongAt

Return the song at index AIndex if it exists

HasSong

Overloaded.

HasSong

Overloaded. Check if the playlist has a song

LoadFromStream

Load song list datas from a stream

LoadSongsList

RefreshSongsList

Load the list of song from the local cache. Start a reload from the connector if AForceReaload is True. After loading the song's list, TPlaylistUpdatedMessage is sent to its subscribers.

Save

Save playlist data (songs, ...) when they are not linked to the program settings

SaveSongsList

SaveToStream

Save song list datas to a stream

SortByAlbum

Sort the songs in this list by Album / Order / Title

SortByArtist

Sort the songs in this list by Artist / Album / Order / Title

SortByCategoryAlbum

Sort the songs in this list by Category / Album / Order / Title

SortByCategoryTitle

Sort the songs in this list by Category / Title / Album

SortByTitle

Sort the songs in this list by Title / Album

SortByUniqID

Sort the songs by their UniqID

UpdateAsAMirrorOf

Update current list from APlaylist (mirror current list with the other as source)

Top