File indexing completed on 2024-12-01 04:28:36
0001 /* 0002 SPDX-FileCopyrightText: 2021 Jean-Baptiste Mardelle <jb@kdenlive.org> 0003 0004 SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #pragma once 0008 0009 #include "abstracttask.h" 0010 #include <memory> 0011 #include <unordered_map> 0012 #include <mlt++/MltConsumer.h> 0013 0014 class QProcess; 0015 0016 class CutTask : public AbstractTask 0017 { 0018 public: 0019 CutTask(const ObjectId &owner, const QString &destination, const QStringList &encodingParams, int in ,int out, bool addToProject, QObject* object); 0020 static void start(const ObjectId &owner, int in , int out, QObject* object, bool force = false); 0021 0022 private Q_SLOTS: 0023 void processLogInfo(); 0024 0025 protected: 0026 void run() override; 0027 0028 private: 0029 GenTime m_inPoint; 0030 GenTime m_outPoint; 0031 const QString m_destination; 0032 QStringList m_encodingParams; 0033 QString m_errorMessage; 0034 QString m_logDetails; 0035 std::unique_ptr<QProcess> m_jobProcess; 0036 int m_jobDuration; 0037 bool m_addToProject; 0038 };