|
| | Library (Media::Source *const owner, const bool persistence) |
| |
| void | loadToneLibrary (bool restored) |
| |
| Song * | add (const TEST_SONG *item) |
| |
| Song * | duplicate (const Song *song, const Channel channel) |
| |
| virtual bool | removePlaylist (Playlist *play) override |
| | Remove a playlist from the library. More...
|
| |
| virtual ThingieList | seedsForPlaylist (const Playlist *playlist) override |
| | Retrieve a list of seeds for a playlist. More...
|
| |
| virtual RetainedList< Song * > | getAllSongs (void) override |
| | Get a list of all songs in the library. More...
|
| |
| virtual RetainedList< Song * > | getMatchingSongs (const Filter &criteria) override |
| | Get a list of all songs matching a filter. More...
|
| |
| ThingieList | getSuggestions (const Filter &criteria, SearchRange what) |
| | Retrieve suggestions from the library. More...
|
| |
| RetainedList< Song * > | getMixSongs (void) |
| | Get a list of all songs belonging to enabled playlists. More...
|
| |
| virtual RetainedList< Song * > | getPlaylistSongs (const Playlist *play, bool reassess=false) override |
| | Get a list of all songs assigned to a playlist. More...
|
| |
| Playlist * | findPlaylistForSong (Song *song, bool enabled=true) |
| | Find a playlist for a song, preferring enabled playlists. More...
|
| |
| virtual void | populatePlaylist (Playlist *play, bool aggressive=false) override |
| | Review songs and assign them to a new candidate if they match. More...
|
| |
| void | unpopulatePlaylist (Playlist *play) |
| | Reassign all a playlists' songs to some other playlist. More...
|
| |
| void | mixRecalculate (void) |
| | Iterate over every song and replace its playlist assignment. More...
|
| |
| MusicThingie * | getById (MusicThingie::Type type, const std::string &id) |
| | Retrieve anything stored in the library by its ID. More...
|
| |
| virtual RetainedList< Song * > | getSongsForPlaylist (PianodPlaylist *playlist) override |
| | Retrieve all songs for a playlist, which may be a meta playlist. More...
|
| |
| PianodPlaylist * | createPlaylist (const std::string &name, MusicThingie::Type type, MusicThingie *from) |
| | Construct a playlist with an initial seed. More...
|
| |
| PianodPlaylist * | createPlaylist (const std::string &name, const Filter &filter) |
| | Construct a new smart playlist. More...
|
| |
| PianodPlaylist * | formTransientPlaylist (const Filter &criteria) |
| | Construct a temporary playlist. More...
|
| |
| virtual bool | writeIndexToFile (const std::string &filename) const override |
| | Persist the library's index into a file. More...
|
| |
| virtual bool | restoreIndexFromFile (const std::string &filename) override |
| | Restore the library's index, playlists, seeds and match criteria from a file. More...
|
| |
| | Foundation (Media::Source *const owner, const bool persistence) |
| | Construct a new media library. More...
|
| |
| void | markDirty (IMPORTANCE import=TRIVIAL) const |
| |
| bool | load () |
| | Restore persisted library data from a file. More...
|
| |
| bool | flush () |
| | If memory is dirty, write library data to a file. More...
|
| |
| float | periodic () |
| | Do intermittent tasks, such as occasionally persisting the catalog to a file. More...
|
| |
| RetainedList< Song * > | getRandomSongs (PianodPlaylist *playlist, const UserList &users, Media::SelectionMethod selectionMethod, const class LibraryParameters &settings) |
| | Retrieve some random selections from the library for queue/playback. More...
|
| |