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 #ifndef DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H 0016 #define DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H 0017 0018 #include "haariface.h" 0019 #include "dbjob.h" 0020 #include "digikam_export.h" 0021 0022 namespace Digikam 0023 { 0024 0025 class SearchesJob; 0026 0027 class DIGIKAM_DATABASE_EXPORT DuplicatesProgressObserver : public HaarProgressObserver 0028 { 0029 0030 public: 0031 0032 explicit DuplicatesProgressObserver(SearchesJob* const thread); 0033 ~DuplicatesProgressObserver() override; 0034 0035 void imageProcessed() override; 0036 bool isCanceled() override; 0037 0038 private: 0039 0040 SearchesJob* m_job; 0041 0042 private: 0043 0044 Q_DISABLE_COPY(DuplicatesProgressObserver) 0045 }; 0046 0047 } // namespace Digikam 0048 0049 #endif // DIGIKAM_DUPLICATES_PROGRESS_OBSERVER_H