rsyncui/downloadfile.h

26 lines
413 B
C
Raw Normal View History

2023-01-07 12:44:45 +01:00
#ifndef DOWNLOADFILE_H
#define DOWNLOADFILE_H
#include <QObject>
2023-01-18 23:12:21 +01:00
//#include "ui_mainwindow.h"
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