blob: d6dfeefae6a12425f1ce25fc6d0671cf138bfda0 (
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
|
#pragma once
#include <set>
#include <string>
#include "file/mail.hpp"
namespace smtp::manage
{
class Mail
{
public:
explicit Mail( file::Mail const& file_reader );
~Mail() = default;
MailsSet GetMailToSend() const;
bool AddMailsToSend( MailsSet const& mails );
bool DeleteMailToSend(MailsSet const&mail_to_send );
private:
MailsSet GetMergedMails( MailsSet const& mails_to_add );
MailsSet GetItersectionMails( MailsSet const& mail_to_send );
MailsSet GetMailsAfterDelete( MailsSet const& result_set_after_delete);
MailsSet mMails;
file::Mail mFileReader;
};
}
|