summaryrefslogtreecommitdiff
path: root/src/lib/screen.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-04-27 01:50:00 +0100
committerCarl Hetherington <cth@carlh.net>2016-04-29 22:51:18 +0100
commit068291b7233b01573863d7fb5eda2a82883c748d (patch)
tree1bca551006315fd234b2408e1be47fcd2970916d /src/lib/screen.cc
parent1863fff137bda1c0d3702a845cc79afbfc8c74c4 (diff)
Add free-text notes field to cinemas and screens.
Diffstat (limited to 'src/lib/screen.cc')
-rw-r--r--src/lib/screen.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib/screen.cc b/src/lib/screen.cc
index 159c4326b..96a59236d 100644
--- a/src/lib/screen.cc
+++ b/src/lib/screen.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013-2015 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2016 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
@@ -22,7 +22,8 @@
#include <boost/foreach.hpp>
Screen::Screen (cxml::ConstNodePtr node)
- : name (node->string_child ("Name"))
+ : name (node->string_child("Name"))
+ , notes (node->optional_string_child("Notes").get_value_or (""))
{
if (node->optional_string_child ("Certificate")) {
recipient = dcp::Certificate (node->string_child ("Certificate"));
@@ -43,6 +44,8 @@ Screen::as_xml (xmlpp::Element* parent) const
parent->add_child("Recipient")->add_child_text (recipient->certificate (true));
}
+ parent->add_child("Notes")->add_child_text (notes);
+
BOOST_FOREACH (dcp::Certificate const & i, trusted_devices) {
parent->add_child("TrustedDevice")->add_child_text (i.certificate (true));
}