use ca-slave-plugin to download jsonfiles to DC
This commit is contained in:
		@@ -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,
 | 
			
		||||
                  QString::number(customerNr),
 | 
			
		||||
@@ -153,8 +153,10 @@ int main(int argc, char **argv) {
 | 
			
		||||
                  plugInName,
 | 
			
		||||
                  workingDir);
 | 
			
		||||
 | 
			
		||||
    update.doUpdate();
 | 
			
		||||
    // update.doUpdate(filesToUpdate, mountPath.has_value());
 | 
			
		||||
    if (!filesToUpdate.empty()) {
 | 
			
		||||
        update.doUpdate(filesToUpdate, mountPath.has_value());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // update.checkJsonVersions();
 | 
			
		||||
    //update.checkJsonVersions(filesToUpdate);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -107,7 +107,7 @@ Update::Update(QString customerRepository,
 | 
			
		||||
               char const *serialInterface,
 | 
			
		||||
               char const *baudrate)
 | 
			
		||||
    : QObject(parent)
 | 
			
		||||
    // , m_hw(loadDCPlugin(QDir(plugInDir), pluginName))
 | 
			
		||||
    , m_hw(loadDCPlugin(QDir(plugInDir), pluginName))
 | 
			
		||||
    , m_serialInterface(serialInterface)
 | 
			
		||||
    , m_baudrate(baudrate)
 | 
			
		||||
    , m_customerRepository(customerRepository)
 | 
			
		||||
@@ -145,7 +145,8 @@ Update::~Update() {
 | 
			
		||||
    // unloadDCPlugin();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool Update::doUpdate() {
 | 
			
		||||
#if 0
 | 
			
		||||
bool Update::doUpdate() { // test function
 | 
			
		||||
 | 
			
		||||
    int numberOfFiles = 3;
 | 
			
		||||
 | 
			
		||||
@@ -178,6 +179,7 @@ bool Update::doUpdate() {
 | 
			
		||||
 | 
			
		||||
    return true;
 | 
			
		||||
}
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
bool Update::doUpdate(QStringList const &filesToWorkOn, bool usbStickDetected) {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user