#include <musiclibrary.h>
◆ IMPORTANCE
| Enumerator |
|---|
| IMPORTANT | |
| NOMINAL | |
| TRIVIAL | |
◆ Foundation()
| MusicLibrary::Foundation::Foundation |
( |
Media::Source *const |
owner, |
|
|
const bool |
persistence |
|
) |
| |
Construct a new media library.
- Parameters
-
| owner | The source to which the library belongs. |
| persistence | If true, library indexes are written to long-term storage. |
◆ flush()
| bool MusicLibrary::Foundation::flush |
( |
void |
| ) |
|
If memory is dirty, write library data to a file.
- Returns
- True on success, false on failure.
◆ getAllSongs()
◆ getMatchingSongs()
◆ getPlaylistSongs()
| virtual RetainedList<Song *> MusicLibrary::Foundation::getPlaylistSongs |
( |
const Playlist * |
play, |
|
|
bool |
reassess = false |
|
) |
| |
|
pure virtual |
◆ getRandomSongs()
Retrieve some random selections from the library for queue/playback.
- Parameters
-
| playlist | The playlist selections should be from. |
| users | Users to consider when making selections. |
| selectionMethod | Manner in which to pick selections. |
| settings | Biasing parameters. |
◆ getSongsForPlaylist()
◆ load()
| bool MusicLibrary::Foundation::load |
( |
| ) |
|
Restore persisted library data from a file.
- Returns
- True on success, false on failure.
◆ markDirty()
◆ periodic()
| float MusicLibrary::Foundation::periodic |
( |
void |
| ) |
|
Do intermittent tasks, such as occasionally persisting the catalog to a file.
- Returns
- Interval until function wants to be called again.
◆ persist()
| virtual void MusicLibrary::Foundation::persist |
( |
Parsnip::Data & |
into | ) |
const |
|
inlineprotectedvirtual |
◆ populatePlaylist()
| virtual void MusicLibrary::Foundation::populatePlaylist |
( |
Playlist * |
play, |
|
|
bool |
aggressive = false |
|
) |
| |
|
pure virtual |
◆ removePlaylist()
| virtual bool MusicLibrary::Foundation::removePlaylist |
( |
Playlist * |
play | ) |
|
|
pure virtual |
◆ restore()
| virtual bool MusicLibrary::Foundation::restore |
( |
const Parsnip::Data & |
data | ) |
|
|
inlineprotectedvirtual |
◆ restoreIndexFromFile()
| virtual bool MusicLibrary::Foundation::restoreIndexFromFile |
( |
const std::string & |
filename | ) |
|
|
protectedpure virtual |
◆ seedsForPlaylist()
◆ writeIndexToFile()
| virtual bool MusicLibrary::Foundation::writeIndexToFile |
( |
const std::string & |
filename | ) |
const |
|
protectedpure virtual |
◆ persist_data
| const bool MusicLibrary::Foundation::persist_data {false} |
|
private |
◆ source
◆ write_time
| time_t MusicLibrary::Foundation::write_time {0} |
|
mutableprivate |
The documentation for this class was generated from the following files: