Merge branch '2.0' of ssh://git.carlh.net/home/carl/git/dcpomatic2 into 2.0
[dcpomatic.git] / src / lib / config.h
index ad95bc3441fccc3344e82c4bb62c172589c1aae0..312118a55f9e24c7b4e93b140b70fae4fab8e96d 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 Carl Hetherington <cth@carlh.net>
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -163,6 +163,10 @@ public:
                return _mail_server;
        }
 
+       int mail_port () const {
+               return _mail_port;
+       }
+
        std::string mail_user () const {
                return _mail_user;
        }
@@ -330,6 +334,10 @@ public:
                maybe_set (_mail_server, s);
        }
 
+       void set_mail_port (int p) {
+               maybe_set (_mail_port, p);
+       }
+
        void set_mail_user (std::string u) {
                maybe_set (_mail_user, u);
        }
@@ -464,6 +472,7 @@ private:
        int _default_audio_delay;
        std::list<boost::shared_ptr<Cinema> > _cinemas;
        std::string _mail_server;
+       int _mail_port;
        std::string _mail_user;
        std::string _mail_password;
        std::string _kdm_subject;