File indexing completed on 2025-01-19 03:57:57
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2010-09-03 0007 * Description : Integrated, multithread face detection / recognition 0008 * 0009 * SPDX-FileCopyrightText: 2010-2011 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0010 * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_DATABASE_WRITER_H 0017 #define DIGIKAM_DATABASE_WRITER_H 0018 0019 // Local includes 0020 0021 #include "facepipeline_p.h" 0022 #include "faceitemretriever.h" 0023 0024 namespace Digikam 0025 { 0026 0027 class Q_DECL_HIDDEN DatabaseWriter : public WorkerObject 0028 { 0029 Q_OBJECT 0030 0031 public: 0032 0033 DatabaseWriter(FacePipeline::WriteMode mode, FacePipeline::Private* const dd); 0034 ~DatabaseWriter() override; 0035 0036 public Q_SLOTS: 0037 0038 void process(const FacePipelineExtendedPackage::Ptr& package); 0039 0040 Q_SIGNALS: 0041 0042 void processed(const FacePipelineExtendedPackage::Ptr& package); 0043 0044 protected: 0045 0046 FacePipeline::WriteMode mode; 0047 ThumbnailLoadThread* thumbnailLoadThread; 0048 FacePipeline::Private* const d; 0049 0050 private: 0051 0052 // Disable 0053 DatabaseWriter(const DatabaseWriter&) = delete; 0054 DatabaseWriter& operator=(const DatabaseWriter&) = delete; 0055 }; 0056 0057 } // namespace Digikam 0058 0059 #endif // DIGIKAM_DATABASE_WRITER_H