forked from GerhardHoffmann/DCLibraries
Removed dcDownloadStart().
dcDownloadRequested(): return if download of dc has been requested. dcDownloadResetRequested(): reset state of m_requested.
This commit is contained in:
parent
631550b55e
commit
1155b83ca9
@ -4404,11 +4404,16 @@ bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) const {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void hwapi::dcDownloadStart() {
|
bool hwapi::dcDownloadRequested() const {
|
||||||
|
SharedMem const *data = SharedMem::getData();
|
||||||
|
// should be false at entry
|
||||||
|
return data ? data->m_downLoadDC.m_requested.load() : false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool hwapi::dcDownloadResetRequest() const {
|
||||||
SharedMem *data = SharedMem::getData();
|
SharedMem *data = SharedMem::getData();
|
||||||
if (data) {
|
if (data) {
|
||||||
data->m_downLoadDC.m_requested = false;
|
data->m_downLoadDC.m_requested = false;
|
||||||
data->m_downLoadDC.m_running = true;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user