void CWizKbSync::onStyleGetList(const std::deque<WIZSTYLEDATA>& arrayRet) { CWizApi::onStyleGetList(arrayRet); m_arrayAllStylesDownloaded.insert(m_arrayAllStylesDownloaded.end(), arrayRet.begin(), arrayRet.end()); if (arrayRet.size() < WIZAPI_PAGE_MAX) { onDownloadStylesCompleted(); } else { downloadNextStyles(WizObjectsGetMaxVersion<WIZSTYLEDATA>(arrayRet)); } }
void CWizSync::onStyleGetList(const std::deque<WIZSTYLEDATA>& arrayRet) { CWizApi::onStyleGetList(arrayRet); if (arrayRet.size() < getCountPerPage()) { onDownloadStylesCompleted(); } else { downloadNextStyles(WizObjectsGetMaxVersion<WIZSTYLEDATA>(arrayRet)); } }
void CWizKbSync::onStyleGetList(const CWizStyleDataArray& arrayRet) { m_db->UpdateStyles(arrayRet); m_arrayAllStylesDownloaded.insert(m_arrayAllStylesDownloaded.end(), arrayRet.begin(), arrayRet.end()); qDebug() << "[Syncing]download size: " << m_arrayAllStylesDownloaded.size(); if (arrayRet.size() < WIZAPI_PAGE_MAX) { onDownloadStylesCompleted(); } else { downloadNextStyles(WizObjectsGetMaxVersion<WIZSTYLEDATA>(arrayRet)); } }