31 lines
753 B
C++
31 lines
753 B
C++
#ifndef DIALOGDOWNLOADER_H
|
|
#define DIALOGDOWNLOADER_H
|
|
|
|
#include <QLineEdit>
|
|
#include <QDialog>
|
|
#include <QProgressBar>
|
|
#include <QPushButton>
|
|
#include <QLabel>
|
|
#include <QThread>
|
|
|
|
class DownloaderWorker;
|
|
|
|
class DialogDownloader : public QDialog {
|
|
Q_OBJECT
|
|
QProgressBar* progressBar = nullptr;
|
|
QPushButton* cancelButton = nullptr;
|
|
QLabel* speedLabel = nullptr;
|
|
QLabel* statusLabel = nullptr;
|
|
QLabel* labelPath = nullptr;
|
|
QLineEdit* lineeditPath = nullptr;
|
|
|
|
QThread* workerThread;
|
|
DownloaderWorker* worker;
|
|
|
|
public:
|
|
explicit DialogDownloader(const QString &url, const QString &otp, const QString &savedPath, QWidget *parent = nullptr);
|
|
~DialogDownloader() override;
|
|
};
|
|
|
|
#endif
|