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 0011 class QProcess; 0012 0013 class ProxyTask : public AbstractTask 0014 { 0015 public: 0016 ProxyTask(const ObjectId &owner, QObject* object); 0017 static void start(const ObjectId &owner, QObject* object, bool force = false); 0018 0019 protected: 0020 void run() override; 0021 0022 private Q_SLOTS: 0023 void processLogInfo(); 0024 0025 private: 0026 int m_jobDuration; 0027 bool m_isFfmpegJob; 0028 std::unique_ptr<QProcess> m_jobProcess; 0029 QString m_errorMessage; 0030 QString m_logDetails; 0031 };