diff options
Diffstat (limited to 'src/file/converter/settings.hpp')
-rw-r--r-- | src/file/converter/settings.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/file/converter/settings.hpp b/src/file/converter/settings.hpp new file mode 100644 index 0000000..8f94942 --- /dev/null +++ b/src/file/converter/settings.hpp @@ -0,0 +1,30 @@ +#pragma once + +#include <unordered_map> +#include <string> + +#include "managment/general.hpp" + +namespace smtp::file::converter +{ + using ParsedDataType = std::unordered_map<std::string, std::string>;; + + class Settings + { + public: + Settings() = default; + ~Settings() = default; + + std::unordered_map<std::string, std::string> Convert( manage::SettingsFields const& from ) const; + private: + void ApplyAuth( manage::SettingsFields const& from, ParsedDataType& result ) const; + void ApplySsl( manage::SettingsFields const& from, ParsedDataType& result ) const; + + void ApplyUsername( manage::SettingsFields const& from, ParsedDataType& result ) const; + void ApplyPassword( manage::SettingsFields const& from, ParsedDataType& result ) const; + void ApplyHost( manage::SettingsFields const& from, ParsedDataType& result ) const; + void ApplyPort( manage::SettingsFields const& from, ParsedDataType& result ) const; + }; +} + + |