Esempio n. 1
0
 void MetadataIOCoordinator::writingWorkerFinished(bool success) {
     LOG_INFO << success;
     setHasErrors(!success);
     const QVector<Models::ArtworkMetadata*> &artworksToWrite = m_WritingWorker->getItemsToWrite();
     m_CommandManager->addToLibrary(artworksToWrite);
     emit metadataWritingFinished();
 }
Esempio n. 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;
    }
Esempio n. 3
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;
    }
Esempio n. 4
0
 void MetadataIOCoordinator::writingWorkerFinished(bool success) {
     setHasErrors(!success);
     emit metadataWritingFinished();
 }