mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
Ref T149, use URL in DB writer
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b9760b4c60
commit
17d2243e3f
@@ -87,7 +87,8 @@ namespace BlackCore
|
||||
if (compress) { url.setQuery(CDatabaseUtils::getCompressedQuery()); }
|
||||
QNetworkRequest request(url);
|
||||
CNetworkUtils::ignoreSslVerification(request);
|
||||
m_pendingReply = sApp->postToNetwork(request, multiPart, { this, &CDatabaseWriter::ps_postModelsResponse});
|
||||
int logId = m_writeLog.addPendingUrl(url);
|
||||
m_pendingReply = sApp->postToNetwork(request, logId, multiPart, { this, &CDatabaseWriter::ps_postModelsResponse});
|
||||
m_replyPendingSince = QDateTime::currentMSecsSinceEpoch();
|
||||
return msgs;
|
||||
}
|
||||
@@ -98,6 +99,12 @@ namespace BlackCore
|
||||
this->killPendingReply();
|
||||
}
|
||||
|
||||
const QString &CDatabaseWriter::getName()
|
||||
{
|
||||
static const QString n("Database writer");
|
||||
return n;
|
||||
}
|
||||
|
||||
void CDatabaseWriter::ps_postModelsResponse(QNetworkReply *nwReplyPtr)
|
||||
{
|
||||
static const CLogCategoryList cats(CLogCategoryList(this).join({ CLogCategory::swiftDbWebservice()}));
|
||||
|
||||
Reference in New Issue
Block a user