void CWizKbSync::onTagGetList(const std::deque<WIZTAGDATA>& arrayRet) { CWizApi::onTagGetList(arrayRet); m_arrayAllTagsDownloaded.insert(m_arrayAllTagsDownloaded.end(), arrayRet.begin(), arrayRet.end()); if (arrayRet.size() < WIZAPI_PAGE_MAX) { onDownloadTagsCompleted(); } else { downloadNextTags(WizObjectsGetMaxVersion<WIZTAGDATA>(arrayRet)); } }
void CWizSync::onTagGetList(const std::deque<WIZTAGDATA>& arrayRet) { CWizApi::onTagGetList(arrayRet); if (arrayRet.size() < getCountPerPage()) { onDownloadTagsCompleted(); } else { downloadNextTags(WizObjectsGetMaxVersion<WIZTAGDATA>(arrayRet)); } }
void CWizKbSync::onTagGetList(const CWizTagDataArray& arrayRet) { m_db->UpdateTags(arrayRet); m_arrayAllTagsDownloaded.insert(m_arrayAllTagsDownloaded.end(), arrayRet.begin(), arrayRet.end()); qDebug() << "[Syncing]download size: " << m_arrayAllTagsDownloaded.size(); if (arrayRet.size() < WIZAPI_PAGE_MAX) { onDownloadTagsCompleted(); } else { downloadNextTags(WizObjectsGetMaxVersion<WIZTAGDATA>(arrayRet)); } }