|
| | Source (const Parameters ¶ms) |
| |
| | ~Source (void) |
| | Destroy a source. More...
|
| |
| virtual const char * | kind (void) const override |
| | A unique string identifying the type of source. More...
|
| |
| virtual bool | canExpandToAllSongs (void) const override |
| | Indicate if arbitrary tracks can be requested from this source. More...
|
| |
| virtual bool | flush (void) override |
| | Persist data for a source. More...
|
| |
| virtual float | periodic (void) override |
| | Do intermittent or background tasks. More...
|
| |
| virtual PlaylistList | getPlaylists (const Filter &filter) override |
| | Retrieve the source's playlists. More...
|
| |
| virtual MusicThingie * | getAnythingById (const Media::SplitId &id) override |
| |
| virtual PianodPlaylist * | getMixPlaylist (void) override |
| |
| virtual PianodPlaylist * | getEverythingPlaylist (void) override |
| |
| virtual PianodPlaylist * | createPlaylist (const char *name, MusicThingie::Type type, MusicThingie *from) override |
| | Create a playlist using a thingie as an initial seed. More...
|
| |
| virtual PianodPlaylist * | createPlaylist (const char *name, const Filter &filter) override |
| | Create a playlist using a filter. More...
|
| |
| virtual PianodPlaylist * | getTransientPlaylist (const Filter &criteria) override |
| | Create a temporary playlist based on a filter. More...
|
| |
| virtual Media::Player * | getPlayer (const AudioSettings &audio, PianodSong *song) override |
| |
| virtual SongList | getRandomSongs (PianodPlaylist *playlist, const UserList &users, Media::SelectionMethod) override |
| |
| virtual ThingieList | getSuggestions (const Filter &filter, SearchRange where) override |
| |
| virtual MusicThingie * | getSuggestion (MusicThingie *thing, MusicThingie::Type type, SearchRange where) override |
| | Retrieve an equivalent or related album, artist, or song from a source. More...
|
| |
| | Source (SourceParameters *params) |
| | Initialize the source. More...
|
| |
| void | persist (void) const |
| | Persist source parameters, attaching them to the owner's user data. More...
|
| |
| bool | isReady (void) const |
| | Check if the source is online. More...
|
| |
| SerialNumber | serialNumber (void) const |
| | Get the source's unique number assigned by the media manager. More...
|
| |
| const Statistics & | getStatistics () const |
| | Retrieve playback statistics about the source. More...
|
| |
| const bool | isLockedOut () const |
| | Check if source is temporarily locked out due to repeated failures. More...
|
| |
| Parsnip::Data | serializeIdentity () const |
| |
| std::string | identify () const |
| | Identify the unique source. More...
|
| |
| void | alert (RESPONSE_CODE message) const |
| | Send an alert notification regarding this source. More...
|
| |
| void | alert (RESPONSE_CODE message, const char *detail, const char *reason=nullptr) const |
| | Send an alert notification regarding this source. More...
|
| |
| void | reportStatus (const char *detail) const |
| | Send a status notification regarding this source. More...
|
| |
| void | reportStatus (const std::string &detail) const |
| |
| const std::string & | name (void) const |
| | Get the name of this source. More...
|
| |
| std::string | key (void) const |
| | Key is a combination of kind and name. More...
|
| |
| std::string | filename (void) const |
| | Provide a filename for persisting the source's data. More...
|
| |
| virtual bool | requireNameForCreatePlaylist (void) const |
| | Indicate if a name is required when creating a playlist. More...
|
| |
| PianodPlaylist * | getPlaylistByName (const char *name) |
| | Retrieve a playlist by name. More...
|
| |
| void | playbackComplete (bool played, bool successfully) |
| | Update playback statistics. More...
|
| |
| virtual void | playbackProblem (void) |
| |
| MusicThingie * | getSuggestion (MusicThingie *thing, SearchRange where=SearchRange::SHALLOW) |
| | Retrieve an equivalent album, artist, or song from a source. More...
|
| |
| | PrimaryOwnership (void) |
| | Default construct ownership: No owner, private access. More...
|
| |
| | PrimaryOwnership (Type rule, User *owner=nullptr) |
| | Construct ownership. More...
|
| |
| | ~PrimaryOwnership (void) |
| |
| void | abandon (void) |
| | Disassociate ownership from any owner, and mark as disowned. More...
|
| |
| void | abandon (const User *user) |
| | Conditionally dissociate ownership. More...
|
| |
| User * | getOwner (void) const |
| |
| bool | isOwned (void) const |
| |
| const std::string & | ownerName (void) const |
| | Retrieve the name of the owner. More...
|
| |
| virtual bool | isOwnedBy (const User *user) const override |
| | Check if we are owned by a user. More...
|
| |
| virtual bool | hasPermission (const User *user, Action action) const override |
| | Determine if a user has permission to use this item in some manner. More...
|
| |
| 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 |
| |