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;
72 QModelIndex index(
int row,
int column,
const QModelIndex& parent=QModelIndex())
const override;
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();
Definition: AbstractLibrary.h:44
Definition: CoverLocation.h:39
The CoverModel class.
Definition: CoverModel.h:47
int mapIndexToId(int index) const override
return the current id for a given row
Cover::Location cover(const QModelIndexList &indexes) const override
return the cover for multiple rows. if rows.size() > 1, an invalid, default constructed cover locatio...
QString searchableString(int index) const override
here, the searchable string can even be refined. Maybe we just want to search within a substring indi...
int searchableColumn() const override
the index of the searchable column. This is the column where the text is searched for a certain searc...
const MetaDataList & selectedMetadata() const override
return the tracks which belong to the selections. If an album is selected for example,...
The ItemModel is intended to abstract the various views. It supports searching, selections and a libr...
Definition: ItemModel.h:43
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31