Beispiel #1
0
void CWizKbSync::onDownloadDocumentsSimpleInfoCompleted()
{
    // 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)
    // if it's the first time user syncing triggered, filter is not needed.
    int nSize;
    m_db->GetAllDocumentsSize(nSize, true);

    if (nSize) {
        filterDocuments();
    }

    int nTotal = m_arrayAllDocumentsNeedToBeDownloaded.size();
    if (nTotal) {
        Q_EMIT processLog(WizFormatString1(tr("Total %1 documents need to be synchronized"), nTotal));
    }

    startDownloadDocumentsFullInfo();
}
Beispiel #2
0
void CWizKbSync::onDownloadDocumentsSimpleInfoCompleted()
{
    Q_EMIT progressChanged(progressDocumentSimpleInfoDownloaded);

    //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();

    int nTotal = m_arrayAllDocumentsNeedToBeDownloaded.size();
    if (nTotal) {
        Q_EMIT processLog(WizFormatString1(tr("Total %1 documents need to be synchronized"), nTotal));
    }

    //startUploadDocuments();
    startDownloadDocumentsFullInfo();
}
Beispiel #3
0
void CWizSync::onUploadAttachmentsCompleted()
{
    startDownloadDocumentsFullInfo();
}