Example #1
0
void CWizKbSync::queryDocumentInfo(const CString& strGUID, const CString& strTitle)
{
    Q_EMIT processLog(tr("query note info: ") + strTitle);

    CWizStdStringArray arrayGUID;
    arrayGUID.push_back(strGUID);
    callDocumentsGetInfo(arrayGUID);
}
Example #2
0
void CWizSync::queryDocumentInfo(const CString& strGUID, const CString& strTitle)
{
    // if current modified document already inside need download list, means confilict found!
    // no need to query document info anymore.
    std::deque<WIZDOCUMENTDATABASE>::const_iterator it;
    for (it = m_arrayAllDocumentsNeedToBeDownloaded.begin(); \
            it != m_arrayAllDocumentsNeedToBeDownloaded.end();
            it++) {
        WIZDOCUMENTDATABASE data = *it;

        if (data.strGUID == strGUID) {
            Q_EMIT processLog(tr("Conflict found: ") + strTitle);
            m_conflictedDocument = data;
            callDocumentGetData(data);
            return;
        }
    }

    Q_EMIT processLog(tr("query note info: ") + strTitle);

    CWizStdStringArray arrayGUID;
    arrayGUID.push_back(strGUID);
    callDocumentsGetInfo(arrayGUID);
}