void CWizKbSync::onUploadAttachment(const WIZDOCUMENTATTACHMENTDATAEX& data) { if (!data.strGUID.IsEmpty()) { m_db->ModifyObjectVersion(data.strGUID, WIZDOCUMENTATTACHMENTDATAEX::ObjectName(), 0); } uploadNextAttachment(); }
void CWizSync::startUploadAttachments() { Q_EMIT processLog(tr("uploading attachments")); Q_EMIT progressChanged(progressDocumentUploaded); m_db.GetModifiedAttachments(m_arrayAllAttachmentsNeedToBeUploaded); uploadNextAttachment(); }
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(); }
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(); }
void CWizSync::onUploadAttachment(const WIZDOCUMENTATTACHMENTDATAEX& data) { m_db.ModifyObjectVersion(data.strGUID, WIZDOCUMENTATTACHMENTDATAEX::ObjectName(), 0); uploadNextAttachment(); }