diff options
Diffstat (limited to 'src/management/settings.hpp')
-rw-r--r-- | src/management/settings.hpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/src/management/settings.hpp b/src/management/settings.hpp new file mode 100644 index 0000000..650f966 --- /dev/null +++ b/src/management/settings.hpp @@ -0,0 +1,31 @@ +#pragma once + +#include <string> + +#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; + }; +} |