2025-06-16 23:41:35 +08:00
|
|
|
#include "Transform.h"
|
2025-06-18 13:18:31 +08:00
|
|
|
|
2025-06-16 20:06:49 +08:00
|
|
|
#include <QMessageBox>
|
|
|
|
|
|
|
|
|
|
#include "ui_Transform.h"
|
|
|
|
|
|
|
|
|
|
TransForm::TransForm(QWidget* parent) : QDialog(parent), ui(new Ui::TransForm)
|
|
|
|
|
{
|
|
|
|
|
ui->setupUi(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TransForm::~TransForm()
|
|
|
|
|
{
|
|
|
|
|
delete ui;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransForm::SetClientCore(ClientCore* clientCore)
|
|
|
|
|
{
|
|
|
|
|
clientCore_ = clientCore;
|
2025-06-18 13:18:31 +08:00
|
|
|
fileTrans_ = new FileTrans(clientCore_);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransForm::SetTasks(const QVector<TransTask>& tasks)
|
|
|
|
|
{
|
|
|
|
|
tasks_ = tasks;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransForm::startTask()
|
|
|
|
|
{
|
|
|
|
|
for (auto& task : tasks_) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void TransForm::showEvent(QShowEvent* event)
|
|
|
|
|
{
|
|
|
|
|
QDialog::showEvent(event);
|
|
|
|
|
startTask();
|
2025-06-16 20:06:49 +08:00
|
|
|
}
|