Esempio n. 1
0
void CWizKbSync::startDownloadTags()
{
    Q_EMIT processLog(tr("downloading tags list"));

    Q_EMIT progressChanged(progressDeletedsUploaded);
    downloadNextTags(m_db->GetObjectVersion(WIZTAGDATA::ObjectName()));
}
Esempio n. 2
0
void CWizKbSync::startDownloadTags()
{
    qint64 nVersion = m_db->GetObjectVersion(WIZTAGDATA::ObjectName());
    qDebug() << "[Syncing]download tags, local version: " << nVersion;

    downloadNextTags(nVersion);
}
Esempio n. 3
0
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));
    }
}
Esempio n. 4
0
void CWizSync::onTagGetList(const std::deque<WIZTAGDATA>& arrayRet)
{
    CWizApi::onTagGetList(arrayRet);

    if (arrayRet.size() < getCountPerPage())
    {
        onDownloadTagsCompleted();
    }
    else
    {
        downloadNextTags(WizObjectsGetMaxVersion<WIZTAGDATA>(arrayRet));
    }
}
Esempio n. 5
0
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));
    }
}