summaryrefslogtreecommitdiff
path: root/src/cpl.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-26 23:02:10 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-20 19:30:46 +0200
commitcf2dbbcddaeb0efdc81fb096aed53375692ccb67 (patch)
tree56e5a4b122377b09f9e6bd86dddcc93765905a76 /src/cpl.h
parentb3dc4d260bc839e677013b620f70be867bd97905 (diff)
Add ContentVersion class.
Diffstat (limited to 'src/cpl.h')
-rw-r--r--src/cpl.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/cpl.h b/src/cpl.h
index eebb3aaf..1132952a 100644
--- a/src/cpl.h
+++ b/src/cpl.h
@@ -104,14 +104,9 @@ public:
_content_title_text = ct;
}
- /** @return contents of the &lt;Id&gt; node within &lt;ContentVersion&gt; */
- void set_content_version_id (std::string id) {
- _content_version_id = id;
- }
-
- /** @return contents of the &lt;LabelText&gt; node within &lt;ContentVersion&gt; */
- void set_content_version_label_text (std::string text) {
- _content_version_label_text = text;
+ /** Set the contents of the ContentVersion tag */
+ void set_content_version (ContentVersion v) {
+ _content_version = v;
}
/** @return the type of the content, used by media servers
@@ -155,8 +150,8 @@ public:
_ratings = r;
}
- std::string content_version_label_text () const {
- return _content_version_label_text;
+ ContentVersion content_version () const {
+ return _content_version;
}
static std::string static_pkl_type (Standard standard);
@@ -172,8 +167,7 @@ private:
std::string _annotation_text;
std::string _content_title_text; ///< &lt;ContentTitleText&gt;
ContentKind _content_kind; ///< &lt;ContentKind&gt;
- std::string _content_version_id; ///< &lt;Id&gt; in &lt;ContentVersion&gt;
- std::string _content_version_label_text; ///< &lt;LabelText&gt; in &lt;ContentVersion&gt;
+ ContentVersion _content_version; ///< &lt;ContentVersion&gt;
std::list<boost::shared_ptr<Reel> > _reels;
std::list<Rating> _ratings;