示例#1
0
void CWizKbSync::onDeletedGetList(const std::deque<WIZDELETEDGUIDDATA>& arrayRet)
{
    CWizApi::onDeletedGetList(arrayRet);

    m_arrayAllDeletedsDownloaded.insert(m_arrayAllDeletedsDownloaded.end(),
                                        arrayRet.begin(), arrayRet.end());

    if (arrayRet.size() < WIZAPI_PAGE_MAX) {
        onDownloadDeletedsCompleted();
    } else {
        downloadNextDeleteds(WizObjectsGetMaxVersion<WIZDELETEDGUIDDATA>(arrayRet));
    }
}
示例#2
0
void CWizSync::onDeletedGetList(const std::deque<WIZDELETEDGUIDDATA>& arrayRet)
{
    CWizApi::onDeletedGetList(arrayRet);

    if (arrayRet.size() < getCountPerPage())
    {
        onDownloadDeletedsCompleted();
    }
    else
    {
        downloadNextDeleteds(WizObjectsGetMaxVersion<WIZDELETEDGUIDDATA>(arrayRet));
    }
}
示例#3
0
void CWizKbSync::onDeletedGetList(const CWizDeletedGUIDDataArray &arrayRet)
{
    m_db->UpdateDeletedGUIDs(arrayRet);

    m_arrayAllDeletedsDownloaded.insert(m_arrayAllDeletedsDownloaded.end(),
                                        arrayRet.begin(), arrayRet.end());

    qDebug() << "[Syncing]download size: " << m_arrayAllDeletedsDownloaded.size();

    if (arrayRet.size() < WIZAPI_PAGE_MAX) {
        onDownloadDeletedsCompleted();
    } else {
        downloadNextDeleteds(WizObjectsGetMaxVersion<WIZDELETEDGUIDDATA>(arrayRet));
    }
}