#include <QAbstractTableModel>
#include <stdint.h>
+#include <map>
#include <string>
#include <vector>
class DataChangedReceiver {
public:
+ virtual ~DataChangedReceiver() {}
virtual void emit_data_changed(size_t row) = 0;
};
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;
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)