21#ifndef LIBRARYITEMMODEL_H_
22#define LIBRARYITEMMODEL_H_
24#include "Gui/Utils/SearchableWidget/SearchableModel.h"
25#include "Utils/Pimpl.h"
51 QVariant headerData(
int section, Qt::Orientation orientation,
int role = Qt::DisplayRole)
const override;
52 bool setHeaderData(
int section, Qt::Orientation orientation,
const QVariant& value,
53 int role = Qt::EditRole)
override;
55 int columnCount(
const QModelIndex& parent = QModelIndex())
const override;
57 QModelIndexList searchResults(
const QString& substr)
override;
94 virtual QMimeData* mimeData(
const QModelIndexList& indexList)
const override;
96 void refreshData(
int* rowCountBefore =
nullptr,
int* rowCountAfter =
nullptr);
103 bool removeRows(
int position,
int rows,
const QModelIndex& index = QModelIndex())
override;
104 bool insertRows(
int row,
int count,
const QModelIndex& parent = QModelIndex())
override;
Definition: AbstractLibrary.h:44
Definition: CoverLocation.h:39
The ItemModel is intended to abstract the various views. It supports searching, selections and a libr...
Definition: ItemModel.h:43
virtual Cover::Location cover(const QModelIndexList &indexList) const =0
return the cover for multiple rows. if rows.size() > 1, an invalid, default constructed cover locatio...
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 QString searchableString(int row) const =0
here, the searchable string can even be refined. Maybe we just want to search within a substring indi...
virtual const MetaDataList & selectedMetadata() const =0
return the tracks which belong to the selections. If an album is selected for example,...
virtual Id mapIndexToId(int row) const =0
return the current id for a given row
Definition: SearchableModel.h:50
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31