diff options
Diffstat (limited to 'src/managment/settings.cpp')
-rw-r--r-- | src/managment/settings.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/managment/settings.cpp b/src/managment/settings.cpp new file mode 100644 index 0000000..72396f8 --- /dev/null +++ b/src/managment/settings.cpp @@ -0,0 +1,44 @@ +#include "settings.hpp" + +namespace smtp::manage +{ + Settings::Settings( file::Settings const& file_reader ) + { + mSettingsFields = file_reader.Read(); + } + + bool Settings::SetSettings( file::SettingsFields const& settings_fields ) + { + + } + + bool Settings::IsNeedAuth() const noexcept + { + return mSettingsFields.is_need_auth; + } + + bool Settings::IsNeedSsl() const noexcept + { + return mSettingsFields.is_need_ssl; + } + + std::string Settings::GetUserName() const + { + return mSettingsFields.username; + } + + std::string Settings::GetPassword() const + { + return mSettingsFields.password; + } + + std::string Settings::GetHost() const + { + return mSettingsFields.host; + } + + std::string Settings::GetPort() const + { + return mSettingsFields.port; + } +} |