Chris@500: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@500: Chris@500: /* Chris@500: Sonic Visualiser Chris@500: An audio file viewer and annotation editor. Chris@500: Centre for Digital Music, Queen Mary, University of London. Chris@500: This file copyright 2008 QMUL. Chris@500: Chris@500: This program is free software; you can redistribute it and/or Chris@500: modify it under the terms of the GNU General Public License as Chris@500: published by the Free Software Foundation; either version 2 of the Chris@500: License, or (at your option) any later version. See the file Chris@500: COPYING included with this distribution for more information. Chris@500: */ Chris@500: Chris@1581: #ifndef SV_RDF_EXPORTER_H Chris@1581: #define SV_RDF_EXPORTER_H Chris@500: Chris@500: #include Chris@500: Chris@500: class Model; Chris@500: class RDFFeatureWriter; Chris@500: Chris@500: class RDFExporter Chris@500: { Chris@500: public: Chris@500: /** Chris@500: * Return the file extensions that we can write, in a format Chris@500: * suitable for use with QFileDialog. For example, "*.ttl *.n3". Chris@500: */ Chris@500: static QString getSupportedExtensions(); Chris@500: Chris@500: RDFExporter(QString path, Model *model); Chris@500: virtual ~RDFExporter(); Chris@500: Chris@500: static bool canExportModel(Model *); Chris@500: Chris@500: virtual bool isOK() const; Chris@500: virtual QString getError() const; Chris@500: Chris@500: virtual void write(); Chris@500: Chris@500: protected: Chris@500: QString m_path; Chris@500: Model *m_model; Chris@500: RDFFeatureWriter *m_fw; Chris@500: }; Chris@500: Chris@500: #endif