diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-09 21:41:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-09 21:41:06 +0000 |
| commit | 7f8062032e16d9c9cfc28659a6da67f8205dc27b (patch) | |
| tree | e6315a838adcb34f3ac2cf2a517e84ea956e891d /src/lib/config.h | |
| parent | 29d863fb2533fe754a82a5274caf19a3b19e2994 (diff) | |
Basic cinema / screen database.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 4575cb54d..2d5b82ac5 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -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,6 +168,14 @@ 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; @@ -202,6 +215,8 @@ private: /** Our sound processor */ SoundProcessor const * _sound_processor; + std::list<boost::shared_ptr<Cinema> > _cinemas; + /** Singleton instance, or 0 */ static Config* _instance; }; |
