28 lines
442 B
C++
28 lines
442 B
C++
#ifndef DOWNLOADFILE_H
|
|
#define DOWNLOADFILE_H
|
|
|
|
#include <QObject>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <cstdlib>
|
|
|
|
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
|