Mercurial > hg > svcore
comparison rdf/RDFImporter.h @ 490:c3fb8258e34d
* Make it possible to import an entire session from an RDF document.
However, at the moment the timings of events appear to be constrained
by how far the audio decoder has got through its audio file at the
time the event is queried -- need to investigate.
author | Chris Cannam |
---|---|
date | Fri, 21 Nov 2008 18:03:14 +0000 |
parents | beb2948baa77 |
children | b71116d3c180 |
comparison
equal
deleted
inserted
replaced
489:82ab61fa9223 | 490:c3fb8258e34d |
---|---|
35 * in a format suitable for use with QFileDialog. For example, | 35 * in a format suitable for use with QFileDialog. For example, |
36 * "*.rdf *.n3". | 36 * "*.rdf *.n3". |
37 */ | 37 */ |
38 static QString getKnownExtensions(); | 38 static QString getKnownExtensions(); |
39 | 39 |
40 RDFImporter(QString url, int sampleRate); | 40 RDFImporter(QString url, int sampleRate = 0); |
41 virtual ~RDFImporter(); | 41 virtual ~RDFImporter(); |
42 | |
43 void setSampleRate(int sampleRate); | |
42 | 44 |
43 bool isOK(); | 45 bool isOK(); |
44 QString getErrorString() const; | 46 QString getErrorString() const; |
45 | 47 |
48 QString getAudioAvailableUrl() const; | |
49 | |
46 std::vector<Model *> getDataModels(ProgressReporter *reporter); | 50 std::vector<Model *> getDataModels(ProgressReporter *reporter); |
51 | |
52 enum RDFDocumentType { | |
53 AudioRefAndAnnotations, | |
54 Annotations, | |
55 AudioRef, | |
56 OtherDocument | |
57 }; | |
58 | |
59 static RDFDocumentType identifyDocumentType(QString url); | |
47 | 60 |
48 protected: | 61 protected: |
49 RDFImporterImpl *m_d; | 62 RDFImporterImpl *m_d; |
50 }; | 63 }; |
51 | 64 |