#ifndef DIALOGDOWNLOADER_H #define DIALOGDOWNLOADER_H #include #include #include #include #include #include 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