From 3b970d4c3089bbf7ca2c7f59d8d18142ed49de65 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Jul 2015 01:45:02 +0100 Subject: Add configuration of KDM SMTP port; remove slight warning about plaintext passwords. --- src/lib/config.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/lib/config.h') 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 + Copyright (C) 2012-2015 Carl Hetherington 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 > _cinemas; std::string _mail_server; + int _mail_port; std::string _mail_user; std::string _mail_password; std::string _kdm_subject; -- cgit v1.2.3