#include "types.h"
#include "util.h"
#include <dcp/encrypted_kdm.h>
+#include <dcp/file.h>
#include <dcp/key.h>
#include <dcp/language_tag.h>
#include <dcp/rating.h>
{
public:
InfoFileHandle (boost::mutex& mutex, boost::filesystem::path file, bool read);
- ~InfoFileHandle ();
- FILE* get () const {
- return _handle;
- }
-
- boost::filesystem::path file () const {
+ dcp::File& get () {
return _file;
}
friend class Film;
boost::mutex::scoped_lock _lock;
- FILE* _handle;
- boost::filesystem::path _file;
+ dcp::File _file;
};
+
/** @class Film
*
* @brief A representation of some audio, video, subtitle and closed-caption content,
void use_template (std::string name);
std::list<std::string> read_metadata (boost::optional<boost::filesystem::path> path = boost::optional<boost::filesystem::path> ());
- void write_metadata () const;
+ void write_metadata ();
void write_metadata (boost::filesystem::path path) const;
void write_template (boost::filesystem::path path) const;
std::shared_ptr<xmlpp::Document> metadata (bool with_content_paths = true) const;
*/
mutable boost::signals2::signal<void ()> LengthChange;
+ boost::signals2::signal<void (bool)> DirtyChange;
+
/** Emitted when we have something important to tell the user */
boost::signals2::signal<void (std::string)> Message;
void audio_analysis_finished ();
void check_settings_consistency ();
void maybe_set_container_and_resolution ();
- void set_dirty (bool dirty) const;
+ void set_dirty (bool dirty);
/** Log to write to */
std::shared_ptr<Log> _log;