summaryrefslogtreecommitdiff
path: root/src/lib/cinema.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-24 01:49:09 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-24 19:12:36 +0200
commit401da185ca664fc8d819fc842ffc08e14d4f6486 (patch)
tree5c2ea2d1a7b1b537c04e7e9b3d32c8a44080f168 /src/lib/cinema.h
parentdbcd1675732d59f6337f7f60d0a39aaa6a1aa3a6 (diff)
Restore time zone to Cinema and improve UI to use it (#2473).
Diffstat (limited to 'src/lib/cinema.h')
-rw-r--r--src/lib/cinema.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/cinema.h b/src/lib/cinema.h
index 7008659d7..05f6fb7fc 100644
--- a/src/lib/cinema.h
+++ b/src/lib/cinema.h
@@ -23,6 +23,7 @@
*/
+#include <dcp/utc_offset.h>
#include <libcxml/cxml.h>
#include <memory>
@@ -44,10 +45,11 @@ namespace dcpomatic {
class Cinema : public std::enable_shared_from_this<Cinema>
{
public:
- Cinema(std::string const & name_, std::vector<std::string> const & e, std::string notes_)
+ Cinema(std::string const & name_, std::vector<std::string> const & e, std::string notes_, dcp::UTCOffset utc_offset_)
: name (name_)
, emails (e)
, notes (notes_)
+ , utc_offset(std::move(utc_offset_))
{}
explicit Cinema (cxml::ConstNodePtr);
@@ -62,6 +64,7 @@ public:
std::string name;
std::vector<std::string> emails;
std::string notes;
+ dcp::UTCOffset utc_offset;
std::vector<std::shared_ptr<dcpomatic::Screen>> screens() const {
return _screens;