forked from z52c/MusicDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
neteaseplaylist.h
44 lines (38 loc) · 1007 Bytes
/
neteaseplaylist.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 NETEASEPLAYLIST_H
#define NETEASEPLAYLIST_H
#include <QObject>
#include "downloader.h"
#include "daye.h"
#include "config.h"
#include "neteasesong.h"
extern int songNameType;
extern int songQuality;
extern QString mp3FileName;
extern QString mp3Dir;
extern QString vkey;
extern QString guid;
class neteasePlaylist : public QObject
{
Q_OBJECT
public:
explicit neteasePlaylist(QObject *parent = nullptr);
void doJob(bool inIsGray,QString inUrl);
signals:
void finished(int ,QStringList);
void status(QString);
public slots:
void htmlGot();
void htmlGotFailed(QString errorString);
void htmlGotRedirected(QString redirectString);
void neteaseSongFinished(int inFlag,bool inIsGray,QString inString);
private:
QString mid;
downloader *d;
neteaseSong *s;
QStringList songMidList;
bool isGray;
QStringList infoList;
QStringList grayList;
QString listTitle;
};
#endif // NETEASEPLAYLIST_H