X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdkdm_wrapper.h;h=0c2992bc41f6f1d413b8eefce6a90b3a1a3a80f6;hb=fc1441eeaa3c0805c37809685ea7a3f5ca173666;hp=261cdc76751e112b511b49e8b390d8cb21aaa858;hpb=dd9be86db6cde0afa5da0d1d1ac43b42e05dca26;p=dcpomatic.git diff --git a/src/lib/dkdm_wrapper.h b/src/lib/dkdm_wrapper.h index 261cdc767..0c2992bc4 100644 --- a/src/lib/dkdm_wrapper.h +++ b/src/lib/dkdm_wrapper.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2017 Carl Hetherington + Copyright (C) 2017-2021 Carl Hetherington This file is part of DCP-o-matic. @@ -18,6 +18,7 @@ */ + #include #include #include @@ -27,8 +28,10 @@ namespace xmlpp { class Element; } + class DKDMGroup; + class DKDMBase : public std::enable_shared_from_this { public: @@ -50,6 +53,7 @@ private: std::shared_ptr _parent; }; + class DKDM : public DKDMBase { public: @@ -68,6 +72,7 @@ private: dcp::EncryptedKDM _dkdm; }; + class DKDMGroup : public DKDMBase { public: @@ -81,14 +86,14 @@ public: void as_xml (xmlpp::Element *) const; - std::list > children () const { + std::list> children () const { return _children; } - void add (std::shared_ptr child, std::shared_ptr previous = std::shared_ptr ()); + void add (std::shared_ptr child, std::shared_ptr previous = std::shared_ptr()); void remove (std::shared_ptr child); private: std::string _name; - std::list > _children; + std::list> _children; };