#pragma once #include #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; }; }