pianod2
multisource multiuser scriptable networked music player
Public Member Functions | Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
MusicLibrary::LibraryParameters Class Reference

#include <musiclibraryparameters.h>

Inheritance diagram for MusicLibrary::LibraryParameters:
Inheritance graph
[legend]
Collaboration diagram for MusicLibrary::LibraryParameters:
Collaboration graph
[legend]

Public Member Functions

 LibraryParameters (Ownership::Type perm, User *user)
 
 LibraryParameters (const UserData::JSONData &src)
 
virtual bool persist (UserData::JSONData &dest) const override
 
void extractOptions (const Parsnip::Data &options)
 
- Public Member Functions inherited from Media::SourceParameters
 SourceParameters (void)
 
 SourceParameters (Ownership::Type perm, User *user=nullptr)
 
 SourceParameters (Ownership::Type perm, const std::string &sourcename)
 
 SourceParameters (const UserData::JSONData &src)
 
virtual ~SourceParameters ()
 
void extractOptions (const Parsnip::Data &options)
 

Static Public Member Functions

static Parsnip::OptionParser::Definitions parser_definitions ()
 
- Static Public Member Functions inherited from Media::SourceParameters
static const Parsnip::OptionParser::Definitionsparser_definitions ()
 

Public Attributes

int recent_bias = BIAS_NEUTRAL
 Amount of bias to apply for time since last play. More...
 
int rating_bias = BIAS_NEUTRAL
 Amount of bias to apply for user ratings. More...
 
ScanFrequency scan_frequency = ScanFrequency::NEXTSTARTUP
 
- Public Attributes inherited from Media::SourceParameters
ProxyMode song_proxy = ProxyMode::None
 
Userowner = nullptr
 
Ownership::Type permissions = Ownership::Type::PRIVATE
 
PersistenceMode persistence = PersistenceMode::Temporary
 Persistence state. More...
 
std::string name
 
bool waitForReady = false
 Wait on initialization. Flag never persisted. More...
 

Private Member Functions

void extract (const Parsnip::Data &options)
 

Constructor & Destructor Documentation

◆ LibraryParameters() [1/2]

MusicLibrary::LibraryParameters::LibraryParameters ( Ownership::Type  perm,
User user 
)

◆ LibraryParameters() [2/2]

MusicLibrary::LibraryParameters::LibraryParameters ( const UserData::JSONData src)
Here is the call graph for this function:

Member Function Documentation

◆ extract()

void MusicLibrary::LibraryParameters::extract ( const Parsnip::Data options)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ extractOptions()

void MusicLibrary::LibraryParameters::extractOptions ( const Parsnip::Data options)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parser_definitions()

Parsnip::OptionParser::Definitions MusicLibrary::LibraryParameters::parser_definitions ( void  )
static

Parse definitions for the parameter parser

Here is the call graph for this function:
Here is the caller graph for this function:

◆ persist()

bool MusicLibrary::LibraryParameters::persist ( UserData::JSONData dest) const
overridevirtual

Reimplemented from Media::SourceParameters.

Reimplemented in Filesystem::Parameters.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ rating_bias

int MusicLibrary::LibraryParameters::rating_bias = BIAS_NEUTRAL

Amount of bias to apply for user ratings.

◆ recent_bias

int MusicLibrary::LibraryParameters::recent_bias = BIAS_NEUTRAL

Amount of bias to apply for time since last play.

◆ scan_frequency

ScanFrequency MusicLibrary::LibraryParameters::scan_frequency = ScanFrequency::NEXTSTARTUP

The documentation for this class was generated from the following files: