Various update bits.
[dcpomatic.git] / src / lib / config.h
index 1fa54f669bd83130fa8502faf3c9789e9a5a8285..791e41e8f6f27a14b5626e492fc714c824da027f 100644 (file)
@@ -143,6 +143,10 @@ public:
                return _default_j2k_bandwidth;
        }
 
+       int default_audio_delay () const {
+               return _default_audio_delay;
+       }
+
        std::vector<PresetColourConversion> colour_conversions () const {
                return _colour_conversions;
        }
@@ -151,6 +155,14 @@ public:
                return _mail_server;
        }
 
+       std::string mail_user () const {
+               return _mail_user;
+       }
+
+       std::string mail_password () const {
+               return _mail_password;
+       }
+
        std::string kdm_from () const {
                return _kdm_from;
        }
@@ -159,6 +171,14 @@ public:
                return _kdm_email;
        }
 
+       bool check_for_updates () const {
+               return _check_for_updates;
+       }
+
+       bool check_for_test_updates () const {
+               return _check_for_test_updates;
+       }
+       
        /** @param n New number of local encoding threads */
        void set_num_local_encoding_threads (int n) {
                _num_local_encoding_threads = n;
@@ -245,6 +265,10 @@ public:
                _default_j2k_bandwidth = b;
        }
 
+       void set_default_audio_delay (int d) {
+               _default_audio_delay = d;
+       }
+
        void set_colour_conversions (std::vector<PresetColourConversion> const & c) {
                _colour_conversions = c;
        }
@@ -253,6 +277,14 @@ public:
                _mail_server = s;
        }
 
+       void set_mail_user (std::string u) {
+               _mail_user = u;
+       }
+
+       void set_mail_password (std::string p) {
+               _mail_password = p;
+       }
+
        void set_kdm_from (std::string f) {
                _kdm_from = f;
        }
@@ -260,6 +292,14 @@ public:
        void set_kdm_email (std::string e) {
                _kdm_email = e;
        }
+
+       void set_check_for_updates (bool c) {
+               _check_for_updates = c;
+       }
+
+       void set_check_for_test_updates (bool c) {
+               _check_for_test_updates = c;
+       }
        
        void write () const;
 
@@ -309,11 +349,17 @@ private:
        DCPContentType const * _default_dcp_content_type;
        libdcp::XMLMetadata _dcp_metadata;
        int _default_j2k_bandwidth;
+       int _default_audio_delay;
        std::vector<PresetColourConversion> _colour_conversions;
        std::list<boost::shared_ptr<Cinema> > _cinemas;
        std::string _mail_server;
+       std::string _mail_user;
+       std::string _mail_password;
        std::string _kdm_from;
        std::string _kdm_email;
+       /** true to check for updates on startup */
+       bool _check_for_updates;
+       bool _check_for_test_updates;
 
        /** Singleton instance, or 0 */
        static Config* _instance;