archivedownloader.h 472 B

123456789101112131415161718192021222324252627
  1. #ifndef ARCHIVEDOWNLOADER_H
  2. #define ARCHIVEDOWNLOADER_H
  3. #include <QObject>
  4. #include <QProcess>
  5. #include <QTemporaryDir>
  6. class ArchiveDownloader : public QObject
  7. {
  8. Q_OBJECT
  9. QString url;
  10. QProcess* p;
  11. QTemporaryDir* t;
  12. char phase=0;
  13. QString target;
  14. public:
  15. explicit ArchiveDownloader(QString url, QString target, QObject *parent = nullptr);
  16. signals:
  17. void done();
  18. public slots:
  19. void processFinished();
  20. };
  21. #endif // ARCHIVEDOWNLOADER_H