|
pianod2
multisource multiuser scriptable networked music player
|
Pandora source, player and related datatype specializations. More...
Namespaces | |
| Key | |
Classes | |
| class | Library |
| class | Source |
| class | PartnerLoginRequest |
| class | AuthorizationRequest |
| Pandora login request. More... | |
| class | UserFeatures |
| class | Communication |
| Pandora communication class. More... | |
| class | Request |
| Pandora request class. More... | |
| class | RequestWithNoData |
| Pandora request class. A request whose response is empty/unimportant. More... | |
| class | Notification |
| Pandora request class. A request whose response is empty/unimportant. More... | |
| class | RequestStationList |
| Pandora message: Retrieve station list. More... | |
| class | RequestStationListChecksum |
| Pandora message: Retrieve station list. More... | |
| class | RequestGenreStationList |
| Pandora message: Retrieve station list. More... | |
| class | SetQuickMixStations |
| Pandora message: set quickmix stations. More... | |
| class | RequestCreateStation |
| Pandora message: create a station. More... | |
| class | RequestRemoveStation |
| Pandora message: delete a station. More... | |
| class | RequestTransformStation |
| Pandora message: transform a shared station into a personal station. More... | |
| class | RequestRenameStation |
| Pandora message: rename a station. More... | |
| class | RequestStationDetails |
| Pandora message: Retrieve station seeds. More... | |
| class | RequestAddStationSeed |
| Pandora message: Add or remove station seeds. More... | |
| class | RequestRemoveStationSeed |
| Pandora message: Add or remove station seeds. More... | |
| class | RequestAddTiredSong |
| Pandora message: Provide feedback for a song on a station. More... | |
| class | RequestAddFeedback |
| Pandora message: Provide feedback for a song that has played on a station. More... | |
| class | RequestDeleteFeedback |
| Pandora message: Remove feedback for a song on a station. More... | |
| class | RequestQueueTracks |
| Pandora message: Retrieve list of music to play from a station. More... | |
| class | SearchRequest |
| class | RetrieveAdvert |
| class | AdvertPlayedNotification |
| struct | JSONProtocolParameters |
| struct | ConnectionParameters |
| Pandora connection and source settings. More... | |
| class | SkipTracker |
| A class to manage Pandora skips. More... | |
| class | StationDefinitionDetails |
| class | Station |
| class | QuickMixStation |
| Class representing the Pandora quick mix station. More... | |
| class | MixEverythingStation |
| Class representing a mix of all of a user's Pandora stations. More... | |
| class | StationLookup |
| Station lookup. More... | |
| class | Song |
| Class for Pandora songs. Constructed from annotations. More... | |
| class | PlayableSong |
| Playable song: a song with playback information. More... | |
| class | SongRating |
| A song that contains rating information. More... | |
| class | SongSeed |
| A song contructed from station seed information. More... | |
| class | SongSuggestion |
| A song constructed from a suggestion. More... | |
| class | Advert |
| class | Artist |
| Class for Pandora artists. Constructed from annotations. More... | |
| class | ArtistSuggestion |
| An artist contructed from search results. More... | |
| class | ArtistSeed |
| A artist contructed from station seed information. More... | |
| class | GenreSuggestion |
| A genre constructed from a suggestion. More... | |
| class | GenreSeed |
| A class for Pandora genre seeds. More... | |
Typedefs | |
| using | StationList = RetainedList< Station * > |
Enumerations | |
| enum class | Status { Ok , CorruptMessage , MessageFormatUnknown , AllocationError , InternalError , CommunicationError , TooFrequentErrors , BadRequest = 400 , Unauthorized = 401 , StreamingViolation = 429 , BadGateway = 502 , PandoraError0 = 999 , PandoraReadOnlyMode = 1000 , InvalidAuthToken = 1001 , InvalidPandoraCredentials = 1002 , PandoraSubscriptionExpired = 1003 , UserNotAuthorized = 1004 , StationLimitReached = 1005 , NoSuchStation = 1006 , SharedStationNotMutable = 1008 , DeviceNotAllowed = 1009 , PartnerNotAuthorized = 1010 , InvalidUsername = 1011 , InvalidPassword = 1012 , PlaylistRequestsExceeded = 1039 } |
| Communication completion statuses. More... | |
| enum class | RequestOption { NONE = 0 , DEBUG = 1 , TLS = 2 , UNENCRYPTED = 4 } |
| enum class | ProtocolNature { AUTOMATIC , STANDARD , PANDORAPLUS , PANDORAPREMIUM , CUSTOM } |
Functions | |
| const std::string | status_strerror (Status status) |
| Return a string corresponding to a Pandora communication status. More... | |
| static constexpr RequestOption | operator& (const RequestOption a, const RequestOption b) |
| static constexpr RequestOption | operator| (const RequestOption a, const RequestOption b) |
| static Rating | rounded_rating (const Rating rating) |
| Round the value to Pandora's thumbs. More... | |
| std::string | pandora_to_music_id (const std::string &musicId) |
Variables | |
| static const std::unordered_map< Status, std::string > | pandora_errors |
| static const int | MinimumCacheMargin = 100 |
| const LookupTable< ProtocolNature > | ProtocolNatureLookup ({ { "PandoraPlus", ProtocolNature::PANDORAPLUS }, { "PandoraOne", ProtocolNature::PANDORAPLUS }, { "PandoraPremium", ProtocolNature::PANDORAPREMIUM }, { "Standard", ProtocolNature::STANDARD }, { "Automatic", ProtocolNature::AUTOMATIC }, { "Custom", ProtocolNature::CUSTOM }, { "Plus", ProtocolNature::PANDORAPLUS }, { "Premium", ProtocolNature::PANDORAPREMIUM }}) |
| Name to enum translation for Pandora connection parameters. More... | |
| const int | StationListCacheTime = 1800 |
| const int | StationDetailCacheTime = 10000 |
| const Rating | ThumbsDown = Rating::POOR |
| Rating value for negative Pandora feedback. More... | |
| const Rating | ThumbsUp = Rating::GOOD |
| Rating value for positive Pandora feedback. More... | |
Pandora source, player and related datatype specializations.
| using Pandora::StationList = typedef RetainedList<Station *> |
|
strong |
|
strong |
|
strong |
Communication completion statuses.
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
| std::string Pandora::pandora_to_music_id | ( | const std::string & | musicId | ) |
Round the value to Pandora's thumbs.
| CommandError/unsupported | media value if an inappropriate rating. |

