|
pianod2
multisource multiuser scriptable networked music player
|
Playlist "tuner". More...
#include <config.h>#include <cassert>#include <cstdio>#include <string>#include <vector>#include <algorithm>#include "callback.h"#include "callbackimpl.h"#include "interpreter.h"#include "logging.h"#include "connection.h"#include "response.h"#include "user.h"#include "users.h"#include "mediaunit.h"#include "mediamanager.h"#include "predicate.h"#include "retainedlist.h"#include "tuner.h"
Classes | |
| struct | Tuner::PlaylistSummary |
| A structure used for autotuning calculations. More... | |
Namespaces | |
| Tuner | |
| Store and maintain mixes and perform autotuning. | |
Macros | |
| #define | KEY_CONSIDER "consider" |
| #define | KEY_VETO "vetoRating" |
| #define | KEY_REJECT "rejectionRating" |
| #define | KEY_INCLUDE "inclusionRating" |
| #define | KEY_QUANTITY_GOAL "quantityGoal" |
| #define | KEY_QUALITY_MARGIN "qualityMargin" |
| #define | KEY_RANDOMIZE_METHOD "randomizeBy" |
| #define | KEY_ADJUST_ACTION "action" |
| #define | KEY_DETAIL "detail" |
| #define | DETAIL_OPTIONS "[" KEY_DETAIL ":names|details|list]" |
Enumerations | |
| enum class | Tuner::PlaylistDetailLevel { Tuner::NAME , Tuner::DETAIL } |
| enum class | Tuner::AutotuneConsiders { Tuner::LOGIN , Tuner::FLAG , Tuner::ALL } |
Functions | |
| const Parsnip::OptionParser::Definitions & | Tuner::autotuning_option_parser_definitions () |
| void | Tuner::interpret_autotune_options (const Parsnip::Data &options, AutotuneSettings *dest) |
| Interpret options into the AutotuneSettings structure. More... | |
| const Parsnip::Parser::Definitions & | Tuner::parser_definitions () |
| const PianodSchema::CommandIds & | Tuner::json_request_names () |
| Retrieve names for our JSON requests. More... | |
| static ResponseCollector | Tuner::sendPlaylistList (PlaylistList &list, PlaylistDetailLevel format) |
| Send a list of playlists. More... | |
Variables | |
| const LookupTable< CartsVerb > | CartsWord |
| Text to enumeration translations for playlist mix actions. More... | |
| const LookupTable< Media::SelectionMethod > | SelectionMethodWords |
| Text to enumeration translations for randomization methods. More... | |
| const LookupTable< PlaylistDetailLevel > | Tuner::PlaylistDetailLevels |
| Text to enumeration values for detail level in playlist lists. More... | |
| static const LookupTable< AutotuneConsiders > | Tuner::AutotuneConsiderLookup ({ { "login", AutotuneConsiders::LOGIN }, { "flag", AutotuneConsiders::FLAG }, { "all", AutotuneConsiders::ALL } }) |
Playlist "tuner".
Manages the playlists included in a mix.
| #define DETAIL_OPTIONS "[" KEY_DETAIL ":names|details|list]" |
| #define KEY_ADJUST_ACTION "action" |
| #define KEY_CONSIDER "consider" |
| #define KEY_DETAIL "detail" |
| #define KEY_INCLUDE "inclusionRating" |
| #define KEY_QUALITY_MARGIN "qualityMargin" |
| #define KEY_QUANTITY_GOAL "quantityGoal" |
| #define KEY_RANDOMIZE_METHOD "randomizeBy" |
| #define KEY_REJECT "rejectionRating" |
| #define KEY_VETO "vetoRating" |
| const LookupTable<CartsVerb> CartsWord |
Text to enumeration translations for playlist mix actions.
Lookup table for inclusion/exclusion (CARTS) actions.
| const LookupTable<Media::SelectionMethod> SelectionMethodWords |
Text to enumeration translations for randomization methods.