From 2d5c6f23650ae3a912badc8b059c83d40c61a0fa Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 30 Apr 2020 01:06:13 +0200 Subject: Derive Screen from a new class KDMRecipient. --- src/lib/kdm_recipient.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/lib/kdm_recipient.h (limited to 'src/lib/kdm_recipient.h') diff --git a/src/lib/kdm_recipient.h b/src/lib/kdm_recipient.h new file mode 100644 index 000000000..ee4e8c39c --- /dev/null +++ b/src/lib/kdm_recipient.h @@ -0,0 +1,43 @@ +/* + Copyright (C) 2020 Carl Hetherington + + This file is part of DCP-o-matic. + + DCP-o-matic 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. + + DCP-o-matic 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 DCP-o-matic. If not, see . + +*/ + +#include +#include +#include +#include +#include + +class KDMRecipient +{ +public: + KDMRecipient (std::string const& name_, std::string const& notes_, boost::optional recipient_) + : name (name_) + , notes (notes_) + , recipient (recipient_) + {} + + explicit KDMRecipient (cxml::ConstNodePtr); + + virtual void as_xml (xmlpp::Element *) const; + + std::string name; + std::string notes; + boost::optional recipient; +}; -- cgit v1.2.3 From 2d8599e4277f1a357ed0f7101777ca9b18e3876a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 6 May 2020 23:58:51 +0200 Subject: Missing header guard. --- src/lib/kdm_recipient.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/lib/kdm_recipient.h') diff --git a/src/lib/kdm_recipient.h b/src/lib/kdm_recipient.h index ee4e8c39c..c0533daeb 100644 --- a/src/lib/kdm_recipient.h +++ b/src/lib/kdm_recipient.h @@ -18,6 +18,9 @@ */ +#ifndef DCPOMATIC_KDM_RECIPIENT_H +#define DCPOMATIC_KDM_RECIPIENT_H + #include #include #include @@ -41,3 +44,5 @@ public: std::string notes; boost::optional recipient; }; + +#endif -- cgit v1.2.3