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" 47 void sig_data_ready();
62 int rowCount(
const QModelIndex& parent=QModelIndex())
const override;
63 int columnCount(
const QModelIndex& parent=QModelIndex())
const override;
65 Qt::ItemFlags flags(
const QModelIndex& index=QModelIndex())
const override;
66 QVariant data(
const QModelIndex& index,
int role=Qt::DisplayRole)
const override;
67 bool setData(
const QModelIndex &index,
const QVariant &value,
int role)
override;
71 QModelIndex getRowIndexOf(
const QString& substr,
int row,
bool is_forward);
72 QModelIndexList search_results(
const QString& substr)
override;
75 void remove_rows(
const IndexSet& rows);
80 void change_rating(
const IndexSet& rows, Rating rating);
83 void set_current_track(
int row);
84 int current_track()
const;
86 const MetaData& metadata(
int row)
const;
89 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
91 bool has_local_media(
const IndexSet& rows)
const;
92 void set_drag_index(
int drag_index);
101 void playlist_changed(
int pl_idx);
Definition: SearchableModel.h:52
Mimedata class for drag and dropping metadata.
Definition: CustomMimeData.h:32
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: SomaFMStation.h:33
std::shared_ptr< Playlist::Base > PlaylistPtr
PlaylistPtr Playlist Pointer (only used internally)
Definition: PlaylistFwd.h:38
Definition: org_mpris_media_player2_adaptor.h:21