Пример #1
0
void CWizKbSync::startDownloadDocumentsSimpleInfo()
{
    Q_EMIT processLog(tr("downloading documents list"));

    Q_EMIT progressChanged(progressStyleUploaded);
    downloadNextDocumentsSimpleInfo(m_db->GetObjectVersion(WIZDOCUMENTDATA::ObjectName()));
}
Пример #2
0
void CWizKbSync::startDownloadDocumentsSimpleInfo()
{ 
    qint64 nVersion = m_db->GetObjectVersion(WIZDOCUMENTDATA::ObjectName());
    qDebug() << "[Syncing]download document list, local version: " << nVersion;

    downloadNextDocumentsSimpleInfo(nVersion);
}
Пример #3
0
void CWizSync::onDocumentGetList(const std::deque<WIZDOCUMENTDATABASE>& arrayRet)
{
    CWizApi::onDocumentGetList(arrayRet);

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

    if (arrayRet.size() < getCountPerPage()) {
        onDownloadDocumentsSimpleInfoCompleted();
    } else {
        downloadNextDocumentsSimpleInfo(WizObjectsGetMaxVersion<WIZDOCUMENTDATABASE>(arrayRet));
    }
}
Пример #4
0
void CWizKbSync::onDocumentGetList(const std::deque<WIZDOCUMENTDATABASE>& arrayRet)
{
    m_arrayAllDocumentsNeedToBeDownloaded.insert(m_arrayAllDocumentsNeedToBeDownloaded.end(),
                                                 arrayRet.begin(), arrayRet.end());

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

    if (arrayRet.size() < WIZAPI_PAGE_MAX) {
        onDownloadDocumentsSimpleInfoCompleted();
    } else {
        downloadNextDocumentsSimpleInfo(WizObjectsGetMaxVersion<WIZDOCUMENTDATABASE>(arrayRet));
    }
}