]> git.sesse.net Git - nageru/blobdiff - clip_list.h
Allow symlinked frame files. Useful for testing.
[nageru] / clip_list.h
index 66449826cb3cdfd1a3e0743d3350b0c7ab5419b2..8dead831106e74783704ad5fab8ea6b9eb9eb675 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <QAbstractTableModel>
 #include <stdint.h>
+#include <map>
 #include <string>
 #include <vector>
 
@@ -18,6 +19,7 @@ struct Clip {
 
 class DataChangedReceiver {
 public:
+       virtual ~DataChangedReceiver() {}
        virtual void emit_data_changed(size_t row) = 0;
 };
 
@@ -131,6 +133,8 @@ public:
        void set_currently_playing(int index, double progress);  // -1 = none.
        int get_currently_playing() const { return currently_playing_index; }
 
+       void set_progress(const std::map<size_t, double> &progress);
+
        ClipListProto serialize() const;
 
        void emit_data_changed(size_t row) override;
@@ -142,6 +146,7 @@ private:
        std::vector<Clip> clips;
        int currently_playing_index = -1;
        double play_progress = 0.0;
+       std::map<size_t, double> current_progress;
 };
 
 #endif  // !defined (_CLIP_LIST_H)