summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-07-06 01:45:02 +0100
committerCarl Hetherington <cth@carlh.net>2015-07-06 01:45:02 +0100
commit3b970d4c3089bbf7ca2c7f59d8d18142ed49de65 (patch)
tree7dd0b8e005498c4cc03aed0f62ec73ad83a2472d /src/lib/config.h
parent3bb6308d1b17aa643021bddc82e954029076f780 (diff)
Add configuration of KDM SMTP port; remove slight warning about plaintext passwords.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 0040591f1..a5fdc17c0 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -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
@@ -157,6 +157,10 @@ public:
return _mail_server;
}
+ int mail_port () const {
+ return _mail_port;
+ }
+
std::string mail_user () const {
return _mail_user;
}
@@ -324,6 +328,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);
}
@@ -458,6 +466,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;