forked from GerhardHoffmann/DCLibraries
Add helers and signals for downloading the device controller.
This commit is contained in:
parent
15671e3a37
commit
fc2abd3e89
@ -80,7 +80,8 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM)
|
|||||||
|
|
||||||
|
|
||||||
class QSharedMemory;
|
class QSharedMemory;
|
||||||
|
class DownloadThread;
|
||||||
|
class ReportingThread;
|
||||||
class hwapi : public QObject,
|
class hwapi : public QObject,
|
||||||
public hwinf
|
public hwinf
|
||||||
{
|
{
|
||||||
@ -92,6 +93,8 @@ private:
|
|||||||
void sub_storeSendingText(QByteArray *buf) const;
|
void sub_storeSendingText(QByteArray *buf) const;
|
||||||
QTimer *hwapi_TimerPayment;
|
QTimer *hwapi_TimerPayment;
|
||||||
QSharedMemory *m_sharedMem;
|
QSharedMemory *m_sharedMem;
|
||||||
|
ReportingThread *m_reportingThread;
|
||||||
|
DownloadThread *m_downloadThread;
|
||||||
//QTimer *hwapi_triggerBL;
|
//QTimer *hwapi_triggerBL;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -1316,10 +1319,47 @@ public:
|
|||||||
// countOfBills: array of up to 16 sums, countOfBills[0]=nr of 5€-bills in stacker
|
// countOfBills: array of up to 16 sums, countOfBills[0]=nr of 5€-bills in stacker
|
||||||
// countOfBills[1] for 10€ and so on
|
// countOfBills[1] for 10€ and so on
|
||||||
|
|
||||||
|
// download device controller
|
||||||
|
bool dcDownloadRequest(QString const &fileToDownload) const override;
|
||||||
|
bool dcDownloadRequested() const override;
|
||||||
|
bool dcDownloadResetRequest() const override;
|
||||||
|
bool dcDownloadRequestAck() const override;
|
||||||
|
bool dcDownloadRunning() const override;
|
||||||
|
bool dcDownloadFinished() override;
|
||||||
|
|
||||||
|
bool dcDownloadReportStart() const override;
|
||||||
|
bool dcDownloadReportRunning() const override;
|
||||||
|
bool dcDownloadReportFinished() override;
|
||||||
|
|
||||||
|
bool dcDownloadThreadStart() override;
|
||||||
|
bool dcDownloadThreadRunning() const override;
|
||||||
|
void dcDownloadThreadFinalize(DownloadThread *) override;
|
||||||
|
bool dcDownloadThreadFinished() const override;
|
||||||
|
bool dcDownloadReportThreadStart() override;
|
||||||
|
bool dcDownloadReportThreadRunning() const override;
|
||||||
|
void dcDownloadReportThreadFinalize() override;
|
||||||
|
void dcDownloadReportThreadQuit() override;
|
||||||
|
bool dcDownloadReportThreadFinished() const override;
|
||||||
|
|
||||||
|
QString dcDownloadFileName() const override;
|
||||||
|
bool dcDownloadSetRequested(bool) override;
|
||||||
|
bool dcDownloadSetRunning(bool) override;
|
||||||
|
bool dcDownloadSetFinished(bool) override;
|
||||||
|
void dcDownloadSetTotalBlockNumber(uint16_t totalBlockNumber) override;
|
||||||
|
void dcDownloadSetCurrentBlockNumber(uint16_t currentBlockNumber) override;
|
||||||
|
bool dcDownloadGetRequested() const override;
|
||||||
|
bool dcDownloadGetRunning() const override;
|
||||||
|
bool dcDownloadGetFinished() const override;
|
||||||
|
uint16_t dcDownloadGetTotalBlockNumber() const override;
|
||||||
|
uint16_t dcDownloadGetCurrentBlockNumber() const override;
|
||||||
|
|
||||||
|
virtual QObject const *getAPI() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
|
void hwapi_reportDCDownloadStatus(QString const&) const;
|
||||||
|
void hwapi_reportDCDownloadSuccess(QString const&) const;
|
||||||
|
void hwapi_reportDCDownloadFailure(QString const&) const;
|
||||||
|
|
||||||
void hwapi_templatePrintFinished_OK(void) const override;
|
void hwapi_templatePrintFinished_OK(void) const override;
|
||||||
void hwapi_templatePrintFinished_Err(void) const override;
|
void hwapi_templatePrintFinished_Err(void) const override;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user