Mercurial > hg > svcore
comparison plugin/PluginXml.h @ 314:70a232b1f12a
* Make XmlExportable::toXml the function that is universally overridden (and
pure virtual) instead of toXmlString. Tidies up some classes, notably the
model classes, significantly. Closes #1794561.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 10:15:07 +0000 |
parents | f277a171749d |
children | 4c000e196bf1 |
comparison
equal
deleted
inserted
replaced
313:29485aa03da4 | 314:70a232b1f12a |
---|---|
29 virtual ~PluginXml(); | 29 virtual ~PluginXml(); |
30 | 30 |
31 /** | 31 /** |
32 * Export plugin settings to XML. | 32 * Export plugin settings to XML. |
33 */ | 33 */ |
34 virtual QString toXmlString(QString indent = "", | 34 virtual void toXml(QTextStream &stream, |
35 QString extraAttributes = "") const; | 35 QString indent = "", |
36 QString extraAttributes = "") const; | |
36 | 37 |
37 /** | 38 /** |
38 * Set the parameters and program of a plugin from a set of XML | 39 * Set the parameters and program of a plugin from a set of XML |
39 * attributes. This is a partial inverse of toXmlString. | 40 * attributes. This is a partial inverse of toXml. |
40 */ | 41 */ |
41 virtual void setParameters(const QXmlAttributes &); | 42 virtual void setParameters(const QXmlAttributes &); |
42 | 43 |
43 /** | 44 /** |
44 * Set the parameters and program of a plugin from an XML plugin | 45 * Set the parameters and program of a plugin from an XML plugin |
45 * element as returned by toXmlString. This is a partial inverse | 46 * element as returned by toXml. This is a partial inverse of |
46 * of toXmlString. | 47 * toXml. |
47 */ | 48 */ |
48 virtual void setParametersFromXml(QString xml); | 49 virtual void setParametersFromXml(QString xml); |
49 | 50 |
50 static QString encodeConfigurationChars(QString text); | 51 static QString encodeConfigurationChars(QString text); |
51 static QString decodeConfigurationChars(QString text); | 52 static QString decodeConfigurationChars(QString text); |