X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fspl_entry.h;h=6fa3dd32cacc22887f6d71419735ee832f838c4d;hb=ead33f1db9657b3af93ec966d7bbc24218b6fba0;hp=b7fdaa2e05ee277906c2c8fd9870ee2bc5c06bfa;hpb=464801a7b386f93be65cdfc60c3807cb5365467e;p=dcpomatic.git diff --git a/src/lib/spl_entry.h b/src/lib/spl_entry.h index b7fdaa2e0..6fa3dd32c 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,14 +18,41 @@ */ + +#ifndef DCPOMATIC_SPL_ENTRY_H +#define DCPOMATIC_SPL_ENTRY_H + + +#include +#include + + +namespace xmlpp { + class Element; +} + +class Content; + + class SPLEntry { public: - SPLEntry (boost::filesystem::path p) - : dcp (p) - {} + SPLEntry (std::shared_ptr c); + + void as_xml (xmlpp::Element* e); - /* Length of black before this DCP */ - DCPTime black_before; - boost::filesystem::path dcp; + std::shared_ptr content; + std::string name; + /** Digest of this content */ + std::string digest; + /** CPL ID */ + std::string id; + boost::optional kind; + bool encrypted; + +private: + void construct (std::shared_ptr content); }; + + +#endif