summaryrefslogtreecommitdiff
path: root/src/dcp.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-08-30 17:27:22 +0100
committerCarl Hetherington <cth@carlh.net>2013-08-30 17:27:22 +0100
commitff38c8737a36e5aced5f2dede5bccd2832fc446a (patch)
tree652a0548b76cfff2f4e7438c477cd4ac18f7a089 /src/dcp.h
parentd0e025d26cab0eecfea1528343638dac69f363cd (diff)
Partial.rework-again
Diffstat (limited to 'src/dcp.h')
-rw-r--r--src/dcp.h33
1 files changed, 5 insertions, 28 deletions
diff --git a/src/dcp.h b/src/dcp.h
index 8086f4de..bae8a823 100644
--- a/src/dcp.h
+++ b/src/dcp.h
@@ -91,26 +91,6 @@ public:
*/
bool equals (DCP const & other, EqualityOptions options, boost::function<void (NoteType, std::string)> note) const;
- /** Add a CPL to this DCP.
- * @param cpl CPL to add.
- */
- void add_cpl (boost::shared_ptr<CPL> cpl);
-
- /** @return The list of CPLs in this DCP */
- std::list<boost::shared_ptr<CPL> > cpls () const {
- return _cpls;
- }
-
- /** Add another DCP as a source of assets for this DCP. This should be called before
- * ::read() on the DCP that needs the extra assets. For example
- *
- * DCP original_version ("my_dcp_OV");
- * DCP supplemental ("my_dcp_VF");
- * supplemental.add_assets_from (original_version);
- * supplemental.read ();
- */
- void add_assets_from (libdcp::DCP const &);
-
bool encrypted () const;
void add_kdm (KDM const &);
@@ -120,6 +100,10 @@ public:
*/
boost::signals2::signal<void (float)> Progress;
+ std::list<boost::shared_ptr<CPL> > cpls;
+ /** Assets that are written to this DCP (and not just referenced) */
+ std::list<boost::shared_ptr<const Asset> > assets;
+
private:
/** Write the PKL file.
@@ -136,9 +120,6 @@ private:
*/
void write_assetmap (std::string pkl_uuid, int pkl_length, bool, XMLMetadata const &) const;
- /** @return Assets in all the CPLs in this DCP */
- std::list<boost::shared_ptr<const Asset> > assets () const;
-
struct Files {
std::list<std::string> cpls;
std::string pkl;
@@ -147,12 +128,8 @@ private:
/** the directory that we are writing to */
std::string _directory;
- /** our CPLs */
- std::list<boost::shared_ptr<CPL> > _cpls;
-
- std::list<PathAssetMap> _asset_maps;
};
-
+
}
#endif