added 'suspend' button

This commit is contained in:
2024-10-18 22:39:09 +02:00
parent fe3e68d205
commit 029be91dc8
3 changed files with 90 additions and 25 deletions
+22 -17
View File
@@ -56,16 +56,17 @@ class Connexion
int bandwidthLimitUnit;
int contimeout = 20;
QString server;
QString service;
QString path;
QString savePath;
QString user;
QString password;
QProcess * process = nullptr;
int ipversion = 4;
uint port = 873;
bool quit = false;
void clear();
QString service;
QString path;
QString savePath;
QString user;
QString password;
QProcess * process = nullptr;
int ipversion = 4;
uint port = 873;
bool quit = false;
void clear();
bool paused = false;
};
class Downloading
@@ -75,13 +76,15 @@ class Downloading
QString service;
QString path;
QString savePath;
QString user;
QString password;
int ipversion = 4;
int port = 873;
QProcess * process = nullptr;
bool quit = false;
void clear();
QString user;
QString password;
int ipversion = 4;
int port = 873;
QProcess * process = nullptr;
bool quit = false;
bool paused = false;
void clear();
};
class About
@@ -223,6 +226,8 @@ class MainWindow : public QMainWindow
void on_treeWidget_doubleClicked(const QModelIndex &index);
void on_actionPause_downloads_triggered();
signals:
void stopDownloading(QProcess *);
void progressSignal(int);