Add patron.
[dcpomatic.git] / src / wx / content_view.h
index 0da53f636f139ff0d1838ec1793ad011bc1c821a..334e9bb68202449a8053324cf5d6b854239a9085 100644 (file)
@@ -18,6 +18,7 @@
 
 */
 
+#include "lib/content_store.h"
 #include <wx/listctrl.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/weak_ptr.hpp>
 class Content;
 class Film;
 
-class ContentView : public wxListCtrl
+class ContentView : public wxListCtrl, public ContentStore
 {
 public:
-       ContentView (wxWindow* parent, boost::weak_ptr<Film> film);
+       ContentView (wxWindow* parent);
 
        boost::shared_ptr<Content> selected () const;
        void update ();
 
+       boost::shared_ptr<Content> get (std::string digest) const;
+
 private:
        void add (boost::shared_ptr<Content> content);