Commit Graph

21 Commits

Author SHA1 Message Date
9e5c379e8a Make download api in include/interfaces.h available for Qt using
signals/slots.
2023-12-08 12:51:16 +01:00
6b9e795206 Reordered and extended interface-api for download-thread and reporting-thread:
virtual bool dcDownloadRequest(QString const &fileToDownload) const;
virtual bool dcDownloadRequested() const;
virtual bool dcDownloadResetRequest() const;
virtual bool dcDownloadRequestAck() const;
virtual bool dcDownloadRunning() const;
virtual bool dcDownloadFinished();

virtual bool dcDownloadReportStart() const;
virtual bool dcDownloadReportRunning() const;

virtual bool dcDownloadReportFinished();
virtual bool dcDownloadThreadStart();
virtual bool dcDownloadThreadRunning() const;
virtual void dcDownloadThreadFinalize(DownloadThread *);

virtual bool dcDownloadThreadFinished() const;
virtual bool dcDownloadReportThreadStart();
virtual bool dcDownloadReportThreadRunning() const;
virtual void dcDownloadReportThreadFinalize();
virtual void dcDownloadReportThreadQuit();

virtual bool dcDownloadReportThreadFinished() const;
virtual QString dcDownloadFileName() const;
virtual bool dcDownloadSetRequested(bool requested);
virtual bool dcDownloadSetRunning(bool running);
virtual bool dcDownloadSetFinished(bool finished);
virtual void dcDownloadSetTotalBlockNumber(uint16_t totalBlockNumber);
virtual void dcDownloadSetCurrentBlockNumber(uint16_t currentBlockNumber);
virtual bool dcDownloadGetRequested() const;
virtual bool dcDownloadGetRunning() const;
virtual bool dcDownloadGetFinished() const;
virtual uint16_t dcDownloadGetTotalBlockNumber() const;
virtual uint16_t dcDownloadGetCurrentBlockNumber() const;
2023-12-08 12:44:53 +01:00
2025a75d56 Save as changing to master. 2023-12-06 14:53:52 +01:00
0344150950 dd reporting thread signals. 2023-12-03 19:54:21 +01:00
8e287e3163 Add reporting thread and download thread. 2023-12-03 19:52:48 +01:00
ece75887e2 Add helpers:
virtual void dcDownloadStart() {}^M
virtual bool dcDownloadRequested() const { return false; }^M
virtual void dcDownloadResetRequest() {}^M
virtual QString dcDownloadFileName() const { return ""; }^M
virtual void dcDownloadReportStart() {}^M
2023-12-02 09:47:26 +01:00
cee4caf77d Add helpers:
virtual void dcDownloadStart() {}^M
virtual bool dcDownloadRequested() const { return false; }^M
virtual void dcDownloadResetRequest() {}^M
virtual QString dcDownloadFileName() const { return ""; }^M
virtual void dcDownloadReportStart() {}^M
2023-12-02 09:46:58 +01:00
23619543b2 Minor: only hwinf as parameter needed 2023-12-02 09:44:32 +01:00
be16fe4981 Minor: only hwinf as parameter needed 2023-12-02 09:44:18 +01:00
cf621c02bd Pass hwinf into constructor. Add pointer to download thread. 2023-12-02 09:42:50 +01:00
ee26eef50f Save development files. 2023-12-01 14:28:07 +01:00
78700e7bea
Fix: return value prn_getPrintResult() 2023-11-30 14:27:17 +01:00
Thomas
4eabff268e Added bna-function declarations 2023-11-14 08:37:39 +01:00
Thomas
226f6d91c2 Added some variables for bna 2023-11-14 08:36:44 +01:00
Thomas
447d1ceb54 Removed obsolete comments 2023-11-14 08:35:53 +01:00
Thomas
79868787cf Filled struct T_bna and added new version number. 2023-11-14 08:34:32 +01:00
fb6a0b086f Fix: signals are not allowed to be (pure) virtual functions. 2023-11-09 10:19:17 +01:00
17f8cac383 Fix: Signals are not allowed to be pure virtual functions. 2023-11-09 10:18:15 +01:00
ffa470f49f Provide default implementations for all function in interfaces.h. 2023-11-09 10:17:46 +01:00
a0c9f7c4e7 Provide defualt implementations for all functions in interfaces.h. 2023-11-09 10:16:35 +01:00
a9041d417d Start repository 2023-11-08 13:02:26 +01:00