-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplaylist.h
53 lines (44 loc) · 1.11 KB
/
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
45
46
47
48
49
50
51
52
53
#ifndef PLAYLIST_H
#define PLAYLIST_H
#include <QList>
#include <QIcon>
class Playlist : public QObject
{
Q_OBJECT
public:
enum class Type {MASTER = 0, ALBUM = 1, ARTIST = 2, SONG = 3, USER = 4, FOLDERS = 5};
explicit Playlist(QObject *parent = 0);
~Playlist();
QList<int> getSongList();
QList<int> getShuffleList();
void setPlaylist(Type _type, int playlistNum);
int getCurrentSong();
void playFirstSong(bool isShuffling);
void playLastSong(bool isShuffling);
void nextSong(bool isShuffling, bool isLocked);
void prevSong(bool isShuffling, bool isLocked);
void reShuffle(bool changeSong = false);
void setName(QString _name);
QString getName();
void setIcon();
QIcon getIcon();
Type getType();
int getId();
bool getInit();
private:
bool isInit;
QString name;
QList<int> songList;
QList<int> shuffleList;
int currentSong;
int currentPos;
Type type;
int id;
QIcon icon;
signals:
void changeCurrentSong(int currentSong);
void nextPlaylist();
void prevPlaylist();
public slots:
};
#endif // PLAYLIST_H