comparison data/fileio/RemoteFile.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 a06afefe45ee
children ce6f65ab3327
comparison
equal deleted inserted replaced
210:a06afefe45ee 211:e2bbb58e6df6
43 bool isDone() const; 43 bool isDone() const;
44 44
45 QString getLocalFilename() const; 45 QString getLocalFilename() const;
46 QString getErrorString() const; 46 QString getErrorString() const;
47 47
48 void deleteLocalFile();
49
48 static bool canHandleScheme(QUrl url); 50 static bool canHandleScheme(QUrl url);
49 51
50 signals: 52 signals:
51 void progress(int percent); 53 void progress(int percent);
52 void ready(); 54 void ready();
69 int m_lastStatus; 71 int m_lastStatus;
70 bool m_done; 72 bool m_done;
71 QProgressDialog *m_progressDialog; 73 QProgressDialog *m_progressDialog;
72 QTimer m_progressShowTimer; 74 QTimer m_progressShowTimer;
73 75
76 void cleanup();
77
74 QString createLocalFile(QUrl url); 78 QString createLocalFile(QUrl url);
75 79
76 static QMutex m_fileCreationMutex; 80 static QMutex m_fileCreationMutex;
77 static int m_count; 81 static int m_count;
78 }; 82 };