Mercurial > hg > svcore
annotate rdf/RDFTransformFactory.h @ 493:3931711b5671
* RDF importer: add model titles where possible
* RDF transform factory: report whether something appears to be RDF or
not (so we can avoid trying to load it as something else if the RDF
query fails)
author | Chris Cannam |
---|---|
date | Tue, 25 Nov 2008 13:43:56 +0000 |
parents | beb2948baa77 |
children | 81963c51b488 |
rev | line source |
---|---|
Chris@439 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@439 | 2 |
Chris@439 | 3 /* |
Chris@439 | 4 Sonic Visualiser |
Chris@439 | 5 An audio file viewer and annotation editor. |
Chris@439 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@439 | 7 This file copyright 2008 QMUL. |
Chris@439 | 8 |
Chris@439 | 9 This program is free software; you can redistribute it and/or |
Chris@439 | 10 modify it under the terms of the GNU General Public License as |
Chris@439 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@439 | 12 License, or (at your option) any later version. See the file |
Chris@439 | 13 COPYING included with this distribution for more information. |
Chris@439 | 14 */ |
Chris@439 | 15 |
Chris@439 | 16 #ifndef _RDF_TRANSFORM_FACTORY_H_ |
Chris@439 | 17 #define _RDF_TRANSFORM_FACTORY_H_ |
Chris@439 | 18 |
Chris@439 | 19 #include <QObject> |
Chris@439 | 20 #include <QString> |
Chris@439 | 21 |
Chris@439 | 22 #include <vector> |
Chris@439 | 23 |
Chris@439 | 24 #include "transform/Transform.h" |
Chris@439 | 25 |
Chris@439 | 26 class RDFTransformFactoryImpl; |
Chris@439 | 27 class ProgressReporter; |
Chris@439 | 28 |
Chris@439 | 29 class RDFTransformFactory : public QObject |
Chris@439 | 30 { |
Chris@439 | 31 Q_OBJECT |
Chris@439 | 32 |
Chris@439 | 33 public: |
Chris@439 | 34 static QString getKnownExtensions(); |
Chris@439 | 35 |
Chris@439 | 36 RDFTransformFactory(QString url); |
Chris@439 | 37 virtual ~RDFTransformFactory(); |
Chris@439 | 38 |
Chris@493 | 39 bool isRDF(); // true if the file was parseable and had transforms in it |
Chris@493 | 40 bool isOK(); // true if the transforms could be completely constructed |
Chris@439 | 41 QString getErrorString() const; |
Chris@439 | 42 |
Chris@439 | 43 std::vector<Transform> getTransforms(ProgressReporter *reporter); |
Chris@439 | 44 |
Chris@439 | 45 protected: |
Chris@439 | 46 RDFTransformFactoryImpl *m_d; |
Chris@439 | 47 }; |
Chris@439 | 48 |
Chris@439 | 49 #endif |