#define DCPOMATIC_CONFIG_H
#include "isdcf_metadata.h"
-#include "video_content.h"
-#include <dcp/metadata.h>
-#include <dcp/certificate.h>
+#include "types.h"
#include <dcp/certificate_chain.h>
+#include <dcp/encrypted_kdm.h>
#include <boost/shared_ptr.hpp>
#include <boost/signals2.hpp>
#include <boost/filesystem.hpp>
#include <vector>
-class ServerDescription;
-class Scaler;
-class Filter;
class CinemaSoundProcessor;
class DCPContentType;
class Ratio;
return _default_audio_delay;
}
+ bool default_interop () const {
+ return _default_interop;
+ }
+
std::string mail_server () const {
return _mail_server;
}
return _log_types;
}
+ bool automatic_audio_analysis () const {
+ return _automatic_audio_analysis;
+ }
+
#ifdef DCPOMATIC_WINDOWS
bool win32_console () const {
return _win32_console;
return _history;
}
+ std::vector<dcp::EncryptedKDM> dkdms () const {
+ return _dkdms;
+ }
+
/** @param n New number of local encoding threads */
void set_num_local_encoding_threads (int n) {
maybe_set (_num_local_encoding_threads, n);
maybe_set (_default_audio_delay, d);
}
+ void set_default_interop (bool i) {
+ maybe_set (_default_interop, i);
+ }
+
void set_mail_server (std::string s) {
maybe_set (_mail_server, s);
}
void set_check_for_updates (bool c) {
maybe_set (_check_for_updates, c);
+ if (!c) {
+ set_check_for_test_updates (false);
+ }
}
void set_check_for_test_updates (bool c) {
maybe_set (_log_types, t);
}
+ void set_automatic_audio_analysis (bool a) {
+ maybe_set (_automatic_audio_analysis, a);
+ }
+
#ifdef DCPOMATIC_WINDOWS
void set_win32_console (bool c) {
maybe_set (_win32_console, c);
}
#endif
+ void set_dkdms (std::vector<dcp::EncryptedKDM> dkdms)
+ {
+ _dkdms = dkdms;
+ changed ();
+ }
+
void clear_history () {
_history.clear ();
changed ();
private:
Config ();
- static boost::filesystem::path file ();
+ static boost::filesystem::path file (bool create_directories = true);
void read ();
void set_defaults ();
void set_kdm_email_to_default ();
+ boost::shared_ptr<dcp::CertificateChain> create_certificate_chain ();
template <class T>
void maybe_set (T& member, T new_value) {
/** default directory to put new films in */
boost::filesystem::path _default_directory;
/** base port number to use for J2K encoding servers;
- * this port and the one above it will be used.
+ * this port and the two above it will be used.
*/
int _server_port_base;
/** true to broadcast on the `any' address to look for servers */
std::string _dcp_creator;
int _default_j2k_bandwidth;
int _default_audio_delay;
+ bool _default_interop;
std::list<boost::shared_ptr<Cinema> > _cinemas;
std::string _mail_server;
int _mail_port;
/** maximum allowed J2K bandwidth in bits per second */
int _maximum_j2k_bandwidth;
int _log_types;
+ bool _automatic_audio_analysis;
#ifdef DCPOMATIC_WINDOWS
bool _win32_console;
#endif
std::vector<boost::filesystem::path> _history;
+ std::vector<dcp::EncryptedKDM> _dkdms;
/** Singleton instance, or 0 */
static Config* _instance;