Mercurial > hg > sonic-visualiser
comparison document/SVFileReader.h @ 87:8944f3005a15
* Cancel when downloading file
* Handle status codes (404 etc)
* Add RemoteFile::isAvailable
* Start on FileFinder for looking up files referred to in distant sessions
author | Chris Cannam |
---|---|
date | Wed, 10 Jan 2007 17:26:39 +0000 |
parents | bedc7517b6e8 |
children | fbd09fcda469 |
comparison
equal
deleted
inserted
replaced
86:6113fdda2737 | 87:8944f3005a15 |
---|---|
39 | 39 |
40 class SVFileReader : public QXmlDefaultHandler | 40 class SVFileReader : public QXmlDefaultHandler |
41 { | 41 { |
42 public: | 42 public: |
43 SVFileReader(Document *document, | 43 SVFileReader(Document *document, |
44 SVFileReaderPaneCallback &callback); | 44 SVFileReaderPaneCallback &callback, |
45 QString location = ""); // for audio file locate mechanism | |
45 virtual ~SVFileReader(); | 46 virtual ~SVFileReader(); |
46 | 47 |
47 void parse(const QString &xmlData); | 48 void parse(const QString &xmlData); |
48 void parse(QXmlInputSource &source); | 49 void parse(QXmlInputSource &source); |
49 | 50 |
83 bool readSelection(const QXmlAttributes &); | 84 bool readSelection(const QXmlAttributes &); |
84 void addUnaddedModels(); | 85 void addUnaddedModels(); |
85 | 86 |
86 Document *m_document; | 87 Document *m_document; |
87 SVFileReaderPaneCallback &m_paneCallback; | 88 SVFileReaderPaneCallback &m_paneCallback; |
89 QString m_location; | |
88 Pane *m_currentPane; | 90 Pane *m_currentPane; |
89 std::map<int, Layer *> m_layers; | 91 std::map<int, Layer *> m_layers; |
90 std::map<int, Model *> m_models; | 92 std::map<int, Model *> m_models; |
91 std::set<Model *> m_addedModels; | 93 std::set<Model *> m_addedModels; |
92 std::map<int, int> m_awaitingDatasets; // map dataset id -> model id | 94 std::map<int, int> m_awaitingDatasets; // map dataset id -> model id |