19#ifndef AUDIOLEVELSTASK_H
20#define AUDIOLEVELSTASK_H
22#include "multitrackmodel.h"
24#include <QPersistentModelIndex>
26#include <MltProducer.h>
27#include <MltProfile.h>
29class 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,
36 static void closeAll();
37 bool operator==(AudioLevelsTask &b);
43 Mlt::Producer *tempProducer();
47 typedef QPair<Mlt::Producer *, QPersistentModelIndex> ProducerAndIndex;
48 QList<ProducerAndIndex> m_producers;
49 QScopedPointer<Mlt::Producer> m_tempProducer;
52 Mlt::Profile m_profile;