comparison data/fileio/MIDIFileReader.h @ 1491:1dc64d3d323c import-audio-data

Support progress reporter for data file loads
author Chris Cannam
date Fri, 29 Jun 2018 13:44:53 +0100
parents 48e9f538e6e9
children c01cbe41aeb5
comparison
equal deleted inserted replaced
1490:9ab8e5ec4731 1491:1dc64d3d323c
29 #include <vector> 29 #include <vector>
30 30
31 #include <QObject> 31 #include <QObject>
32 32
33 class MIDIEvent; 33 class MIDIEvent;
34 class ProgressReporter;
34 35
35 typedef unsigned char MIDIByte; 36 typedef unsigned char MIDIByte;
36 37
37 class MIDIFileImportPreferenceAcquirer // welcome to our grand marble foyer 38 class MIDIFileImportPreferenceAcquirer // welcome to our grand marble foyer
38 { 39 {
59 Q_OBJECT 60 Q_OBJECT
60 61
61 public: 62 public:
62 MIDIFileReader(QString path, 63 MIDIFileReader(QString path,
63 MIDIFileImportPreferenceAcquirer *pref, // may be null 64 MIDIFileImportPreferenceAcquirer *pref, // may be null
64 sv_samplerate_t mainModelSampleRate); 65 sv_samplerate_t mainModelSampleRate,
66 ProgressReporter *reporter = 0);
65 virtual ~MIDIFileReader(); 67 virtual ~MIDIFileReader();
66 68
67 virtual bool isOK() const; 69 virtual bool isOK() const;
68 virtual QString getError() const; 70 virtual QString getError() const;
69 virtual Model *load() const; 71 virtual Model *load() const;