Added planned methods updateConf() and updateCashConf(). Changed interface of updateDC() and updatePrinterTemplate()

This commit is contained in:
Gerhard Hoffmann 2023-06-21 16:19:45 +02:00
parent e79d6c6fef
commit 9c343f3eeb

View File

@ -35,6 +35,8 @@ class Update : public QObject {
bool updateBinary(char const *fileToSendToDC); bool updateBinary(char const *fileToSendToDC);
bool updatePrinterConf(int templateIdx, QString fileToSendToDC); bool updatePrinterConf(int templateIdx, QString fileToSendToDC);
bool updateConf(QString fileToSendToDC);
bool updateCashConf(QString fileToSendToDC);
bool finishUpdate(bool finish); bool finishUpdate(bool finish);
QStringList getLinesToWorkOn(); QStringList getLinesToWorkOn();
QStringList split(QString line, QChar sep = ','); QStringList split(QString line, QChar sep = ',');
@ -71,8 +73,8 @@ private:
bool resetDeviceController() const; bool resetDeviceController() const;
QByteArray loadBinaryDCFile(QString filename) const; QByteArray loadBinaryDCFile(QString filename) const;
bool downloadBinaryToDC(QString const &bFile) const; bool downloadBinaryToDC(QString const &bFile) const;
bool updateDC(QString bFile, QString br, QString serial) const; bool updateDC(QString bFile) const;
bool updatePrinterTemplate(enum FileTypeJson type, int templateIdx, bool updatePrinterTemplate(enum FileTypeJson type, int templateIdx,
QString fname, QString br, QString serial) const; QString fname) const;
}; };
#endif // UPDATE_H_INCLUDED #endif // UPDATE_H_INCLUDED