mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-24 07:55:35 +08:00
refs #602, threadsafe access to central QNetworkAccessManager post/get
* threadsafe (used from workers) * added post methods * renamed functions to better refelct post/get * use central QNetworkAccessManager in readers, removed local readers
This commit is contained in:
committed by
Mathew Sutcliffe
parent
65af7d87da
commit
8a7eba74d9
@@ -147,7 +147,7 @@ namespace BlackCore
|
||||
return;
|
||||
}
|
||||
if (m_shutdown) { return; }
|
||||
sApp->requestNetworkResource(url.toNetworkRequest(), { this, &CSetupReader::ps_parseSetupFile });
|
||||
sApp->getFromNetwork(url.toNetworkRequest(), { this, &CSetupReader::ps_parseSetupFile });
|
||||
}
|
||||
|
||||
void CSetupReader::ps_readUpdateInfo()
|
||||
@@ -160,7 +160,7 @@ namespace BlackCore
|
||||
return;
|
||||
}
|
||||
if (m_shutdown) { return; }
|
||||
sApp->requestNetworkResource(url.toNetworkRequest(), { this, &CSetupReader::ps_parseUpdateInfoFile});
|
||||
sApp->getFromNetwork(url.toNetworkRequest(), { this, &CSetupReader::ps_parseUpdateInfoFile});
|
||||
}
|
||||
|
||||
void CSetupReader::ps_setupSyncronized(bool success)
|
||||
|
||||
Reference in New Issue
Block a user