use ca-slave-plugin to download jsonfiles to DC

This commit is contained in:
Gerhard Hoffmann 2025-08-20 10:03:11 +02:00
parent 9ed8603dfb
commit 5b5a4504fa
2 changed files with 9 additions and 5 deletions

View File

@ -144,7 +144,7 @@ int main(int argc, char **argv) {
} }
} }
// qCritical() << "JSON FILES TO UPDATE" << filesToUpdate; qCritical() << __LINE__ << "JSON FILES TO UPDATE" << filesToUpdate;
Update update(customerRepo, Update update(customerRepo,
QString::number(customerNr), QString::number(customerNr),
@ -153,8 +153,10 @@ int main(int argc, char **argv) {
plugInName, plugInName,
workingDir); workingDir);
update.doUpdate(); if (!filesToUpdate.empty()) {
// update.doUpdate(filesToUpdate, mountPath.has_value()); update.doUpdate(filesToUpdate, mountPath.has_value());
}
// update.checkJsonVersions(); // update.checkJsonVersions();
//update.checkJsonVersions(filesToUpdate); //update.checkJsonVersions(filesToUpdate);

View File

@ -107,7 +107,7 @@ Update::Update(QString customerRepository,
char const *serialInterface, char const *serialInterface,
char const *baudrate) char const *baudrate)
: QObject(parent) : QObject(parent)
// , m_hw(loadDCPlugin(QDir(plugInDir), pluginName)) , m_hw(loadDCPlugin(QDir(plugInDir), pluginName))
, m_serialInterface(serialInterface) , m_serialInterface(serialInterface)
, m_baudrate(baudrate) , m_baudrate(baudrate)
, m_customerRepository(customerRepository) , m_customerRepository(customerRepository)
@ -145,7 +145,8 @@ Update::~Update() {
// unloadDCPlugin(); // unloadDCPlugin();
} }
bool Update::doUpdate() { #if 0
bool Update::doUpdate() { // test function
int numberOfFiles = 3; int numberOfFiles = 3;
@ -178,6 +179,7 @@ bool Update::doUpdate() {
return true; return true;
} }
#endif
bool Update::doUpdate(QStringList const &filesToWorkOn, bool usbStickDetected) { bool Update::doUpdate(QStringList const &filesToWorkOn, bool usbStickDetected) {