FIXME: Remove all use of add_child() from xmlpp.
[dcpomatic.git] / src / lib / playlist.h
index 2d68d3f393bd7cf00b804215364170a6b99c433c..7b9bd19fac914ed644e2251a29ccadf7f6e37539 100644 (file)
 class Film;
 
 
-struct ContentSorter
-{
-       bool operator() (std::shared_ptr<Content> a, std::shared_ptr<Content> b);
-};
-
-
 /** @class Playlist
  *  @brief A set of Content objects with knowledge of how they should be arranged into
  *  a DCP.
@@ -49,13 +43,14 @@ struct ContentSorter
 class Playlist
 {
 public:
-       Playlist ();
+       Playlist() = default;
+
        ~Playlist ();
 
        Playlist (Playlist const&) = delete;
        Playlist& operator= (Playlist const&) = delete;
 
-       void as_xml (xmlpp::Node *, bool with_content_paths);
+       void as_xml(xmlpp::Element*, bool with_content_paths);
        void set_from_xml (std::shared_ptr<const Film> film, cxml::ConstNodePtr node, int version, std::list<std::string>& notes);
 
        void add (std::shared_ptr<const Film> film, std::shared_ptr<Content>);