#pragma once #include #include "file/settings/settings.hpp" #include "general/struct.hpp" namespace smtp::manage { class Settings { public: explicit Settings( file::settings::Settings const& file_reader ); ~Settings() = default; bool SetSettings( general::SettingsFields const& settings_fields ); std::string GetSettings(); 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::Settings mFileReader; general::SettingsFields mSettingsFields; }; }