Added lastCommit to tariff-struct. Added jsonParseFailed().

This commit is contained in:
Gerhard Hoffmann 2023-08-11 11:09:51 +02:00
parent a932ed5471
commit 853787cd4b
2 changed files with 15 additions and 3 deletions

View File

@ -753,11 +753,21 @@ QString IsmasClient::sanityCheckFailed(int resultCode, QString reason, QString c
version.toStdString().c_str());
}
QString IsmasClient::updateOfPSAFailed(int resultCode, QString reason, QString const &version) {
QString IsmasClient::jsonParseFailed(int resultCode, QString reason, QString const &version) {
return updateNewsToIsmas("U0003",
m_progressInPercent,
resultCode,
"UPDATE ERROR",
"JSON-PARSE-ERROR",
reason.toStdString().c_str(),
version.toStdString().c_str());
}
QString IsmasClient::updateOfPSAFailed(int resultCode, QString step,
QString reason, QString const &version) {
return updateNewsToIsmas("U0003",
m_progressInPercent,
resultCode,
step.toStdString().c_str(),
reason.toStdString().c_str(),
version.toStdString().c_str());
}

View File

@ -12,6 +12,7 @@ struct PSAInstalled {
int zone;
int size;
QString blob;
QString lastCommit;
QString info;
QString loadTime;
} tariff;
@ -155,8 +156,9 @@ public:
// and update accepted
QString updateOfPSASucceeded(QString const &version = QString()); // update process succeeded
QString updateOfPSAContinues(QString currentStage, QString currentStageInfo, QString const &version = QString());
QString updateOfPSAFailed(int resultCode, QString reason, QString const &version = QString());
QString updateOfPSAFailed(int resultCode, QString step, QString reason, QString const &version = QString());
QString sanityCheckFailed(int resultCode, QString reason, QString const &version = QString());
QString jsonParseFailed(int resultCode, QString reason, QString const &version = QString());
QString updateOfPSASendVersion(PSAInstalled const &psa);