File indexing completed on 2025-01-19 03:56:04
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2022-05-13 0007 * Description : ExifTool thread for the ExifTool process 0008 * 0009 * SPDX-FileCopyrightText: 2021-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * SPDX-FileCopyrightText: 2022 by Maik Qualmann <metzpinguin at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_EXIFTOOL_THREAD_H 0017 #define DIGIKAM_EXIFTOOL_THREAD_H 0018 0019 // Qt includes 0020 0021 #include <QThread> 0022 0023 // Local includes 0024 0025 #include "digikam_export.h" 0026 0027 namespace Digikam 0028 { 0029 0030 class DIGIKAM_EXPORT ExifToolThread : public QThread 0031 { 0032 Q_OBJECT 0033 0034 public: 0035 0036 explicit ExifToolThread(QObject* const parent); 0037 ~ExifToolThread() override; 0038 0039 Q_SIGNALS: 0040 0041 void exifToolProcessStarted(); 0042 0043 protected: 0044 0045 /** 0046 * Main thread loop. 0047 */ 0048 void run() override; 0049 }; 0050 0051 } // namespace Digikam 0052 0053 #endif // DIGIKAM_EXIFTOOL_THREAD_H