summaryrefslogtreecommitdiff
path: root/src/lib/film.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-03-21 00:10:08 +0000
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:42 +0100
commit14b8b29e6660f5a7fb21135fb5f90b4c1ce51a4b (patch)
treeed06e1b877a40f57b8d4d43c1db490e6765fba6a /src/lib/film.h
parentd17044d0da61d6077a1f20170ba76ab765a44e50 (diff)
Basics of metadata dialog - ratings.
Diffstat (limited to 'src/lib/film.h')
-rw-r--r--src/lib/film.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/lib/film.h b/src/lib/film.h
index d61612e47..e5d29145c 100644
--- a/src/lib/film.h
+++ b/src/lib/film.h
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2012-2018 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net>
This file is part of DCP-o-matic.
@@ -201,7 +201,8 @@ public:
REEL_LENGTH,
UPLOAD_AFTER_MAKE_DCP,
REENCODE_J2K,
- MARKERS
+ MARKERS,
+ RATINGS
};
@@ -302,6 +303,10 @@ public:
return _markers;
}
+ std::vector<dcp::Rating> ratings () const {
+ return _ratings;
+ }
+
/* SET */
void set_directory (boost::filesystem::path);
@@ -334,6 +339,7 @@ public:
void set_reencode_j2k (bool);
void set_marker (dcp::Marker type, DCPTime time);
void unset_marker (dcp::Marker type);
+ void set_ratings (std::vector<dcp::Rating> r);
/** Emitted when some property has of the Film is about to change or has changed */
mutable boost::signals2::signal<void (ChangeType, Property)> Change;
@@ -414,6 +420,7 @@ private:
/** true if the user has ever explicitly set the video frame rate of this film */
bool _user_explicit_video_frame_rate;
std::map<dcp::Marker, DCPTime> _markers;
+ std::vector<dcp::Rating> _ratings;
int _state_version;