18#ifndef AUDIOLEVELSTASK_H
19#define AUDIOLEVELSTASK_H
21#include <MltProducer.h>
22#include <MltProfile.h>
24#include <QPersistentModelIndex>
27class AudioLevelsTask :
public QRunnable
30 AudioLevelsTask(Mlt::Producer &producer, QObject *
object,
const QModelIndex &index);
31 virtual ~AudioLevelsTask();
32 static void start(Mlt::Producer &producer,
34 const QModelIndex &index,
36 static void closeAll();
37 bool operator==(AudioLevelsTask &b);
43 Mlt::Producer *tempProducer();
45 void notifyQObjects(
const QPersistentModelIndex &index);
48 QObject *m_qmlProducer;
49 typedef QPair<Mlt::Producer *, QPersistentModelIndex> ProducerAndIndex;
50 QList<ProducerAndIndex> m_producers;
51 QScopedPointer<Mlt::Producer> m_tempProducer;
54 Mlt::Profile m_profile;