X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcinema.h;h=aec4c83eca5ac25346a9754d62f69a61700565e6;hb=6cd300ca8513b360990360d2999bec3b8988fd97;hp=74357f65d687e0261ded537e94b3b4f95afcfdb2;hpb=8d58a7c5f4320ad5c111e336c45e44d6b51ab509;p=dcpomatic.git diff --git a/src/lib/cinema.h b/src/lib/cinema.h index 74357f65d..aec4c83ec 100644 --- a/src/lib/cinema.h +++ b/src/lib/cinema.h @@ -18,50 +18,30 @@ */ /** @file src/lib/cinema.h - * @brief Screen and Cinema classes. + * @brief Cinema class. */ -#include -#include #include +#include -class Cinema; - -/** @class Screen - * @brief A representation of a Screen for KDM generation. - * - * This is the name of the screen and the certificate of its - * server. - */ -class Screen -{ -public: - Screen (std::string const & n, boost::shared_ptr cert) - : name (n) - , certificate (cert) - {} - - Screen (cxml::ConstNodePtr); +namespace xmlpp { + class Element; +} - void as_xml (xmlpp::Element *) const; - - boost::shared_ptr cinema; - std::string name; - boost::shared_ptr certificate; -}; +class Screen; /** @class Cinema * @brief A description of a Cinema for KDM generation. * - * This is a cinema name, contact email address and a list of + * This is a cinema name, contact email addresses and a list of * Screen objects. */ class Cinema : public boost::enable_shared_from_this { public: - Cinema (std::string const & n, std::string const & e) + Cinema (std::string const & n, std::list const & e) : name (n) - , email (e) + , emails (e) {} Cinema (cxml::ConstNodePtr); @@ -72,13 +52,13 @@ public: void add_screen (boost::shared_ptr); void remove_screen (boost::shared_ptr); - + std::string name; - std::string email; + std::list emails; std::list > screens () const { return _screens; } -private: +private: std::list > _screens; };