Chris@49: /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ Chris@3: Chris@3: /* Chris@52: Sonic Visualiser Chris@52: An audio file viewer and annotation editor. Chris@52: Centre for Digital Music, Queen Mary, University of London. Chris@52: This file copyright 2006 Chris Cannam. Chris@3: Chris@52: This program is free software; you can redistribute it and/or Chris@52: modify it under the terms of the GNU General Public License as Chris@52: published by the Free Software Foundation; either version 2 of the Chris@52: License, or (at your option) any later version. See the file Chris@52: COPYING included with this distribution for more information. Chris@3: */ Chris@3: Chris@3: #ifndef _XML_EXPORTABLE_H_ Chris@3: #define _XML_EXPORTABLE_H_ Chris@3: Chris@3: #include Chris@3: #include Chris@3: Chris@3: class XmlExportable Chris@3: { Chris@3: public: Chris@27: virtual ~XmlExportable() { } Chris@27: Chris@3: virtual QString toXmlString(QString indent = "", Chris@3: QString extraAttributes = "") const = 0; Chris@3: Chris@3: static QString encodeEntities(QString); Chris@3: Chris@3: static QString encodeColour(QColor); Chris@4: Chris@4: static int getObjectExportId(const void *); // not thread-safe Chris@3: }; Chris@3: Chris@3: #endif