![]() |
Sayonara Player
|
Classes | |
struct | ArtistDesc |
Public Types | |
enum | Quality : uint8_t { Poor = 0, Well = 1, Very_Good = 2 } |
The Quality enum used to access the bin of interest. See ArtistMatch::get(Quality q) | |
Public Member Functions | |
ArtistMatch (const QString &artist_name) | |
ArtistMatch (const ArtistMatch &other) | |
bool | is_valid () const |
checks, if structure is valid. More... | |
bool | operator== (const ArtistMatch &am) const |
Compares two ArtistMatch structures. More... | |
ArtistMatch & | operator= (const ArtistMatch &other) |
void | add (const ArtistDesc &artist, double match) |
adds an artist string to the corresponding bin More... | |
QMap< ArtistDesc, double > | get (Quality q) const |
get bin by quality More... | |
QString | get_artist_name () const |
get the corresponding artist name of the ArtistMatch structure More... | |
QString | to_string () const |
converts the artist match to string More... | |
void LastFM::ArtistMatch::add | ( | const ArtistDesc & | artist, |
double | match | ||
) |
adds an artist string to the corresponding bin
artist | artist string |
match | the match value |
QMap<ArtistDesc, double> LastFM::ArtistMatch::get | ( | Quality | q | ) | const |
QString LastFM::ArtistMatch::get_artist_name | ( | ) | const |
get the corresponding artist name of the ArtistMatch structure
bool LastFM::ArtistMatch::is_valid | ( | ) | const |
checks, if structure is valid.
bool LastFM::ArtistMatch::operator== | ( | const ArtistMatch & | am | ) | const |
Compares two ArtistMatch structures.
am | the other ArtistMatch |
QString LastFM::ArtistMatch::to_string | ( | ) | const |
converts the artist match to string