|
|
@ -84,7 +84,33 @@ COperationDialog::~COperationDialog()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::setOperation(Operation operation)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
m_operation = operation;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::processNextStep()
|
|
|
|
void COperationDialog::processNextStep()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
switch (m_operation)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
case OperationMigrate:
|
|
|
|
|
|
|
|
processMigrateNextStep();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case OperationInstall:
|
|
|
|
|
|
|
|
processInstallNextStep();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case OperationUninstall:
|
|
|
|
|
|
|
|
processUninstallNextStep();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::processMigrateNextStep()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
|
|
|
|
|
|
|
@ -132,16 +158,20 @@ void COperationDialog::processNextStep()
|
|
|
|
QtConcurrent::run(this, &COperationDialog::copyProfileFiles);
|
|
|
|
QtConcurrent::run(this, &COperationDialog::copyProfileFiles);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
case CConfigFile::CleanFiles:
|
|
|
|
|
|
|
|
QtConcurrent::run(this, &COperationDialog::cleanFiles);
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case CConfigFile::ExtractBnpClient:
|
|
|
|
case CConfigFile::ExtractBnpClient:
|
|
|
|
QtConcurrent::run(this, &COperationDialog::extractBnpClient);
|
|
|
|
QtConcurrent::run(this, &COperationDialog::extractBnpClient);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case CConfigFile::CopyInstaller:
|
|
|
|
case CConfigFile::CopyInstaller:
|
|
|
|
QtConcurrent::run(this, &COperationDialog::copyIntaller);
|
|
|
|
QtConcurrent::run(this, &COperationDialog::copyInstaller);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case CConfigFile::CleanFiles:
|
|
|
|
case CConfigFile::UninstallOldClient:
|
|
|
|
QtConcurrent::run(this, &COperationDialog::cleanFiles);
|
|
|
|
uninstallOldClient();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
|
|
case CConfigFile::CreateProfile:
|
|
|
|
case CConfigFile::CreateProfile:
|
|
|
@ -166,6 +196,14 @@ void COperationDialog::processNextStep()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::processInstallNextStep()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::processUninstallNextStep()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::showEvent(QShowEvent *e)
|
|
|
|
void COperationDialog::showEvent(QShowEvent *e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if defined(Q_OS_WIN32) && defined(QT_WINEXTRAS_LIB)
|
|
|
|
#if defined(Q_OS_WIN32) && defined(QT_WINEXTRAS_LIB)
|
|
|
@ -415,7 +453,7 @@ void COperationDialog::extractBnpClient()
|
|
|
|
emit done();
|
|
|
|
emit done();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void COperationDialog::copyIntaller()
|
|
|
|
void COperationDialog::copyInstaller()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
CConfigFile *config = CConfigFile::getInstance();
|
|
|
|
|
|
|
|
|
|
|
|