diff base/Model.h @ 3:581f67f370f3

* Beginnings of session save code * Add spline curve mode to time value layer
author Chris Cannam
date Thu, 12 Jan 2006 17:19:08 +0000
parents d86891498eef
children a6ef94ecbe74
line wrap: on
line diff
--- a/base/Model.h	Thu Jan 12 13:45:27 2006 +0000
+++ b/base/Model.h	Thu Jan 12 17:19:08 2006 +0000
@@ -13,6 +13,8 @@
 #include <vector>
 #include <QObject>
 
+#include "XmlExportable.h"
+
 typedef std::vector<float> SampleBlock;
 
 /** 
@@ -20,7 +22,8 @@
  * of data on a time scale based on an audio frame rate.
  */
 
-class Model : virtual public QObject
+class Model : virtual public QObject,
+	      public XmlExportable
 {
     Q_OBJECT
 
@@ -82,6 +85,9 @@
     }
     static const int COMPLETION_UNKNOWN;
 
+    virtual QString toXmlString(QString indent = "",
+				QString extraAttributes = "") const;
+
 signals:
     /**
      * Emitted when a model has been edited (or more data retrieved