File indexing completed on 2025-01-19 03:53:32

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2015-06-10
0007  * Description : Progress observer for duplicate scanning
0008  *
0009  * SPDX-FileCopyrightText: 2015 by Mohamed_Anwer <m_dot_anwer at gmx dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #include "duplicatesprogressobserver.h"
0016 
0017 // Local includes
0018 
0019 
0020 namespace Digikam
0021 {
0022 
0023 DuplicatesProgressObserver::DuplicatesProgressObserver(SearchesJob* const thread)
0024     : HaarProgressObserver(),
0025       m_job(thread)
0026 {
0027 }
0028 
0029 DuplicatesProgressObserver::~DuplicatesProgressObserver()
0030 {
0031     m_job = nullptr;
0032 }
0033 
0034 void DuplicatesProgressObserver::imageProcessed()
0035 {
0036     Q_EMIT m_job->signalImageProcessed();
0037 }
0038 
0039 bool DuplicatesProgressObserver::isCanceled()
0040 {
0041     return m_job->isCanceled();
0042 }
0043 
0044 } // namespace Digikam