29 #ifndef PLAYLISTITEMMODEL_H_ 30 #define PLAYLISTITEMMODEL_H_ 32 #include "Gui/Utils/SearchableWidget/SearchableModel.h" 33 #include "Utils/Playlist/PlaylistFwd.h" 34 #include "Utils/Pimpl.h" 51 void sig_data_ready();
66 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
67 int columnCount(
const QModelIndex& parent=QModelIndex())
const override;
69 Qt::ItemFlags flags(
const QModelIndex& index=QModelIndex())
const override;
70 QVariant data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const override;
71 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
75 QModelIndex getRowIndexOf(
const QString& substr,
int row,
bool is_forward);
76 QModelIndexList search_results(
const QString& substr)
override;
79 void remove_rows(
const IndexSet& rows);
84 void change_rating(
const IndexSet& rows, Rating rating);
87 void set_current_track(
int row);
88 int current_track()
const;
93 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
95 bool has_local_media(
const IndexSet& rows)
const;
96 void set_drag_index(
int drag_index);
97 void set_row_height(
int row_height);
106 void playlist_changed(
int pl_idx);
Definition: SearchableModel.h:56
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
The PlaylistItemModel class.
Definition: Model.h:42
Definition: org_mpris_media_player2_adaptor.h:21