Implement 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
This commit is contained in:
parent
ece75887e2
commit
fd58f41c87
@ -51,7 +51,7 @@ hwapi::hwapi(QWidget *parent) : QObject(parent)
|
|||||||
// {
|
// {
|
||||||
|
|
||||||
#ifdef THIS_IS_CA_MASTER
|
#ifdef THIS_IS_CA_MASTER
|
||||||
myDatif = new T_datif(); // für die CAslave-Lib auskommentieren!
|
myDatif = new T_datif(this); // für die CAslave-Lib auskommentieren!
|
||||||
#else
|
#else
|
||||||
qCritical()<<"hwapi: error CAslave cannot include T_datif";
|
qCritical()<<"hwapi: error CAslave cannot include T_datif";
|
||||||
#endif
|
#endif
|
||||||
@ -4383,7 +4383,7 @@ void hwapi::dcDownloadInit(QString const &dcFileToDownload) {
|
|||||||
|
|
||||||
SharedMem::getData()->m_downLoadDC.m_totalBlocks = 0;
|
SharedMem::getData()->m_downLoadDC.m_totalBlocks = 0;
|
||||||
SharedMem::getData()->m_downLoadDC.m_currentblockNumber = 0;
|
SharedMem::getData()->m_downLoadDC.m_currentblockNumber = 0;
|
||||||
SharedMem::getData()->m_downLoadDC.m_started = false;
|
SharedMem::getData()->m_downLoadDC.m_started = true;
|
||||||
SharedMem::getData()->m_downLoadDC.m_running = false;
|
SharedMem::getData()->m_downLoadDC.m_running = false;
|
||||||
SharedMem::getData()->m_downLoadDC.m_finished = false;
|
SharedMem::getData()->m_downLoadDC.m_finished = false;
|
||||||
}
|
}
|
||||||
@ -4395,6 +4395,18 @@ void hwapi::dcDownloadReportStart() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool hwapi::dcDownloadRequested() const {
|
||||||
|
return SharedMem::getDataConst()->m_downLoadDC.m_started;
|
||||||
|
}
|
||||||
|
|
||||||
|
void hwapi::dcDownloadResetRequest() {
|
||||||
|
SharedMem::getData()->m_downLoadDC.m_started = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
QString hwapi::dcDownloadFileName() const {
|
||||||
|
return SharedMem::getDataConst()->m_downLoadDC.m_filename;
|
||||||
|
}
|
||||||
|
|
||||||
void hwapi::dcDownloadSetTotalBlockNumber(uint16_t totalBlockNumber) {
|
void hwapi::dcDownloadSetTotalBlockNumber(uint16_t totalBlockNumber) {
|
||||||
SharedMem::getData()->m_downLoadDC.m_totalBlocks = totalBlockNumber;
|
SharedMem::getData()->m_downLoadDC.m_totalBlocks = totalBlockNumber;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user