X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fspl_entry.h;h=b2977c8aa2d2b7ca6deea67c49ac97ba9825aaaf;hb=969906f2dd6c5c144781861f53e2a0f6baefb9a3;hp=cc28d92bda2adf21236f54ef84acfb31e291a302;hpb=71589ebfea5a7adc49f013d405b3158ea612222a;p=dcpomatic.git diff --git a/src/lib/spl_entry.h b/src/lib/spl_entry.h index cc28d92bd..b2977c8aa 100644 --- a/src/lib/spl_entry.h +++ b/src/lib/spl_entry.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,22 +18,41 @@ */ -#include "dcpomatic_time.h" -namespace dcp { - class CPL; +#ifndef DCPOMATIC_SPL_ENTRY_H +#define DCPOMATIC_SPL_ENTRY_H + + +#include +#include + + +namespace xmlpp { + class Element; } +class Content; + + class SPLEntry { public: - SPLEntry (boost::shared_ptr cpl_, boost::filesystem::path directory_) - : cpl (cpl_) - , directory (directory_) - {} - - /* Length of black before this DCP */ - DCPTime black_before; - boost::shared_ptr cpl; - boost::filesystem::path directory; + SPLEntry (std::shared_ptr c); + + void as_xml (xmlpp::Element* e); + + std::shared_ptr content; + std::string name; + /** Digest of this content */ + std::string digest; + /** CPL ID */ + std::string id; + dcp::ContentKind kind; + bool encrypted; + +private: + void construct (std::shared_ptr content); }; + + +#endif