PluginXml.h

Go to the documentation of this file.
00001 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*-  vi:set ts=8 sts=4 sw=4: */
00002 
00003 /*
00004     Sonic Visualiser
00005     An audio file viewer and annotation editor.
00006     Centre for Digital Music, Queen Mary, University of London.
00007     This file copyright 2006 Chris Cannam.
00008     
00009     This program is free software; you can redistribute it and/or
00010     modify it under the terms of the GNU General Public License as
00011     published by the Free Software Foundation; either version 2 of the
00012     License, or (at your option) any later version.  See the file
00013     COPYING included with this distribution for more information.
00014 */
00015 
00016 #ifndef _PLUGIN_XML_H_
00017 #define _PLUGIN_XML_H_
00018 
00019 #include "base/XmlExportable.h"
00020 
00021 namespace Vamp { class PluginBase; }
00022 
00023 class QXmlAttributes;
00024 
00025 class PluginXml : public XmlExportable
00026 {
00027 public:
00028     PluginXml(Vamp::PluginBase *plugin);
00029     virtual ~PluginXml();
00030 
00034     virtual void toXml(QTextStream &stream,
00035                        QString indent = "",
00036                        QString extraAttributes = "") const;
00037 
00042     virtual void setParameters(const QXmlAttributes &);
00043 
00049     virtual void setParametersFromXml(QString xml);
00050 
00051     static QString encodeConfigurationChars(QString text);
00052     static QString decodeConfigurationChars(QString text);
00053 
00054 protected:
00055     QString stripInvalidParameterNameCharacters(QString) const;
00056 
00057     Vamp::PluginBase *m_plugin;
00058 };
00059 
00060 #endif

Generated on Wed Feb 20 15:45:27 2008 for SonicVisualiser by  doxygen 1.5.1