summaryrefslogtreecommitdiff
path: root/src/interop_subtitle_asset.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-06-04 16:48:08 +0100
committerCarl Hetherington <cth@carlh.net>2015-06-05 14:34:43 +0100
commit6c55e8d2c3b0129a19fc40dca344219021ad12ef (patch)
treecf9c3244ed55fb1fa8db89ca87923f3b7a6d35a1 /src/interop_subtitle_asset.h
parent2105caa32a12236d5b70a0cf8b9ac62fcf7f574e (diff)
Rename some stuff Content -> Asset.
Diffstat (limited to 'src/interop_subtitle_asset.h')
-rw-r--r--src/interop_subtitle_asset.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/interop_subtitle_asset.h b/src/interop_subtitle_asset.h
new file mode 100644
index 00000000..586bb67c
--- /dev/null
+++ b/src/interop_subtitle_asset.h
@@ -0,0 +1,50 @@
+/*
+ Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+*/
+
+#include "subtitle_asset.h"
+#include <boost/filesystem.hpp>
+
+namespace dcp {
+
+class InteropLoadFontNode;
+
+class InteropSubtitleAsset : public SubtitleAsset
+{
+public:
+ InteropSubtitleAsset (std::string movie_title, std::string language);
+ InteropSubtitleAsset (boost::filesystem::path file);
+
+ bool equals (
+ boost::shared_ptr<const Asset>,
+ EqualityOptions,
+ NoteHandler note
+ ) const;
+
+ std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
+
+ void add_font (std::string id, std::string uri);
+
+ Glib::ustring xml_as_string () const;
+
+private:
+ std::string _movie_title;
+ std::list<boost::shared_ptr<InteropLoadFontNode> > _load_font_nodes;
+};
+
+}