void MetadataIOCoordinator::readMetadata(bool ignoreBackups) { m_CanProcessResults = true; if (!m_IsImportInProgress) { readingFinishedHandler(ignoreBackups); } else { m_IgnoreBackupsAtImport = ignoreBackups; } }
void MetadataIOCoordinator::readingWorkerFinished(bool success) { qDebug() << "Metadata reading finished with status" << success; if (m_CanProcessResults) { readingFinishedHandler(m_IgnoreBackupsAtImport); } setHasErrors(!success); m_IsImportInProgress = false; }
void MetadataIOCoordinator::continueReading(bool ignoreBackups) { m_CanProcessResults = true; LOG_DEBUG << "Is in progress:" << m_IsImportInProgress; if (!m_IsImportInProgress) { readingFinishedHandler(ignoreBackups); } else { m_IgnoreBackupsAtImport = ignoreBackups; } }
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; }