X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fshuffler.h;h=4d1404560f2dc09ce597273a15b825d3b9137042;hb=HEAD;hp=3eed3e4f005a1db2bfb92d80d91a07877a127c4d;hpb=24ba224ab4871e453df50fde94b5b32649a3d47b;p=dcpomatic.git diff --git a/src/lib/shuffler.h b/src/lib/shuffler.h index 3eed3e4f0..4d1404560 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,39 @@ */ -#include "types.h" + +#ifndef DCPOMATIC_SHUFFLER_H +#define DCPOMATIC_SHUFFLER_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; }; + + +#endif +