29 #ifndef PLAYLISTITEMMODEL_H_ 30 #define PLAYLISTITEMMODEL_H_ 32 #include "GUI/Utils/SearchableWidget/SearchableModel.h" 33 #include "Utils/typedefs.h" 34 #include "Utils/Playlist/PlaylistFwd.h" 35 #include "Utils/SetFwd.h" 36 #include "Utils/Pimpl.h" 54 int rowCount(
const QModelIndex &parent=QModelIndex())
const override;
55 QVariant data(
const QModelIndex &index,
int role=Qt::DisplayRole)
const override;
57 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
61 void remove_rows(
const IndexSet& rows);
62 void move_rows(
const IndexSet& rows,
int target_index);
65 void copy_rows(
const IndexSet& rows,
int target_index);
67 void set_current_track(
int row);
68 int current_track()
const;
70 QModelIndex getPrevRowIndexOf(
const QString& substr,
int row,
const QModelIndex &parent=QModelIndex())
override;
71 QModelIndex getNextRowIndexOf(
const QString& substr,
int row,
const QModelIndex &parent=QModelIndex())
override;
74 const MetaData& metadata(
int row)
const;
77 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
79 bool has_local_media(
const IndexSet& rows)
const;
83 void playlist_changed(
int pl_idx);
Definition: SearchableModel.h:55
Mimedata class for drag and dropping metadata.
Definition: CustomMimeData.h:33
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:36
std::shared_ptr< Playlist::Base > PlaylistPtr
PlaylistPtr Playlist Pointer (only used internally)
Definition: PlaylistFwd.h:38
Definition: org_mpris_media_player2_adaptor.h:21