Some work on making KDMs in Film
[dcpomatic.git] / src / lib / config.h
index 4575cb54d6864e23ed3c614e63f4f1dd8bd30c81..785fff1374f73f02cf479e0132503bb5b79a4cb2 100644 (file)
@@ -32,6 +32,7 @@ class ServerDescription;
 class Scaler;
 class Filter;
 class SoundProcessor;
+class Cinema;
 
 /** @class Config
  *  @brief A singleton class holding configuration.
@@ -107,6 +108,10 @@ public:
                return _sound_processor;
        }
 
+       std::list<boost::shared_ptr<Cinema> > cinemas () const {
+               return _cinemas;
+       }
+
        /** @param n New number of local encoding threads */
        void set_num_local_encoding_threads (int n) {
                _num_local_encoding_threads = n;
@@ -163,14 +168,25 @@ public:
        void set_tms_password (std::string p) {
                _tms_password = p;
        }
+
+       void add_cinema (boost::shared_ptr<Cinema> c) {
+               _cinemas.push_back (c);
+       }
+
+       void remove_cinema (boost::shared_ptr<Cinema> c) {
+               _cinemas.remove (c);
+       }
        
        void write () const;
 
+       std::string crypt_chain_directory () const;
+
        static Config* instance ();
 
 private:
        Config ();
-       std::string file () const;
+       std::string read_file () const;
+       std::string write_file () const;
 
        /** number of threads to use for J2K encoding on the local machine */
        int _num_local_encoding_threads;
@@ -202,6 +218,8 @@ private:
        /** Our sound processor */
        SoundProcessor const * _sound_processor;
 
+       std::list<boost::shared_ptr<Cinema> > _cinemas;
+
        /** Singleton instance, or 0 */
        static Config* _instance;
 };