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:
		@@ -4404,11 +4404,16 @@ bool hwapi::dcDownloadRequest(QString const &dcFileToDownload) const {
 | 
			
		||||
    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();
 | 
			
		||||
    if (data) {
 | 
			
		||||
        data->m_downLoadDC.m_requested = false;
 | 
			
		||||
        data->m_downLoadDC.m_running = true;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user