RDFImporter.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
2 
3 /*
4  Sonic Visualiser
5  An audio file viewer and annotation editor.
6  Centre for Digital Music, Queen Mary, University of London.
7  This file copyright 2008 QMUL.
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of the
12  License, or (at your option) any later version. See the file
13  COPYING included with this distribution for more information.
14 */
15 
16 #ifndef SV_RDF_IMPORTER_H
17 #define SV_RDF_IMPORTER_H
18 
19 #include <QObject>
20 #include <QString>
21 
22 #include <vector>
23 
24 #include "base/BaseTypes.h"
25 #include "data/model/Model.h"
26 
27 class RDFImporterImpl;
28 class ProgressReporter;
29 
30 class RDFImporter : public QObject
31 {
32  Q_OBJECT
33 
34 public:
40  static QString getKnownExtensions();
41 
42  RDFImporter(QString url, sv_samplerate_t sampleRate = 0);
43  virtual ~RDFImporter();
44 
45  void setSampleRate(sv_samplerate_t sampleRate);
46 
47  bool isOK();
48  QString getErrorString() const;
49 
55  std::vector<ModelId> getDataModels(ProgressReporter *reporter);
56 
63  };
64 
65  static RDFDocumentType identifyDocumentType(QUrl url);
66 
67  static bool isPlausibleDocumentOfAnyKind(QUrl url);
68 
69 protected:
71 };
72 
73 #endif
double sv_samplerate_t
Sample rate.
Definition: BaseTypes.h:51
QString getErrorString() const
static QString getKnownExtensions()
Return the file extensions that we have data file readers for, in a format suitable for use with QFil...
Definition: RDFImporter.cpp:91
virtual ~RDFImporter()
static bool isPlausibleDocumentOfAnyKind(QUrl url)
void setSampleRate(sv_samplerate_t sampleRate)
RDFImporterImpl * m_d
Definition: RDFImporter.h:70
std::vector< ModelId > getDataModels(ProgressReporter *reporter)
Return a list of models imported from the RDF source.
RDFImporter(QString url, sv_samplerate_t sampleRate=0)
Definition: RDFImporter.cpp:96
static RDFDocumentType identifyDocumentType(QUrl url)