2023-01-07 12:44:45 +01:00
|
|
|
#ifndef DOWNLOADFILE_H
|
|
|
|
#define DOWNLOADFILE_H
|
|
|
|
|
|
|
|
#include <QObject>
|
2023-01-22 14:33:23 +01:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <cstdlib>
|
2023-01-07 12:44:45 +01:00
|
|
|
|
|
|
|
class MainWindow;
|
|
|
|
|
|
|
|
class downloadFile : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
downloadFile();
|
2023-01-12 09:23:45 +01:00
|
|
|
void download(MainWindow *parent = nullptr);
|
2023-01-07 12:44:45 +01:00
|
|
|
bool canceled;
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void progressSignal(int);
|
2023-01-12 09:23:45 +01:00
|
|
|
void finishedSignal(bool = true);
|
2023-01-07 12:44:45 +01:00
|
|
|
|
|
|
|
public slots:
|
2023-01-12 09:23:45 +01:00
|
|
|
void cancelled(int pid);
|
2023-01-07 12:44:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // DOWNLOADFILE_H
|