Minor: add doxygen comments

This commit is contained in:
2025-09-18 13:54:30 +02:00
parent b2ecd1b628
commit e4be41e670
2 changed files with 57 additions and 8 deletions

View File

@@ -4,12 +4,12 @@
#include <limits>
#include <QDebug>
unsigned WorkList::nextExecIndex() const {
if (m_workList.size() > 0 && m_workListIndex < (m_workList.size() - 1)) {
return m_workListIndex + 1;
}
return std::numeric_limits<unsigned>::max();
}
//unsigned WorkList::nextExecIndex() const {
// if (m_workList.size() > 0 && m_workListIndex < (m_workList.size() - 1)) {
// return m_workListIndex + 1;
// }
// return std::numeric_limits<unsigned>::max();
//}
bool WorkList::nextExec() const {
return m_workListIndex < m_workList.size();
@@ -17,12 +17,17 @@ bool WorkList::nextExec() const {
bool WorkList::exec(bool last) {
if (last == false) {
// if not the last entry in the worklist
if (nextExec()) {
// and there is a next entry (a binary) to execute, start the
// binary if the specified working directory.
m_workList[m_workListIndex]->start("/opt/app/tools/atbupdate");
// update to point to next entry
m_workListIndex += 1;
return true;
}
} else {
// start the last entry in the worklist
m_workList.back()->start("/opt/app/tools/atbupdate");
m_workListIndex = std::numeric_limits<unsigned>::max();
return true;