File indexing completed on 2025-01-05 03:57:26

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2017-05-25
0007  * Description : a tool to generate video slideshow frames from images.
0008  *
0009  * SPDX-FileCopyrightText: 2017-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_VIDSLIDE_TASK_H
0016 #define DIGIKAM_VIDSLIDE_TASK_H
0017 
0018 // Qt includes
0019 
0020 #include <QString>
0021 
0022 // Local includes
0023 
0024 #include "vidslidesettings.h"
0025 #include "actionthreadbase.h"
0026 #include "digikam_export.h"
0027 
0028 namespace Digikam
0029 {
0030 
0031 class VidSlideTask : public ActionJob
0032 {
0033     Q_OBJECT
0034 
0035 public:
0036 
0037     explicit VidSlideTask(VidSlideSettings* const settings);
0038     ~VidSlideTask();
0039 
0040 Q_SIGNALS:
0041 
0042     void signalMessage(const QString&, bool);
0043     void signalDone(bool);
0044 
0045 protected:
0046 
0047     void run() override;
0048 
0049 private:
0050 
0051     // Disable
0052     VidSlideTask(QObject*);
0053 
0054 private:
0055 
0056     VidSlideSettings* m_settings = nullptr;
0057 };
0058 
0059 } // namespace Digikam
0060 
0061 #endif // DIGIKAM_VIDSLIDE_TASK_H