diff --git a/worker.cpp b/worker.cpp index 64156dc..cbbfa56 100644 --- a/worker.cpp +++ b/worker.cpp @@ -1063,6 +1063,17 @@ QString Worker::getAPISMYoctoInstallationStatus() { return "N/A"; } +QString Worker::getDCVersionPreparedForDownload(QString const &filename) { + if (QFile::exists(filename)) { // + QString const cmd = QString("strings %1 | grep -e DC2[Cc]\\. | head -n1").arg(filename); + Command c("bash"); + if (c.execute("/tmp", QStringList() << "-c" << cmd)) { + return c.getCommandResult(); // DC2c.04.42 14.09.2023 + } + } + return "N/A"; +} + QString Worker::getATBQTVersion() const { QString const cmd = QString("echo -n $(/opt/app/ATBAPP/ATBQT -v | head -n 2 | cut -d':' -f2)");