Added lastCommit to tariff-struct. Added jsonParseFailed().
This commit is contained in:
parent
a932ed5471
commit
853787cd4b
@ -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());
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user