blob: b6319f677bc680b24b17bf35d5350a9a5c689985 (
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
31
32
33
34
35
36
|
#pragma once
#include <string>
namespace smtp::service
{
struct SettingsFields
{
bool is_need_auth;
bool is_need_ssl;
std::string username;
std::string password;
std::string host;
std::string port;
};
class Settings
{
public:
Settings();
explicit Settings( SettingsFields data );
~Settings() = default;
bool CheckAndSetSettings( SettingsFields data );
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:
SettingsFields mSettingsFields;
};
}
|