19 #ifndef AUDIOLEVELSTASK_H
20 #define AUDIOLEVELSTASK_H
22 #include "multitrackmodel.h"
24 #include <QPersistentModelIndex>
26 #include <MltProducer.h>
27 #include <MltProfile.h>
29 class AudioLevelsTask :
public QRunnable
32 AudioLevelsTask(Mlt::Producer& producer, QObject*
object,
const QModelIndex& index);
33 virtual ~AudioLevelsTask();
34 static void start(Mlt::Producer& producer, QObject*
object,
const QModelIndex& index,
bool force =
false);
35 static void closeAll();
36 bool operator==(AudioLevelsTask& b);
42 Mlt::Producer* tempProducer();
46 typedef QPair<Mlt::Producer*, QPersistentModelIndex> ProducerAndIndex;
47 QList<ProducerAndIndex> m_producers;
48 QScopedPointer<Mlt::Producer> m_tempProducer;
51 Mlt::Profile m_profile;
54 #endif // AUDIOLEVELSTASK_H