summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-22 19:42:39 +0000
commit1c724e363a644abaee7efb39d6091e7b30de0fb6 (patch)
tree413e28533849835f8496c8c972bd26e1d27aefbe /src/subtitle_asset.h
parent1e9f115b7cda68ccba99f58d194a2c0eb83e7e23 (diff)
Various work.
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index cff65b2b..cbd3ad58 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -21,7 +21,7 @@
#define LIBDCP_SUBTITLE_ASSET_H
#include <libcxml/cxml.h>
-#include "content_asset.h"
+#include "content.h"
#include "dcp_time.h"
namespace dcp
@@ -133,14 +133,14 @@ private:
bool operator== (Subtitle const & a, Subtitle const & b);
std::ostream& operator<< (std::ostream& s, Subtitle const & sub);
-class SubtitleAsset : public ContentAsset
+class SubtitleAsset : public Content
{
public:
- SubtitleAsset (std::string directory, std::string xml_file);
+ SubtitleAsset (boost::filesystem::path file);
SubtitleAsset (std::string directory, std::string movie_title, std::string language);
void write_to_cpl (xmlpp::Element *) const;
- virtual bool equals (boost::shared_ptr<const ContentAsset>, EqualityOptions, boost::function<void (NoteType, std::string)> note) const {
+ virtual bool equals (boost::shared_ptr<const Content>, EqualityOptions, boost::function<void (NoteType, std::string)> note) const {
/* XXX */
note (ERROR, "subtitle assets not compared yet");
return true;
@@ -157,7 +157,6 @@ public:
void add (boost::shared_ptr<Subtitle>);
- void read_xml (std::string);
void write_xml () const;
Glib::ustring xml_as_string () const;