comparison data/model/WaveFileModel.h @ 211:e2bbb58e6df6

Several changes related to referring to remote URLs for sessions and files: * Pull file dialog wrapper functions out from MainWindow into FileFinder * If a file referred to in a session is not found at its expected location, try a few other alternatives (same location as the session file or same location as the last audio file) before asking the user to locate it * Allow user to give a URL when locating an audio file, not just locate on the filesystem * Make wave file models remember the "original" location (e.g. URL) of the audio file, not just the actual location from which the data was loaded (e.g. local copy of that URL) -- when saving a session, use the original location so as not to refer to a temporary file * Clean up incompletely-downloaded local copies of files
author Chris Cannam
date Thu, 11 Jan 2007 13:29:58 +0000
parents 91fdc752e540
children 185454896a76
comparison
equal deleted inserted replaced
210:a06afefe45ee 211:e2bbb58e6df6
31 { 31 {
32 Q_OBJECT 32 Q_OBJECT
33 33
34 public: 34 public:
35 WaveFileModel(QString path); 35 WaveFileModel(QString path);
36 WaveFileModel(QString path, AudioFileReader *reader); 36 WaveFileModel(QString path, QString originalLocation);
37 WaveFileModel(QString originalLocation, AudioFileReader *reader);
37 ~WaveFileModel(); 38 ~WaveFileModel();
38 39
39 bool isOK() const; 40 bool isOK() const;
40 bool isReady(int *) const; 41 bool isReady(int *) const;
41 42