#ifndef DOWNLOADFILE_H #define DOWNLOADFILE_H #include #include "ui_mainwindow.h" class MainWindow; class downloadFile : public QObject { Q_OBJECT public: downloadFile(); void download(MainWindow *parent = nullptr); bool canceled; signals: void progressSignal(int); void finishedSignal(bool = true); public slots: void cancelled(int pid); }; #endif // DOWNLOADFILE_H