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

Function getJsonList

src/sync/WizKMServer.cpp:222–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221template <class TData>
222bool getJsonList(WizKMApiServerBase& server, QString urlPath, int nCountPerPage, __int64 nStartVersion, std::deque<TData>& arrayRet)
223{
224 if (urlPath.indexOf("?") == -1)
225 {
226 urlPath = urlPath + "?version=" + WizInt64ToStr(nStartVersion) + "&count=" + WizIntToStr(nCountPerPage) + "&pageSize=" + WizIntToStr(nCountPerPage);
227 }
228 else
229 {
230 urlPath = urlPath + "&version=" + WizInt64ToStr(nStartVersion) + "&count=" + WizIntToStr(nCountPerPage) + "&pageSize=" + WizIntToStr(nCountPerPage);
231 }
232 QString url = server.buildUrl(urlPath);
233 //
234 return queryJsonList<TData>(server, url, "GET", QByteArray(), arrayRet);
235}
236
237
238template <class TData>

Callers

nothing calls this directly

Calls 4

WizInt64ToStrFunction · 0.85
WizIntToStrFunction · 0.85
QByteArrayClass · 0.85
buildUrlMethod · 0.80

Tested by

no test coverage detected