29 #ifndef PLAYLISTITEMMODEL_H_ 30 #define PLAYLISTITEMMODEL_H_ 32 #include "GUI/Helper/SearchableWidget/AbstractSearchModel.h" 33 #include "Helper/typedefs.h" 34 #include "Helper/Playlist/PlaylistFwd.h" 55 int rowCount(
const QModelIndex &parent=QModelIndex())
const override;
56 QVariant data(
const QModelIndex &index,
int role=Qt::DisplayRole)
const override;
57 const MetaData& get_md(
int row)
const;
59 Qt::ItemFlags flags(
const QModelIndex &index)
const override;
61 bool setData(
const QModelIndex &index,
const QVariant& var,
int role=Qt::DisplayRole)
override;
66 void move_rows(
const SP::Set<int>& rows,
int target_index);
67 void copy_rows(
const SP::Set<int>& rows,
int target_index);
69 void set_current_track(
int row);
70 int get_current_track()
const;
72 QModelIndex getFirstRowIndexOf(
const QString& substr)
override;
73 QModelIndex getPrevRowIndexOf(
const QString& substr,
int row,
const QModelIndex &parent=QModelIndex())
override;
74 QModelIndex getNextRowIndexOf(
const QString& substr,
int row,
const QModelIndex &parent=QModelIndex())
override;
79 CustomMimeData* get_custom_mimedata(
const QModelIndexList& indexes)
const;
80 QMimeData* mimeData(
const QModelIndexList& indexes)
const override;
82 bool has_local_media(
const IdxList& idxs)
const;
89 void playlist_changed(
int pl_idx);
Definition: AbstractSearchModel.h:55
The MetaDataList class.
Definition: AbstractPlaylist.h:34
Set namespace defines the setting: Which key and which type.
Definition: SettingKey.h:200
Mimedata class for drag and dropping metadata.
Definition: CustomMimeData.h:33
std::shared_ptr< AbstractPlaylist > PlaylistPtr
PlaylistPtr Playlist Pointer (only used internally)
Definition: PlaylistFwd.h:27
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:37
Definition: PlaylistItemModel.h:47
Definition: org_mpris_media_player2_adaptor.h:21