Esempio n. 1
0
void CWizKbSync::onUploadAttachment(const WIZDOCUMENTATTACHMENTDATAEX& data)
{
    if (!data.strGUID.IsEmpty()) {
        m_db->ModifyObjectVersion(data.strGUID, WIZDOCUMENTATTACHMENTDATAEX::ObjectName(), 0);
    }

    uploadNextAttachment();
}
Esempio n. 2
0
void CWizSync::startUploadAttachments()
{
    Q_EMIT processLog(tr("uploading attachments"));
    Q_EMIT progressChanged(progressDocumentUploaded);

    m_db.GetModifiedAttachments(m_arrayAllAttachmentsNeedToBeUploaded);
    uploadNextAttachment();
}
Esempio n. 3
0
void CWizKbSync::startUploadAttachments()
{
    m_db->GetModifiedAttachments(m_arrayAllAttachmentsNeedToBeUploaded);

    int nTotal = m_arrayAllAttachmentsNeedToBeUploaded.size();
    if (nTotal) {
        Q_EMIT processLog(WizFormatString1(tr("uploading attachments, total %1 attachments need upload"), nTotal));
    }

    Q_EMIT progressChanged(progressDocumentUploaded);
    uploadNextAttachment();
}
Esempio n. 4
0
void CWizKbSync::startUploadAttachments()
{
    m_db->GetModifiedAttachments(m_arrayAllAttachmentsNeedToBeUploaded);
    int nSize = m_arrayAllAttachmentsNeedToBeUploaded.size();

    qDebug() << "[Syncing]upload attachments, total: " << nSize;
    Q_ASSERT(nSize == 0);

    if (nSize) {
        Q_EMIT processLog(WizFormatString1(tr("uploading attachments, total %1 attachments need upload"), nSize));
    }

    uploadNextAttachment();
}
Esempio n. 5
0
void CWizSync::onUploadAttachment(const WIZDOCUMENTATTACHMENTDATAEX& data)
{
    m_db.ModifyObjectVersion(data.strGUID, WIZDOCUMENTATTACHMENTDATAEX::ObjectName(), 0);
    uploadNextAttachment();
}