]> git.sesse.net Git - kdenlive/blobdiff - src/docclipbase.h
* Allow to edit transparent background for images in group properties
[kdenlive] / src / docclipbase.h
index 60e1402baa9fd3d1c6ce3205e09a1625b451be04..a130e16ad4e592c6c708e79cd1c392cfa11a02a6 100644 (file)
@@ -26,6 +26,8 @@
 #include <QPixmap>
 #include <QObject>
 #include <QTimer>
+#include <QProcess>
+#include <QFuture>
 
 #include <KUrl>
 
@@ -202,6 +204,10 @@ Q_OBJECT public:
     bool hasAudioCodec(const QString &codec) const;
     bool checkHash() const;
     void setPlaceHolder(bool place);
+    /** @brief Generate a proxy clip (lower resolution copy) named like the clip's hash. */
+    void generateProxy(KUrl proxyFolder, QString params);
+    /** @brief Abort creation of the proxy clip (lower resolution copy). */
+    void abortProxy();
 
 private:   // Private attributes
 
@@ -237,6 +243,10 @@ private:   // Private attributes
     QMap <QString, QString> m_properties;
     /** Holds clip metadata like author, copyright,... */
     QMap <QString, QString> m_metadata;
+
+    QFuture<void> m_proxyThread;
+    /** Used to kill the proxy thread */
+    bool m_abortProxy;
     /** Create connections for audio thumbnails */
     void slotCreateAudioTimer();
     void slotRefreshProducer();
@@ -263,9 +273,12 @@ public slots:
     QMap <QString, QString> properties() const;
     QMap <QString, QString> metadata() const;
 
+private slots:
+    void slotGenerateProxy(QStringList parameters);
 
 signals:
     void gotAudioData();
+    void proxyReady(const QString &, bool success);
 };
 
 #endif