X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=clip_list.h;h=4da531fed495c04b84a0655995f57d2c0d17281a;hb=60232cc3b83499d67ade40cbd403e04747b64795;hp=66449826cb3cdfd1a3e0743d3350b0c7ab5419b2;hpb=c6dcfc8b7f25d31442675040c202d7a82c5d8f35;p=nageru diff --git a/clip_list.h b/clip_list.h index 6644982..4da531f 100644 --- a/clip_list.h +++ b/clip_list.h @@ -6,6 +6,7 @@ #include #include +#include #include #include @@ -131,6 +132,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 &progress); + ClipListProto serialize() const; void emit_data_changed(size_t row) override; @@ -142,6 +145,7 @@ private: std::vector clips; int currently_playing_index = -1; double play_progress = 0.0; + std::map current_progress; }; #endif // !defined (_CLIP_LIST_H)