summaryrefslogtreecommitdiff
path: root/src/managment/settings.hpp
blob: ff40dc69a7bec21dde0eed26e523c84755686aa4 (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
#pragma once

#include <string>

#include "file/settings.hpp"

namespace smtp::manage
{
    class Settings
    {
    public:
        explicit Settings( file::Settings const& file_reader );
        ~Settings() = default;

        bool SetSettings( file::SettingsFields const& settings_fields );

        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::SettingsFields mSettingsFields;
    };
}