Sayonara Player
Public Member Functions | Static Public Member Functions | List of all members
ArtistList Class Reference

#include <Artist.h>

Detailed Description

ArtistList.

Public Member Functions

QString get_major_artist () const
 extract the main artist out of the artist list More...
 
bool contains (int artist_id) const
 
int count () const
 
ArtistListoperator<< (const Artist &artist)
 
Artist first () const
 
void sort (Library::SortOrder so)
 

Static Public Member Functions

static QString get_major_artist (const QStringList &artists)
 extract the main artist out of the artist list More...
 

Member Function Documentation

◆ get_major_artist() [1/2]

static QString ArtistList::get_major_artist ( const QStringList &  artists)
static

extract the main artist out of the artist list

Parameters
artistsartist list
Returns
the name that appears more than 2/3 of all available artists

◆ get_major_artist() [2/2]

QString ArtistList::get_major_artist ( ) const

extract the main artist out of the artist list

Parameters
artistsartist list
Returns
the name that appears more than 2/3 of all available artists
Inheritance diagram for ArtistList: