X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fshuffler.h;h=2b37b70a11149a7d84394134bb8583d273451aec;hp=3eed3e4f005a1db2bfb92d80d91a07877a127c4d;hb=8963f0007af1a312017b9627c18b82ec2a577591;hpb=24ba224ab4871e453df50fde94b5b32649a3d47b diff --git a/src/lib/shuffler.h b/src/lib/shuffler.h index 3eed3e4f0..2b37b70a1 100644 --- a/src/lib/shuffler.h +++ b/src/lib/shuffler.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2018 Carl Hetherington + Copyright (C) 2018-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,24 +18,33 @@ */ + #include "types.h" #include "content_video.h" #include + +struct shuffler_test5; + + class Piece; + class Shuffler { public: void clear (); void flush (); - void video (boost::weak_ptr, ContentVideo video); + void video (std::weak_ptr, ContentVideo video); - boost::signals2::signal, ContentVideo)> Video; + boost::signals2::signal, ContentVideo)> Video; - typedef std::pair, ContentVideo> Store; + typedef std::pair, ContentVideo> Store; private: + friend struct ::shuffler_test5; + std::list _store; boost::optional _last; + static int const _max_size; };