checkin for saving current state
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "ui_mainwindow.h"
|
||||
#include "worker.h"
|
||||
#include "utils.h"
|
||||
#include "utils_internal.h"
|
||||
#include "progress_event.h"
|
||||
#include "update_dc_event.h"
|
||||
#include "process/update_command.h"
|
||||
@@ -158,14 +159,27 @@ void MainWindow::onShowISMASConnectivity(QString status) {
|
||||
tmp += " ";
|
||||
}
|
||||
|
||||
bool const custRepoExists = internal::customerRepoExists();
|
||||
|
||||
if (status.contains(UpdateCommand::ISMAS_CONNECTED, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Green'>connected</font><br />").arg(tmp);
|
||||
if (custRepoExists) {
|
||||
s += QString("%1 <font color='Green'>connected</font><br />").arg(tmp);
|
||||
} else {
|
||||
s += QString("%1 <font color='Green'>connected (initial configuration)</font><br />").arg(tmp);
|
||||
}
|
||||
} else
|
||||
if (status.contains(UpdateCommand::NO_CUSTOMER_REPOSITORY, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Blue'>NOT CONNECTED</font><br />").arg(tmp);
|
||||
} else
|
||||
if (status.contains(UpdateCommand::ISMAS_CONNECTION_IN_PROGRESS, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Green'>connecting</font><br />").arg(tmp);
|
||||
} else
|
||||
if (status.contains(UpdateCommand::ISMAS_NOT_CONNECTED, Qt::CaseInsensitive)) {
|
||||
s += QString( "%1 <font color='Red'>NOT CONNECTED</font><br />").arg(tmp);
|
||||
if (custRepoExists) {
|
||||
s += QString( "%1 <font color='Red'>NOT CONNECTED. STOP</font><br />").arg(tmp);
|
||||
} else {
|
||||
s += QString( "%1 <font color='Red'>not connected. (initial configuration)</font><br />").arg(tmp);
|
||||
}
|
||||
} else {
|
||||
s += QString( "%1 <font color='Red'>UNKNOWN STATUS</font><br />").arg(tmp);
|
||||
}
|
||||
@@ -291,16 +305,29 @@ void MainWindow::onShowUpdateRequest(QString status) {
|
||||
tmp += " ";
|
||||
}
|
||||
|
||||
bool const custRepoExists = internal::customerRepoExists();
|
||||
|
||||
if (status.contains(UpdateCommand::UPDATE_NOT_REQUESTED, Qt::CaseInsensitive)) {
|
||||
s += QString( "%1 <font color='Red'>NOT REQUESTED</font><br />").arg(tmp);
|
||||
if (custRepoExists) {
|
||||
s += QString( "%1 <font color='Red'>NOT REQUESTED. STOP.</font><br />").arg(tmp);
|
||||
} else {
|
||||
s += QString("%1 <font color='Blue'>not requested (initial configuration)</font><br />").arg(tmp);
|
||||
}
|
||||
} else
|
||||
if (status.contains(UpdateCommand::UPDATE_REQUESTED, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Green'>requested</font><br />").arg(tmp);
|
||||
if (custRepoExists) {
|
||||
s += QString("%1 <font color='Green'>requested</font><br />").arg(tmp);
|
||||
} else {
|
||||
s += QString("%1 <font color='Blue'>requested (initial configuration)</font><br />").arg(tmp);
|
||||
}
|
||||
} else
|
||||
if (status.contains(UpdateCommand::UPDATE_NOT_NECESSARY, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Green'>not necessary</font><br />").arg(tmp);
|
||||
} else
|
||||
if (status.contains(UpdateCommand::NO_CUSTOMER_REPOSITORY, Qt::CaseInsensitive)) {
|
||||
s += QString("%1 <font color='Blue'>UNKNOWN (ISMAS not connected)</font><br />").arg(tmp);
|
||||
} else {
|
||||
s += QString( "%1 <font color='Red'>UNKNOWN STATUS</font><br />").arg(tmp);
|
||||
s += QString( "%1 <font color='Red'>UNKNOWN</font><br />").arg(tmp);
|
||||
}
|
||||
|
||||
ui->stepLabel->setText(s);
|
||||
|
Reference in New Issue
Block a user