X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fdocumentvalidator.h;h=70766ed5726be71d420ecbc22ad71c8f9a0f4e74;hb=1988023f10dd617f4363940fb4fa01f69b2e29ef;hp=2ee0a59f7ad92170977cbe11943aee77f9659311;hpb=f1e8985920d28b05e14826384379863517acb483;p=kdenlive diff --git a/src/documentvalidator.h b/src/documentvalidator.h index 2ee0a59f..70766ed5 100644 --- a/src/documentvalidator.h +++ b/src/documentvalidator.h @@ -24,20 +24,31 @@ #include #include +#include + +class QScriptValue; + class DocumentValidator { public: - DocumentValidator(QDomDocument doc); + DocumentValidator(QDomDocument doc, KUrl documentUrl); bool isProject() const; bool validate(const double currentVersion); bool isModified() const; private: QDomDocument m_doc; + KUrl m_url; bool m_modified; 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