예제 #1
0
void CWizKbSync::onDownloadStylesCompleted()
{
    int nTotal = m_arrayAllStylesDownloaded.size();
    if (nTotal) {
        Q_EMIT processLog(WizFormatString1(tr("Total %1 styles be sychronized"), nTotal));
    }

    startUploadDocuments();
}
예제 #2
0
void CWizSync::onDownloadDocumentsSimpleInfoCompleted()
{
    Q_EMIT progressChanged(progressDocumentSimpleInfoDownloaded);

    TOLOG1(tr("Total %1 documents need to be update"), QString::number(m_arrayAllDocumentsNeedToBeDownloaded.size()));

    //save max version of document
    //if no error occured while downloading document full information
    //then update this version
    if (!m_arrayAllDocumentsNeedToBeDownloaded.empty()) {
        m_nDocumentMaxVersion = ::WizObjectsGetMaxVersion<WIZDOCUMENTDATABASE>(m_arrayAllDocumentsNeedToBeDownloaded);
    }

    //filter documents for getting document full information (not data)
    filterDocuments();

    startUploadDocuments();
}