]> git.sesse.net Git - kdenlive/blobdiff - src/effectslist.h
[PATCH 2/2] Ensure that all member variables have an m_ prefix
[kdenlive] / src / effectslist.h
index e7f6d28b9c24a8b8560733f859c2c3b926af953f..47ecae1eda17cda1584c8e96bacd5607b76ce7be 100644 (file)
@@ -1,5 +1,5 @@
 /***************************************************************************
-                          docclipbaseiterator.h  -  description
+                          effectslist.h  -  description
                              -------------------
     begin                : Sat Aug 10 2002
     copyright            : (C) 2002 by Jason Wood
 #define EFFECTSLIST_H
 
 #include <QList>
+#include <QDomElement>
 
-/**An List for DocClipBase objects. Use this instead of QList<DocClipBase> so as to sort lists correctly.
+/**A List for DocClipBase objects. Use this instead of QList<DocClipBase> so as to sort lists correctly.
  * Also contains the ability to set a "master clip", which can be used by a number of operations where
  * the need for one clip to act as a reference for what happens to all clips is needed.
   * @author Jason Wood
   */
 
-#include <QDomElement>
 
-class EffectsList: public QList < QDomElement > {
+class EffectsList: public QList < QDomElement >
+{
 public:
     EffectsList();
     ~EffectsList();
     /** Returns an XML version of this Effect.*/
     QDomElement getEffectByName(const QString & name) const;
     QDomElement getEffectByTag(const QString & tag, const QString & id) const;
+    /** if the list contains effect defined by tag + id, returns effect index, otherwise -1 */
+    int hasEffect(const QString & tag, const QString & id) const;
+    QStringList effectIdInfo(const int ix) const;
     QStringList effectNames();
-    QString getInfo(QString effectName);
-    QMap <QString, QString> effect(const QString & name);
-
-    static void setParameter(QDomElement effect, QString name, QString value);
+    QString getInfo(const QString & tag, const QString & id) const;
+    QString getInfoFromIndex(const int ix) const;
+    EffectsList clone() const;
+    static bool hasKeyFrames(QDomElement effect);
+    static void setParameter(QDomElement effect, const QString &name, const QString &value);
+    static QString parameter(QDomElement effect, const QString &name);
 };
 
 #endif