Chris@439: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@439: Chris@439: /* Chris@439: Sonic Visualiser Chris@439: An audio file viewer and annotation editor. Chris@439: Centre for Digital Music, Queen Mary, University of London. Chris@439: This file copyright 2008 QMUL. Chris@439: Chris@439: This program is free software; you can redistribute it and/or Chris@439: modify it under the terms of the GNU General Public License as Chris@439: published by the Free Software Foundation; either version 2 of the Chris@439: License, or (at your option) any later version. See the file Chris@439: COPYING included with this distribution for more information. Chris@439: */ Chris@439: Chris@439: #ifndef _RDF_TRANSFORM_FACTORY_H_ Chris@439: #define _RDF_TRANSFORM_FACTORY_H_ Chris@439: Chris@439: #include Chris@439: #include Chris@439: Chris@439: #include Chris@439: Chris@439: #include "transform/Transform.h" Chris@439: Chris@439: class RDFTransformFactoryImpl; Chris@439: class ProgressReporter; Chris@439: Chris@439: class RDFTransformFactory : public QObject Chris@439: { Chris@439: Q_OBJECT Chris@439: Chris@439: public: Chris@439: static QString getKnownExtensions(); Chris@439: Chris@439: RDFTransformFactory(QString url); Chris@439: virtual ~RDFTransformFactory(); Chris@439: Chris@493: bool isRDF(); // true if the file was parseable and had transforms in it Chris@493: bool isOK(); // true if the transforms could be completely constructed Chris@439: QString getErrorString() const; Chris@439: Chris@439: std::vector getTransforms(ProgressReporter *reporter); Chris@439: Chris@494: static QString writeTransformToRDF(const Transform &, QString uri); Chris@494: Chris@439: protected: Chris@439: RDFTransformFactoryImpl *m_d; Chris@439: }; Chris@439: Chris@439: #endif