forked from z52c/MusicDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qqmusic.h
41 lines (35 loc) · 866 Bytes
/
qqmusic.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
#ifndef QQMUSIC_H
#define QQMUSIC_H
#include <QObject>
#include "qqmusicalbum.h"
#include "qqmusicplaylist.h"
#include "qqmusicsong.h"
extern int songNameType;
extern int songQuality;
extern QString mp3FileName;
extern QString mp3Dir;
extern QString vkey;
extern QString guid;
class qqmusic : public QObject
{
Q_OBJECT
public:
explicit qqmusic(QObject *parent = nullptr);
void doJob(QString inlink);
signals:
void progress(qint64, qint64);
void finished();
void status(QString);
public slots:
void beginToDownload(int inFlag,QStringList inSongMidList);
void songDownloadFinished(int inFlag);
private:
qqMusicAlbum *album;
qqMusicPlaylist *playlist;
qqMusicSong *song;
QStringList songMidList;
int index;
int total;
void downloadSong();
};
#endif // QQMUSIC_H