MCPcopy Create free account
hub / github.com/altairwei/WizNotePlus / get

Method get

src/sync/WizJSONServerBase.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22bool WizJSONServerBase::get(const QString& strUrl, QString& strResult)
23{
24 QNetworkReply* reply = m_net->get(QNetworkRequest(strUrl));
25 WizAutoTimeOutEventLoop loop(reply);
26 loop.exec();
27 //
28 if (loop.error() != QNetworkReply::NoError)
29 {
30 qDebug() << "[JSONRequest]Send get request failed.";
31 return false;
32 }
33
34 strResult = QString::fromUtf8(loop.result().constData());
35 return !strResult.isEmpty();
36}
37
38bool WizJSONServerBase::deleteResource(const QString& strUrl)
39{

Callers 4

downloadMethod · 0.45
queryUserAvatarMethod · 0.45
_requestUrlFunction · 0.45
downloadFromUrlFunction · 0.45

Calls 4

errorMethod · 0.80
resultMethod · 0.80
isEmptyMethod · 0.80
execMethod · 0.45

Tested by

no test coverage detected