| const std::string Pandora::status_strerror | ( | Status | status | ) |
Return a string corresponding to a Pandora communication status.
| status | The communication status. |

|
static |
|
static |
| const LookupTable<ProtocolNature> Pandora::ProtocolNatureLookup({ { "PandoraPlus", ProtocolNature::PANDORAPLUS }, { "PandoraOne", ProtocolNature::PANDORAPLUS }, { "PandoraPremium", ProtocolNature::PANDORAPREMIUM }, { "Standard", ProtocolNature::STANDARD }, { "Automatic", ProtocolNature::AUTOMATIC }, { "Custom", ProtocolNature::CUSTOM }, { "Plus", ProtocolNature::PANDORAPLUS }, { "Premium", ProtocolNature::PANDORAPREMIUM }}) | ( | { { "PandoraPlus", ProtocolNature::PANDORAPLUS }, { "PandoraOne", ProtocolNature::PANDORAPLUS }, { "PandoraPremium", ProtocolNature::PANDORAPREMIUM }, { "Standard", ProtocolNature::STANDARD }, { "Automatic", ProtocolNature::AUTOMATIC }, { "Custom", ProtocolNature::CUSTOM }, { "Plus", ProtocolNature::PANDORAPLUS }, { "Premium", ProtocolNature::PANDORAPREMIUM }} | ) |
Name to enum translation for Pandora connection parameters.
| const int Pandora::StationDetailCacheTime = 10000 |
| const int Pandora::StationListCacheTime = 1800 |
| const Rating Pandora::ThumbsDown = Rating::POOR |
Rating value for negative Pandora feedback.
| const Rating Pandora::ThumbsUp = Rating::GOOD |
Rating value for positive Pandora feedback.