X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fspl_entry.h;h=740082eaf0f9a3d6e0d56bcc222024fe1ec6b8d1;hp=033cab6a0a2439b95e3f6cfd7f57c7cafbe87939;hb=6ef1fc5f40567650ca9ef2b7644e4fdd97640ae6;hpb=73461f719bfb3ee91644b84f4bffd91df0e6559f diff --git a/src/lib/spl_entry.h b/src/lib/spl_entry.h index 033cab6a0..740082eaf 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-2020 Carl Hetherington This file is part of DCP-o-matic. @@ -18,20 +18,37 @@ */ -namespace dcp { - class CPL; +#ifndef DCPOMATIC_SPL_ENTRY_H +#define DCPOMATIC_SPL_ENTRY_H + +#include +#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 (boost::shared_ptr content); + + void as_xml (xmlpp::Element* e); + + boost::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 (boost::shared_ptr content); }; + +#endif