This commit is contained in:
2022-08-11 12:27:25 +08:00
parent 00176f9919
commit 8f6bee1346
19 changed files with 636 additions and 75 deletions

View File

@@ -11,16 +11,23 @@
class DownloadThread : public QThread // 继承 QThread
{
public:
DownloadThread(QProgressDialog *dialog, QString url, QString save);
DownloadThread(QProgressDialog *dialog, QString url, QString save, QString mouse, bool NotDownload);
void SettingVirtualMachine(QString savePath);
QProgressDialog *dialog;
QString fileUrl;
QString savePath;
QString vmName;
QString setMouse;
bool notDownload;
QString notDownloadPath;
protected:
void run(); // 核心
signals:
void ChangeValue();
// 防止非主线程刷新控件导致程序退出
void MessageBoxInfo(QString info);
void MessageBoxError(QString info);
void MessageBoxOpenVM(QString vmName);
};
#endif // DOWNLOADTHREAD_H