summaryrefslogtreecommitdiff
path: root/src/file/settings.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/settings.hpp')
-rw-r--r--src/file/settings.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/file/settings.hpp b/src/file/settings.hpp
index 62182b1..fb77b1e 100644
--- a/src/file/settings.hpp
+++ b/src/file/settings.hpp
@@ -3,8 +3,9 @@
#include <list>
#include <string>
-#include "settings_converter.hpp"
+#include "converter/full.hpp"
#include "parser/settings.hpp"
+#include "managment/general.hpp"
namespace smtp::file
{
@@ -13,19 +14,17 @@ namespace smtp::file
class Settings
{
public:
- explicit Settings( std::string const& path_file, parser::Settings const& parser, SettingsConverter const& converter );
+ explicit Settings( std::string const& path_file );
~Settings() = default;
- SettingsFields Read() const;
- void Write( SettingsFields const& settings_fields ) const;
+ manage::SettingsFields Read() const;
+ bool Write( manage::SettingsFields const& settings_fields ) const;
private:
ParsedStoreType GetParsedStore() const;
- void SetParsedData() const;
+ bool SetParsedData( ParsedStoreType const& parsed_data ) const;
+ std::string BuildParam( std::pair<std::string, std::string> const& data ) const;
std::string mPathFile;
- parser::Settings mParser;
- SettingsConverter mConverter;
-
};
}