 |
Sayonara Player
|
21 #ifndef LIBRARYITEMMODEL_H_
22 #define LIBRARYITEMMODEL_H_
24 #include "Gui/Utils/SearchableWidget/SearchableModel.h"
25 #include "Utils/Pimpl.h"
56 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
57 bool setHeaderData(
int section, Qt::Orientation orientation,
const QVariant& value,
58 int role = Qt::EditRole)
override;
60 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
62 QModelIndexList searchResults(
const QString& substr)
override;
101 void refreshData(
int* rowCountBefore =
nullptr,
int* rowCountAfter =
nullptr);
108 bool removeRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
109 bool insertRows(
int row,
int count,
const QModelIndex& parent = QModelIndex())
override;
virtual int searchableColumn() const =0
the index of the searchable column. This is the column where the text is searched for a certain searc...
virtual const MetaDataList & selectedMetadata() const =0
return the tracks which belong to the selections. If an album is selected for example,...
Mimedata class for drag and dropping metadata.
Definition: CustomMimeData.h:37
virtual Cover::Location cover(const IndexSet &rows) const =0
return the cover for multiple rows. if rows.size() > 1, an invalid, default constructed cover locatio...
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:37
Definition: SearchableModel.h:58
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
virtual Id mapIndexToId(int row) const =0
return the current id for a given row
The CoverLocation class.
Definition: CoverLocation.h:39
virtual QString searchableString(int row) const =0
here, the searchable string can even be refined. Maybe we just want to search within a substring indi...