blob: 2dbe1b6ee62c26fe4d7ea0e434422938d0981742 (
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
30
|
#pragma once
#include <string>
#include "file/settings/settings.hpp"
#include "general/struct.hpp"
namespace smtp::manage
{
class Settings
{
public:
explicit Settings( file::settings::Settings const& file_reader );
~Settings() = default;
bool SetSettings( general::SettingsFields const& settings_fields );
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::Settings mFileReader;
general::SettingsFields mSettingsFields;
};
}
|