summaryrefslogtreecommitdiff
path: root/src/managment/settings.hpp
blob: 3b72ec7cac76244674091b93aa7ec24e15e22db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once

#include <string>

#include "file/settings.hpp"
#include "managment/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();

        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;
    };
}