X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcontent.h;h=7c02ee0e39effc323216cfc28d29da07ea63d236;hb=fcba100f0dfd1d4214291abb76f22ebd696c24d4;hp=567cd5c1f78c68901ef13cdbfcf6ff49ed81fc34;hpb=e0a70cd5cfb11fc2de167f3146acdd437a6faa82;p=dcpomatic.git diff --git a/src/lib/content.h b/src/lib/content.h index 567cd5c1f..7c02ee0e3 100644 --- a/src/lib/content.h +++ b/src/lib/content.h @@ -27,10 +27,11 @@ #ifndef DCPOMATIC_CONTENT_H #define DCPOMATIC_CONTENT_H -#include "types.h" -#include "signaller.h" -#include "dcpomatic_time.h" + #include "change_signaller.h" +#include "dcpomatic_time.h" +#include "signaller.h" +#include "types.h" #include "user_property.h" #include #include @@ -191,7 +192,11 @@ public: std::string calculate_digest () const; - /* CHANGE_TYPE_PENDING and CHANGE_TYPE_CANCELLED may be emitted from any thread; CHANGE_TYPE_DONE always from GUI thread */ + virtual bool can_be_played () const { + return true; + } + + /* ChangeType::PENDING and ChangeType::CANCELLED may be emitted from any thread; ChangeType::DONE always from GUI thread */ boost::signals2::signal, int, bool)> Change; std::shared_ptr video; @@ -202,6 +207,9 @@ public: std::shared_ptr only_text () const; std::shared_ptr text_of_original_type (TextType type) const; + /** @return true if this content has changed since it was last examined */ + bool changed () const; + protected: virtual void add_properties (std::shared_ptr film, std::list &) const;