From baf84885a777378b9ff5c05ef24d6361560822a6 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 28 Jun 2017 10:09:53 +0100 Subject: Fixes for silence in projects, various cleanups. --- src/lib/empty.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 src/lib/empty.h (limited to 'src/lib/empty.h') diff --git a/src/lib/empty.h b/src/lib/empty.h new file mode 100644 index 000000000..3c676deeb --- /dev/null +++ b/src/lib/empty.h @@ -0,0 +1,49 @@ +/* + Copyright (C) 2017 Carl Hetherington + + This file is part of DCP-o-matic. + + DCP-o-matic is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + DCP-o-matic is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with DCP-o-matic. If not, see . + +*/ + +#include "playlist.h" +#include "dcpomatic_time.h" +#include "content_part.h" +#include + +struct empty_test1; + +class Empty +{ +public: + Empty () {} + Empty (boost::shared_ptr playlist, boost::function (Content *)> part); + + DCPTime position () const { + return _position; + } + + DCPTimePeriod period_at_position () const; + + bool done () const; + + void set_position (DCPTime amount); + +private: + friend struct ::empty_test1; + + std::list _periods; + DCPTime _position; +}; -- cgit v1.2.3