blob: 68a0a668166ec8449f2a4f672642042154d7c867 (
plain)
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
|
#pragma once
#include <QSqlDatabase>
#include "library/dao/dao.h"
#include "track/cue.h"
#include "track/trackid.h"
#define CUE_TABLE "cues"
class Cue;
class CueDAO : public DAO {
public:
~CueDAO() override = default;
QList<CuePointer> getCuesForTrack(TrackId trackId) const;
void saveTrackCues(TrackId trackId, const QList<CuePointer>& cueList) const;
bool deleteCuesForTrack(TrackId trackId) const;
bool deleteCuesForTracks(const QList<TrackId>& trackIds) const;
private:
bool saveCue(Cue* pCue) const;
bool deleteCue(Cue* pCue) const;
};
|