diff options
Diffstat (limited to 'src/managment/settings.hpp')
-rw-r--r-- | src/managment/settings.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/managment/settings.hpp b/src/managment/settings.hpp new file mode 100644 index 0000000..ff40dc6 --- /dev/null +++ b/src/managment/settings.hpp @@ -0,0 +1,27 @@ +#pragma once + +#include <string> + +#include "file/settings.hpp" + +namespace smtp::manage +{ + class Settings + { + public: + explicit Settings( file::Settings const& file_reader ); + ~Settings() = default; + + bool SetSettings( file::SettingsFields const& settings_fields ); + + 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::SettingsFields mSettingsFields; + }; +} |