mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Changed: Different methods to process operations types
This commit is contained in:
parent
e7dd9a1ed6
commit
785ce84637
3 changed files with 7 additions and 12 deletions
|
@ -146,7 +146,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (!dialog.exec()) return 1;
|
if (!dialog.exec()) return 1;
|
||||||
|
|
||||||
step = config.getNextStep();
|
step = config.getInstallNextStep();
|
||||||
}
|
}
|
||||||
else if (step == ShowInstallWizard)
|
else if (step == ShowInstallWizard)
|
||||||
{
|
{
|
||||||
|
@ -154,7 +154,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (!dialog.exec()) return 1;
|
if (!dialog.exec()) return 1;
|
||||||
|
|
||||||
step = config.getNextStep();
|
step = config.getInstallNextStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (step != Done)
|
if (step != Done)
|
||||||
|
@ -164,7 +164,7 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
if (!dialog.exec()) return 1;
|
if (!dialog.exec()) return 1;
|
||||||
|
|
||||||
step = config.getNextStep();
|
step = config.getInstallNextStep();
|
||||||
}
|
}
|
||||||
|
|
||||||
CMainWindow mainWindow;
|
CMainWindow mainWindow;
|
||||||
|
|
|
@ -91,17 +91,14 @@ void COperationDialog::processNextStep()
|
||||||
switch (m_operation)
|
switch (m_operation)
|
||||||
{
|
{
|
||||||
case OperationMigrate:
|
case OperationMigrate:
|
||||||
processMigrateNextStep();
|
case OperationInstall:
|
||||||
|
processInstallNextStep();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OperationUpdateProfiles:
|
case OperationUpdateProfiles:
|
||||||
processUpdateProfilesNextStep();
|
processUpdateProfilesNextStep();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case OperationInstall:
|
|
||||||
processInstallNextStep();
|
|
||||||
break;
|
|
||||||
|
|
||||||
case OperationUninstall:
|
case OperationUninstall:
|
||||||
processUninstallNextStep();
|
processUninstallNextStep();
|
||||||
break;
|
break;
|
||||||
|
@ -111,7 +108,7 @@ void COperationDialog::processNextStep()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void COperationDialog::processMigrateNextStep()
|
void COperationDialog::processInstallNextStep()
|
||||||
{
|
{
|
||||||
CConfigFile *config = CConfigFile::getInstance();
|
CConfigFile *config = CConfigFile::getInstance();
|
||||||
|
|
||||||
|
@ -122,7 +119,7 @@ void COperationDialog::processMigrateNextStep()
|
||||||
const CProfile &configuration = config->getProfile();
|
const CProfile &configuration = config->getProfile();
|
||||||
|
|
||||||
// long operations are done in a thread
|
// long operations are done in a thread
|
||||||
CConfigFile::InstallationStep step = config->getNextStep();
|
OperationStep step = config->getInstallNextStep();
|
||||||
|
|
||||||
switch(step)
|
switch(step)
|
||||||
{
|
{
|
||||||
|
|
|
@ -83,8 +83,6 @@ protected:
|
||||||
void closeEvent(QCloseEvent *e);
|
void closeEvent(QCloseEvent *e);
|
||||||
|
|
||||||
void processNextStep();
|
void processNextStep();
|
||||||
void processMigrateNextStep();
|
|
||||||
void processUpdateProfilesNextStep();
|
|
||||||
void processInstallNextStep();
|
void processInstallNextStep();
|
||||||
void processUninstallNextStep();
|
void processUninstallNextStep();
|
||||||
void processUpdateProfilesNextStep();
|
void processUpdateProfilesNextStep();
|
||||||
|
|
Loading…
Reference in a new issue