diff options
author | claiff <claiff@mail.ru> | 2022-09-19 14:03:14 +0300 |
---|---|---|
committer | claiff <claiff@mail.ru> | 2022-09-21 14:28:10 +0300 |
commit | 7a446d48b9270dbe2628b462a54a7a23ff43c572 (patch) | |
tree | 8e677b755c3cb529a40ee17078828bc8cc73bf31 /src/management/settings.hpp | |
parent | 629929ebbe386277c25740bc0f4971aac38444d0 (diff) | |
download | obmc-sila-smtp-7a446d48b9270dbe2628b462a54a7a23ff43c572.tar.xz |
temp
Diffstat (limited to 'src/management/settings.hpp')
-rw-r--r-- | src/management/settings.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/management/settings.hpp b/src/management/settings.hpp new file mode 100644 index 0000000..3c0a15d --- /dev/null +++ b/src/management/settings.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include <string> + +#include "file/settings.hpp" +#include "managment/general.hpp" +namespace smtp::manage +{ + class Settings + { + public: + explicit Settings( file::Settings const& file_reader ); + ~Settings() = default; + + bool SetSettings( manage::SettingsFields const& settings_fields ) const; + std::string GetSettings(); + void ReloadSettings(); + + bool IsNeedAuth() const noexcept; + bool IsNeedSsl() const noexcept; + + std::string GetUserName() const; + std::string GetPassword() const; + std::string GetHost() const; + std::string GetPort() const; + private: + file::Settings mFileReader; + manage::SettingsFields mSettingsFields; + }; +} |