blob: 31dbfc6d3d516cb487a5b157617712982d69dfc7 (
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
|
#pragma once
#include <string>
#include <mutex>
#include "file/settings/settings.hpp"
#include "general/struct.hpp"
namespace smtp::manage
{
class Settings
{
public:
explicit Settings( file::settings::Settings const& file_reader );
Settings( smtp::manage::Settings const& settings );
~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;
mutable std::mutex mMutex;
};
}
|