21 #ifndef SAYONARA_ARTIST_H_
22 #define SAYONARA_ARTIST_H_
24 #include "Utils/MetaData/LibraryItem.h"
25 #include "Utils/Library/Sortorder.h"
26 #include "Utils/Pimpl.h"
28 #include <QStringList>
52 void setName(
const QString& name);
54 static bool fromVariant(
const QVariant& v,
Artist& a);
55 static QVariant toVariant(
const Artist& a);
58 uint16_t albumcount()
const;
59 void setAlbumcount(
const uint16_t& value);
61 uint16_t songcount()
const;
62 void setSongcount(
const uint16_t& value);
65 void setId(
const ArtistId& value);
78 using Parent=std::deque<Artist>;
81 using Size=Parent::size_type;
101 bool contains(ArtistId artistId)
const;
ArtistList.
Definition: Artist.h:77
static QString majorArtist(const QStringList &artists)
extract the main artist out of the artist list
QString majorArtist() const
extract the main artist out of the artist list
The Artist class.
Definition: Artist.h:38
The LibraryItem class.
Definition: LibraryItem.h:65
SortOrder
The SortOrder enum.
Definition: Sortorder.h:32