]> git.sesse.net Git - kdenlive/blobdiff - src/projectitem.h
[PATCH 2/2] Ensure that all member variables have an m_ prefix
[kdenlive] / src / projectitem.h
index c39fa7376a616499c74c54238e4a2ea0f16c0101..2087ee17a796393eae985fb4d6c776c3c86450bd 100644 (file)
 #include "definitions.h"
 
 class DocClipBase;
-class ProjectItem : public QTreeWidgetItem {
+
+/** \brief Represents a clip or a folder in the projecttree
+ *
+ * This class represents a clip or folder in the projecttree and in the document(?) */
+class ProjectItem : public QTreeWidgetItem
+{
 public:
     /** Create folder item */
     ProjectItem(QTreeWidget * parent, const QStringList & strings, const QString &clipId);
@@ -42,11 +47,13 @@ public:
     int numReferences() const;
 
     void setProperties(const QMap < QString, QString > &attributes, const QMap < QString, QString > &metadata);
+
+    /** \brief The id of the clip or folder.
+     *
+     * The clipId is used both to identify clips and folders (groups) */
     const QString &clipId() const;
     QStringList names() const;
     bool isGroup() const;
-    const QString groupName() const;
-    void setGroupName(const QString name);
     const KUrl clipUrl() const;
     int clipMaxDuration() const;
     CLIPTYPE clipType() const;
@@ -54,9 +61,13 @@ public:
     DocClipBase *referencedClip();
     void setProperties(QMap <QString, QString> props);
     void setProperty(const QString &key, const QString &value);
+    void clearProperty(const QString &key);
+    const QString groupName() const;
+    void setGroupName(const QString name);
+    QString getClipHash() const;
 
 private:
-    QString m_groupName;
+    QString m_groupname;
     CLIPTYPE m_clipType;
     QString m_clipId;
     void slotSetToolTip();