#pragma once #include #include "file/settings.hpp" #include "management/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; }; }