21 #ifndef ALBUMCOVERMODEL_H 22 #define ALBUMCOVERMODEL_H 24 #include "Gui/Library/ItemModel.h" 25 #include "Utils/Pimpl.h" 50 AlbumRole=Qt::UserRole,
51 ArtistRole=Qt::UserRole + 1
58 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
59 int columnCount(
const QModelIndex& paren=QModelIndex())
const override;
60 QVariant data(
const QModelIndex& index,
int role)
const override;
61 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
63 QSize item_size()
const;
72 QModelIndexList search_results(
const QString& substr)
override;
74 int searchable_column()
const override;
75 QString searchable_string(
int idx)
const override;
76 int id_by_index(
int idx)
const override;
81 void add_rows(
int row,
int count);
82 void remove_rows(
int row,
int count);
83 void add_columns(
int column,
int count);
84 void remove_columns(
int column,
int count);
88 void set_zoom(
int zoom,
const QSize& view_size);
93 void cover_ready(
const QString& hash);
95 void cover_lookup_finished(
bool success);
96 void show_artists_changed();
100 #endif // ALBUMCOVERMODEL_H Definition: AbstractLibrary.h:38
The CoverLocation class.
Definition: CoverLocation.h:37
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
The AlbumList class.
Definition: Album.h:89
The Album class.
Definition: Album.h:39
An interface class needed when implementing a library plugin.
Definition: CachingThread.h:29
Definition: SomaFMStation.h:33
Definition: ItemModel.h:37
Definition: CoverModel.h:41