コード例 #1
0
    void MetadataIOCoordinator::readMetadata(bool ignoreBackups) {
        m_CanProcessResults = true;

        if (!m_IsImportInProgress) {
            readingFinishedHandler(ignoreBackups);
        } else {
            m_IgnoreBackupsAtImport = ignoreBackups;
        }
    }
コード例 #2
0
    void MetadataIOCoordinator::readingWorkerFinished(bool success) {
        qDebug() << "Metadata reading finished with status" << success;

        if (m_CanProcessResults) {
            readingFinishedHandler(m_IgnoreBackupsAtImport);
        }

        setHasErrors(!success);
        m_IsImportInProgress = false;
    }
コード例 #3
0
    void MetadataIOCoordinator::continueReading(bool ignoreBackups) {
        m_CanProcessResults = true;

        LOG_DEBUG << "Is in progress:" << m_IsImportInProgress;

        if (!m_IsImportInProgress) {
            readingFinishedHandler(ignoreBackups);
        } else {
            m_IgnoreBackupsAtImport = ignoreBackups;
        }
    }
コード例 #4
0
    void MetadataIOCoordinator::readingWorkerFinished(bool success) {
        LOG_INFO << "Success:" << success;
        setHasErrors(!success);

        const QVector<Models::ArtworkMetadata*> &itemsToRead = m_ReadingWorker->getItemsToRead();
        m_CommandManager->generatePreviews(itemsToRead);

        if (m_CanProcessResults) {
            readingFinishedHandler(m_IgnoreBackupsAtImport);
        } else {
            LOG_INFO << "Can't process results. Waiting for user interaction...";
        }

        m_IsImportInProgress = false;
    }