Add and use UPDATE_STEP::UPDATE_FINALIZE in debug output.
This commit is contained in:
parent
f9ce6a6c1b
commit
4dba36a420
18
worker.h
18
worker.h
@ -93,6 +93,7 @@
|
|||||||
#define _SAVE_LOGS_FAILURE (93)
|
#define _SAVE_LOGS_FAILURE (93)
|
||||||
#define _SAVE_LOGS_SUCCESS (94)
|
#define _SAVE_LOGS_SUCCESS (94)
|
||||||
#define _SEND_LAST_VERSION (95)
|
#define _SEND_LAST_VERSION (95)
|
||||||
|
#define _UPDATE_FINALIZE (95)
|
||||||
#define _UPDATE_SUCCEEDED (96)
|
#define _UPDATE_SUCCEEDED (96)
|
||||||
#define _UPDATE_FAILED (97)
|
#define _UPDATE_FAILED (97)
|
||||||
#define _UPDATE_ACTIVATED (98)
|
#define _UPDATE_ACTIVATED (98)
|
||||||
@ -315,6 +316,7 @@ public:
|
|||||||
SAVE_LOGS_SUCCESS = _SAVE_LOGS_SUCCESS,
|
SAVE_LOGS_SUCCESS = _SAVE_LOGS_SUCCESS,
|
||||||
SAVE_LOGS_FAILURE = _SAVE_LOGS_FAILURE,
|
SAVE_LOGS_FAILURE = _SAVE_LOGS_FAILURE,
|
||||||
SEND_LAST_VERSION = _SEND_LAST_VERSION,
|
SEND_LAST_VERSION = _SEND_LAST_VERSION,
|
||||||
|
UPDATE_FINALIZE = _UPDATE_FINALIZE,
|
||||||
UPDATE_SUCCEEDED = _UPDATE_SUCCEEDED,
|
UPDATE_SUCCEEDED = _UPDATE_SUCCEEDED,
|
||||||
UPDATE_ACTIVATED = _UPDATE_ACTIVATED,
|
UPDATE_ACTIVATED = _UPDATE_ACTIVATED,
|
||||||
UPDATE_NOT_NECESSARY = _UPDATE_NOT_NECESSARY,
|
UPDATE_NOT_NECESSARY = _UPDATE_NOT_NECESSARY,
|
||||||
@ -1091,10 +1093,10 @@ private:
|
|||||||
QString const &ismasUpdateNews =
|
QString const &ismasUpdateNews =
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
QString("#M=APISM#C=CMD_EVENT#J=") +
|
||||||
ismasClient.updateNewsToIsmas(
|
ismasClient.updateNewsToIsmas(
|
||||||
"U0001", // WAIT-button set to 100%
|
_ISMAS_DONE, // WAIT-button set to 100%
|
||||||
ismasClient.getProgressInPercent(),
|
ismasClient.getProgressInPercent(),
|
||||||
IsmasClient::RESULT_CODE::SUCCESS,
|
IsmasClient::RESULT_CODE::SUCCESS,
|
||||||
smap[step],
|
smap[UPDATE_STEP::UPDATE_FINALIZE],
|
||||||
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
||||||
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
||||||
ismasClient.sendRequestReceiveResponse(
|
ismasClient.sendRequestReceiveResponse(
|
||||||
@ -1105,10 +1107,10 @@ private:
|
|||||||
QString const &ismasUpdateNews =
|
QString const &ismasUpdateNews =
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
QString("#M=APISM#C=CMD_EVENT#J=") +
|
||||||
ismasClient.updateNewsToIsmas(
|
ismasClient.updateNewsToIsmas(
|
||||||
"U0002", // reset WAIT-button to "" (empty string)
|
_ISMAS_SET_WAIT_OK,
|
||||||
ismasClient.getProgressInPercent(),
|
ismasClient.getProgressInPercent(),
|
||||||
IsmasClient::RESULT_CODE::SUCCESS,
|
IsmasClient::RESULT_CODE::SUCCESS,
|
||||||
smap[step],
|
smap[UPDATE_STEP::UPDATE_FINALIZE],
|
||||||
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
||||||
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
||||||
ismasClient.sendRequestReceiveResponse(
|
ismasClient.sendRequestReceiveResponse(
|
||||||
@ -1119,10 +1121,10 @@ private:
|
|||||||
QString const &ismasUpdateNews =
|
QString const &ismasUpdateNews =
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
QString("#M=APISM#C=CMD_EVENT#J=") +
|
||||||
ismasClient.updateNewsToIsmas(
|
ismasClient.updateNewsToIsmas(
|
||||||
"U0002", // reset WAIT-button to "" (empty string)
|
_ISMAS_SET_WAIT_OK,
|
||||||
ismasClient.getProgressInPercent(),
|
ismasClient.getProgressInPercent(),
|
||||||
IsmasClient::RESULT_CODE::SUCCESS,
|
IsmasClient::RESULT_CODE::SUCCESS,
|
||||||
smap[step],
|
smap[UPDATE_STEP::UPDATE_FINALIZE],
|
||||||
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
||||||
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
||||||
ismasClient.sendRequestReceiveResponse(
|
ismasClient.sendRequestReceiveResponse(
|
||||||
@ -1133,10 +1135,10 @@ private:
|
|||||||
QString const &ismasUpdateNews =
|
QString const &ismasUpdateNews =
|
||||||
QString("#M=APISM#C=CMD_EVENT#J=") +
|
QString("#M=APISM#C=CMD_EVENT#J=") +
|
||||||
ismasClient.updateNewsToIsmas(
|
ismasClient.updateNewsToIsmas(
|
||||||
"U0003",
|
_ISMAS_FAILURE,
|
||||||
ismasClient.getProgressInPercent(),
|
ismasClient.getProgressInPercent(),
|
||||||
IsmasClient::RESULT_CODE::INSTALL_ERROR,
|
IsmasClient::RESULT_CODE::INSTALL_ERROR,
|
||||||
smap[step],
|
smap[UPDATE_STEP::UPDATE_FINALIZE],
|
||||||
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
instance->m_ismasMsg.join(' ').toStdString().c_str(),
|
||||||
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
instance->m_versionInfo.size() >= 1 ? instance->m_versionInfo.at(0).toUtf8().constData() : "N/A");
|
||||||
ismasClient.sendRequestReceiveResponse(
|
ismasClient.sendRequestReceiveResponse(
|
||||||
|
Loading…
Reference in New Issue
Block a user