Rename Content::_file to path and support md5sums of directories.
[dcpomatic.git] / src / lib / config.h
index f3e8f1441b918bd23282f5adfc2f8bb46a20d9e6..77287e6868a85c0f894708540247d5e099342358 100644 (file)
@@ -40,7 +40,7 @@ class Ratio;
 /** @class Config
  *  @brief A singleton class holding configuration.
  */
-class Config
+class Config : public boost::noncopyable
 {
 public:
 
@@ -118,6 +118,10 @@ public:
                return _dcp_metadata;
        }
 
+       int default_j2k_bandwidth () const {
+               return _default_j2k_bandwidth;
+       }
+
        /** @param n New number of local encoding threads */
        void set_num_local_encoding_threads (int n) {
                _num_local_encoding_threads = n;
@@ -196,6 +200,10 @@ public:
        void set_dcp_metadata (libdcp::XMLMetadata m) {
                _dcp_metadata = m;
        }
+
+       void set_default_j2k_bandwidth (int b) {
+               _default_j2k_bandwidth = b;
+       }
        
        void write () const;
 
@@ -239,6 +247,7 @@ private:
        Ratio const * _default_container;
        DCPContentType const * _default_dcp_content_type;
        libdcp::XMLMetadata _dcp_metadata;
+       int _default_j2k_bandwidth;
 
        /** Singleton instance, or 0 */
        static Config* _instance;