|
| | Playlist (Foundation *const library, const std::string &id, const std::string &name) |
| |
| | Playlist () |
| |
| Foundation *const | library (void) const |
| |
| Foundation *const | parent (void) const |
| |
| virtual Media::Source *const | source (void) const override final |
| | MediaSource from which this thingie originates. More...
|
| |
| virtual bool | includedInMix (void) const override |
| |
| virtual void | includedInMix (bool include) override |
| |
| virtual PlaylistType | playlistType (void) const override |
| | Mix, everything, transient or single list. More...
|
| |
| virtual const std::string & | playlistId (void) const override |
| | Item's playlist ID. More...
|
| |
| virtual const std::string & | playlistName (void) const override |
| | Name of the playlist. More...
|
| |
| virtual const std::string & | genre (void) const override |
| | (Re)calculate the current genres list for a playlist. More...
|
| |
| virtual bool | canSeed (MusicThingie::Type seedType) const override |
| | Determine if a particular type of seeding is possible. More...
|
| |
| virtual bool | seed (MusicThingie::Type seedType, const MusicThingie *music) const override |
| | Check if there is a seed of a particular type for this thingie. More...
|
| |
| virtual ThingieList | getSeeds (void) const override |
| | Get the seed list for a playlist. More...
|
| |
| virtual void | seed (MusicThingie::Type seedType, MusicThingie *music, bool value) override |
| | Make a particular seed type for this thingie. More...
|
| |
| virtual SongList | songs () override |
| | Retrieve a list of requestable songs applicable to this thingie. More...
|
| |
| virtual SongList | songs (const Filter &filter) override |
| | Get songs belonging to a playlist. More...
|
| |
| virtual bool | canQueue () const override final |
| | Indicate if specific item can be queued/requested. More...
|
| |
| virtual void | updateSelector (const Filter &new_selector) override final |
| | Update a playlist's selector algorithm. More...
|
| |
| virtual void | rename (const std::string &newname) override |
| |
| virtual void | erase () override |
| |
| bool | appliesTo (const PianodSong *song) const |
| |
| const std::string * | getIdForSeed (MusicThingie::Type seedType, const MusicThingie *music) const |
| |
| void | invalidateSeeds (const MusicThingie *music) |
| |
| virtual Parsnip::Data | persist () const |
| |
| virtual void | restore (const Parsnip::Data &data) |
| |
| virtual PianodConnection & | transmitPrivate (PianodConnection &recipient) const override |
| | Transmit the thingie's user-specific data on a connection. More...
|
| |
| virtual void | serializePrivate (Parsnip::Data &song, const User *user) const override |
| | Add the thingie's user-specific data for JSON transmission. More...
|
| |
| virtual const std::string | id (void) const override |
| | Primary ID is playlist ID. More...
|
| |
| virtual const std::string | id (MusicThingie::Type type) const override final |
| | Return the complete ID when used in a specific context. More...
|
| |
| virtual const std::string & | internalId (MusicThingie::Type type) const override final |
| | Return the inner ID when used in a specific context. More...
|
| |
| virtual const std::string & | name (void) const override final |
| | Return the most specific name of this, whatever type it is. More...
|
| |
| virtual Type | type (void) const override |
| | Return the type letter for a thingie. More...
|
| |
| virtual Football::Thingie & | transmitCommon (Football::Thingie &recipient) const override final |
| | Typecode for playlist type. More...
|
| |
| class Response | assembleRatings (const User *user) const |
| |
| virtual Parsnip::Data | serialize () const override final |
| | Assemble the thingie's data for JSON tranmission. More...
|
| |
| Parsnip::Data | serializeRatings (const User *user) const |
| |
| virtual bool | matches (const Filter &filter) const override final |
| | Check if a filter matches this item. More...
|
| |
| virtual PianodPlaylist * | asPlaylist () override final |
| |
| virtual const PianodPlaylist * | asPlaylist () const override final |
| |
| virtual SongList | getRandomSongs (const UserList &users, Media::SelectionMethod selectionMethod) |
| | Choose some random songs for queueing. More...
|
| |
| virtual bool | operator== (const std::string &compare) const override |
| | Check if the primary name of this thingie matches. More...
|
| |
| virtual bool | operator== (const MusicThingie &compare) const override |
| | Compare a thingie's name to another of the equivalent or decendent type. More...
|
| |
| RESPONSE_CODE | rate (Rating value, User *user) |
| | Set a user's playlist's rating. More...
|
| |
| Rating | rating (const User *user) const |
| | Retrieve a user's playlist's rating. More...
|
| |
| float | averageRating () const |
| | Return the average rating of a playlist, considering all ratings. More...
|
| |
| | MusicThingie (void) |
| | When allocated, use count starts at 1 and the object is put in the release pool, justifying its existence. More...
|
| |
| bool | isPrimary (void) const |
| |
| bool | isSuggestion (void) const |
| |
| bool | isSeed (void) const |
| |
| bool | isPlaylist (void) const |
| |
| bool | isSong (void) const |
| |
| bool | isAlbum (void) const |
| |
| bool | isArtist (void) const |
| |
| bool | isValidType (void) const |
| |
| Type | primaryType (void) const |
| |
| virtual PianodArtist * | asArtist () |
| |
| virtual PianodAlbum * | asAlbum () |
| |
| virtual PianodSong * | asSong () |
| |
| virtual const PianodArtist * | asArtist () const |
| |
| virtual const PianodAlbum * | asAlbum () const |
| |
| virtual const PianodSong * | asSong () const |
| |
| std::string | operator() (void) const |
| |
| void | retain (void) const |
| | Claim an instance. More...
|
| |
| void | release (void) |
| | Abandon an instance. More...
|
| |
| int | getUseCount (void) const |
| |
| virtual Ownership * | parentOwner (void) const |
| | Defer the ownership to the source. More...
|
| |
| void | serializeCommon (Parsnip::Data &) const |
| | Insert common items into the serialization dictionary. More...
|
| |
| bool | operator!= (const std::string &compare) |
| |
| bool | operator!= (const MusicThingie &compare) |
| |
| virtual bool | isOwnedBy (const User *user) const override |
| |
| virtual bool | hasPermission (const User *user, Action action) const override |
| |
| bool | isVisibleBy (const User *user) const |
| |
| bool | isUsableBy (const User *user) const |
| |
| bool | isDecendableBy (const User *user) const |
| |
| bool | isReadableBy (const User *user) const |
| |
| bool | isEditableBy (const User *user) const |
| |
A PianodPlaylist for music libraries.