 |
Sayonara Player
|
21 #ifndef ALBUMCOVERMODEL_H
22 #define ALBUMCOVERMODEL_H
24 #include "Gui/Library/ItemModel.h"
25 #include "Utils/Pimpl.h"
54 AlbumRole=Qt::UserRole,
55 ArtistRole=Qt::UserRole + 1,
56 CoverRole=Qt::UserRole + 2
63 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
64 int columnCount(
const QModelIndex& paren=QModelIndex())
const override;
65 QVariant data(
const QModelIndex& index,
int role)
const override;
66 Qt::ItemFlags flags(
const QModelIndex& index)
const override;
68 QSize itemSize()
const;
75 QModelIndexList searchResults(
const QString& substr)
override;
84 bool insertRows(
int row,
int count,
const QModelIndex& parent=QModelIndex())
override;
85 bool removeRows(
int row,
int count,
const QModelIndex& parent=QModelIndex())
override;
86 bool insertColumns(
int column,
int count,
const QModelIndex& parent=QModelIndex())
override;
87 bool removeColumns(
int column,
int count,
const QModelIndex& parent=QModelIndex())
override;
91 void setZoom(
int zoom,
const QSize& view_size);
97 void coverLookupFinished(
bool success);
98 void showArtistsChanged();
102 #endif // ALBUMCOVERMODEL_H
The CoverModel class.
Definition: CoverModel.h:47
Cover::Location cover(const IndexSet &indexes) const override
return the cover for multiple rows. if rows.size() > 1, an invalid, default constructed cover locatio...
int searchableColumn() const override
the index of the searchable column. This is the column where the text is searched for a certain searc...
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:37
int mapIndexToId(int idx) const override
return the current id for a given row
The Album class.
Definition: Album.h:41
Definition: AbstractLibrary.h:43
The ItemModel is intended to abstract the various views. It supports searching, selections and a libr...
Definition: ItemModel.h:48
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
QString searchableString(int idx) const override
here, the searchable string can even be refined. Maybe we just want to search within a substring indi...
const MetaDataList & selectedMetadata() const override
return the tracks which belong to the selections. If an album is selected for example,...
The AlbumList class.
Definition: Album.h:100
The CoverLocation class.
Definition: CoverLocation.h:39