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, MultitrackModel* model,
const QModelIndex& index);
33 virtual ~AudioLevelsTask();
34 static void start(Mlt::Producer& producer, MultitrackModel* model,
const QModelIndex& index,
bool force =
false);
35 static void closeAll();
36 bool operator==(AudioLevelsTask& b);
42 Mlt::Producer* tempProducer();
45 MultitrackModel* m_model;
46 typedef QPair<Mlt::Producer*, QPersistentModelIndex> ProducerAndIndex;
47 QList<ProducerAndIndex> m_producers;
48 Mlt::Producer* m_tempProducer;
51 Mlt::Profile m_profile;
54 #endif // AUDIOLEVELSTASK_H