]> git.sesse.net Git - nageru/blobdiff - clip_list.h
Allow playing from the playlist.
[nageru] / clip_list.h
index ddb4a4a7d862f24e2f91c91a7d078e225675df3e..851f86a1296d818005984dae117cf9ad7d13dbc2 100644 (file)
@@ -36,6 +36,7 @@ public:
                NUM_COLUMNS
        };
        enum class PlayListColumn {
+               PLAYING,
                IN,
                OUT,
                DURATION,
@@ -78,11 +79,14 @@ public:
        ClipProxy back() { return clip(size() - 1); }
        const Clip *back() const { return clip(size() - 1); }
 
+       void set_currently_playing(int index);  // -1 = none. Only makes sense for the playlist.
+
        void emit_data_changed(size_t row);
 
 private:
        std::vector<Clip> clips;
        ListDisplay display_type;
+       int currently_playing_index = -1;
 };
 
 #endif  // !defined (_CLIP_LIST_H)