21 #ifndef LIBRARYITEMMODEL_H_ 22 #define LIBRARYITEMMODEL_H_ 24 #include "GUI/Utils/SearchableWidget/SearchableModel.h" 26 #include "Utils/Pimpl.h" 50 QVariant
headerData (
int section, Qt::Orientation orientation,
int role=Qt::DisplayRole )
const override;
51 bool set_header_data(
const QStringList& names);
53 virtual int columnCount(
const QModelIndex& parent=QModelIndex())
const override;
55 void refresh_data(
int* n_rows_before=
nullptr,
int* n_rows_after=
nullptr);
58 virtual QModelIndex
getNextRowIndexOf(
const QString& substr,
int row,
const QModelIndex& parent=QModelIndex())
override;
59 virtual QModelIndex getPrevRowIndexOf(
const QString& substr,
int row,
const QModelIndex& parent=QModelIndex())
override;
61 virtual bool is_selected(
int id)
const final;
62 virtual const IndexSet& selections()
const=0;
64 virtual int searchable_column()
const=0;
65 virtual QString searchable_string(
int row)
const=0;
66 virtual int id_by_row(
int row)=0;
77 bool removeRows(
int position,
int rows,
const QModelIndex& index=QModelIndex())
override;
78 bool insertRows(
int row,
int count,
const QModelIndex &parent=QModelIndex())
override;
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override
Definition: SearchableModel.h:55
Definition: AbstractLibrary.h:47
The CoverLocation class.
Definition: CoverLocation.h:41
Mimedata class for drag and dropping metadata.
Definition: CustomMimeData.h:33
An interface class needed when implementing a library plugin.
Definition: LibraryManager.h:36
Definition: SomaFMStation.h:33
virtual QModelIndex getNextRowIndexOf(const QString &substr, int row, const QModelIndex &parent=QModelIndex()) override
Definition: ItemModel.h:39
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:36