-
Notifications
You must be signed in to change notification settings - Fork 1
/
PlayqueueModel.h
29 lines (22 loc) · 765 Bytes
/
PlayqueueModel.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef PLAYQUEUEMODEL_H
#define PLAYQUEUEMODEL_H
#include <QAbstractItemModel>
#include <QMimeData>
#include "DBApi.h"
#include "PlayItemModel.h"
class PlayqueueModel : public PlayItemTableModel {
Q_OBJECT
public:
PlayqueueModel(QObject *parent = nullptr, DBApi *api = nullptr);
~PlayqueueModel();
// PlayItem implementation
playItemList tracks(const QList<int> &tracks) const override;
void insertTracks(playItemList *l, int after) override;
void moveIndexes(QList<int> indices, int after) override;
void removeIndexes(QList<int> indices) override;
int rowCount(const QModelIndex &parent = QModelIndex()) const override;
ddb_playlist_t *plt;
protected slots:
void onQueueChanged();
};
#endif // PLAYQUEUEMODEL_H