]> git.sesse.net Git - kdenlive/blobdiff - src/documentvalidator.h
Add an easier way to handle simple parameter updates.
[kdenlive] / src / documentvalidator.h
index dd15c1e35a547b5679e54e4bffddf5d75bf03d4e..5708f5fcae38ec466b7fbbe538aac399ec8620c1 100644 (file)
@@ -24,6 +24,9 @@
 #include <QDomDocument>
 #include <QColor>
 
+class QScriptValue;
+
+
 class DocumentValidator
 {
 
@@ -39,7 +42,11 @@ private:
     bool upgrade(double version, const double currentVersion);
     QStringList getInfoFromEffectName(const QString oldName);
     QString colorToString(const QColor& c);
+    /** @brief Updates effects that were created using a different version of the underlaying filter than the one installed. */
     void updateEffects();
+    /** @brief Updates the parameters according to the updateRules.
+     * @see the related in README in effects/update */
+    bool updateEffectParameters(QDomNodeList parameters, const QScriptValue *updateRules, const double serviceVersion, const double effectVersion);
 };
 
 #endif