-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathyoutubedl.h
51 lines (39 loc) · 1019 Bytes
/
youtubedl.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
#ifndef YOUTUBEDL_H
#define YOUTUBEDL_H
#include <QProcess>
#include <QString>
#include <QStringList>
#include <QFile>
#include "webpagedownloader.h"
class YoutubeDL : public QProcess
{
Q_OBJECT
public:
enum State{
NotRunning,
WaitingResult,
Running
};
YoutubeDL(const QString& _url = "", const QString& _fichierDestination = "", const bool& _musiqueSeule = false, QObject *parent = nullptr);
void telecharger();
void verifierMisesAJour();
void mettreAJour();
signals:
void estAJour(QString versionActuelle, QString versionInternet);
void miseAJourTerminee(int);
public slots:
void recevoirVersion();
void recevoirYoutubeDLWebsite(QByteArray);
void miseAJourTerminee();
private:
QString url;
QString fichierDestination;
QString program;
QString version, derniereVersion;
QStringList arguments;
bool musiqueSeule;
bool corrigerNomFichier;
bool playlistComplete;
State state;
};
#endif // YOUTUBEDL_H