X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilm.h;h=d7143556651520d637e8aedbbab11d3dba2396c9;hb=117f6bd199479fdaeff665acbea109e967500308;hp=e2e88e2c9fe294569c40b165e88f51e7e68a68dd;hpb=29f773b4871511a686054bfcd4d769c3707907f6;p=dcpomatic.git diff --git a/src/lib/film.h b/src/lib/film.h index e2e88e2c9..d71435566 100644 --- a/src/lib/film.h +++ b/src/lib/film.h @@ -36,6 +36,7 @@ #include "film_property.h" #include "frame_rate_change.h" #include "named_channel.h" +#include "remembered_asset.h" #include "resolution.h" #include "signaller.h" #include "territory_type.h" @@ -118,11 +119,10 @@ public: std::shared_ptr info_file_handle (dcpomatic::DCPTimePeriod period, bool read) const; boost::filesystem::path j2c_path (int, Frame, Eyes, bool) const; - boost::filesystem::path internal_video_asset_dir () const; - boost::filesystem::path internal_video_asset_filename (dcpomatic::DCPTimePeriod p) const; boost::filesystem::path audio_analysis_path (std::shared_ptr) const; boost::filesystem::path subtitle_analysis_path (std::shared_ptr) const; + boost::filesystem::path assets_path() const; void send_dcp_to_tms (); @@ -136,7 +136,7 @@ public: boost::filesystem::path file (boost::filesystem::path f) const; boost::filesystem::path dir (boost::filesystem::path d, bool create = true) const; - void use_template (std::string name); + void use_template(boost::optional name); std::list read_metadata (boost::optional path = boost::optional ()); void write_metadata (); void write_metadata (boost::filesystem::path path) const; @@ -162,7 +162,7 @@ public: std::list closed_caption_tracks () const; uint64_t required_disk_space () const; - bool should_be_enough_disk_space (double& required, double& available, bool& can_hard_link) const; + bool should_be_enough_disk_space(double& required, double& available) const; bool has_sign_language_video_channel () const; @@ -450,6 +450,10 @@ public: boost::optional ui_state(std::string key) const; void read_ui_state(); + std::vector read_remembered_assets() const; + void write_remembered_assets(std::vector const& assets) const; + std::string video_identifier() const; + /** Emitted when some property has of the Film is about to change or has changed */ mutable boost::signals2::signal Change; @@ -483,7 +487,6 @@ private: void signal_change (ChangeType, FilmProperty); void signal_change (ChangeType, int); - std::string video_identifier () const; void playlist_change (ChangeType); void playlist_order_changed (); void playlist_content_change (ChangeType type, std::weak_ptr, int, bool frequent);