forked from milohr/babe-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplaylist.h
44 lines (33 loc) · 811 Bytes
/
playlist.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#ifndef PLAYLIST_H
#define PLAYLIST_H
#include "vector"
#include "track.h"
#include <fstream>
#include <QDebug>
#include <QStringList>
#include <QFileInfo>
#include <QMimeDatabase>
#include <QMimeType>
#include <QString>
#include <taginfo.h>
#include <babetable.h>
//#include <QtMultimedia/QMediaPlayer>
class Playlist
{
public:
Playlist();
QStringList getList();
void add(QStringList files);
void addClean(QStringList files);
void remove(int index);
void removeAll();
bool isMusic(QString file);
QStringList getTracksNameList();
QStringList getTracksNameListSimple();
QList<QMap<int,QString>> getTracksData();
std::vector<Track> tracks;
QList<Track> getTracks();
private:
void setMetaData(QString,QString,QString,QString);
};
#endif // PLAYLIST_H