BMAMail  1.0.0
E-Mail System
/home/bradarant/barant/BMAMail/POP3Service.h
Go to the documentation of this file.
1 #ifndef __POP3Service_h__
2 #define __POP3Service_h__
3 
4 #include "TCPServer.h"
5 #include "Exception.h"
6 #include "__POP3_DELE.h"
7 #include "__POP3_LAST.h"
8 #include "__POP3_LIST.h"
9 #include "__POP3_NOOP.h"
10 #include "__POP3_PASS.h"
11 #include "__POP3_QUIT.h"
12 #include "__POP3_RETR.h"
13 #include "__POP3_RPOP.h"
14 #include "__POP3_RSET.h"
15 #include "__POP3_STAT.h"
16 #include "__POP3_TOP.h"
17 #include "__POP3_USER.h"
18 
19 namespace mail {
20 
21  class POP3Service : public core::TCPServer {
22 
23  public:
24  POP3Service(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
25  : TCPServer(epoll, ipAddress), mailFileSystem(mailPath), hostName(hostName) {
26  commands.add(_pop3_dele, "DELE");
27  commands.add(_pop3_last, "LAST");
28  commands.add(_pop3_list, "LIST");
29  commands.add(_pop3_noop, "NOOP");
30  commands.add(_pop3_pass, "PASS");
31  commands.add(_pop3_quit, "QUIT");
32  commands.add(_pop3_retr, "RETR");
33  commands.add(_pop3_rpop, "RPOP");
34  commands.add(_pop3_rset, "RSET");
35  commands.add(_pop3_stat, "STAT");
36  commands.add(_pop3_top, "TOP");
37  commands.add(_pop3_user, "USER");
38  }
39 
41  std::string hostName;
42 
43  private:
44  __POP3_DELE _pop3_dele;
45  __POP3_LAST _pop3_last;
46  __POP3_LIST _pop3_list;
47  __POP3_NOOP _pop3_noop;
48  __POP3_PASS _pop3_pass;
49  __POP3_QUIT _pop3_quit;
50  __POP3_RETR _pop3_retr;
51  __POP3_RPOP _pop3_rpop;
52  __POP3_RSET _pop3_rset;
53  __POP3_STAT _pop3_stat;
54  __POP3_TOP _pop3_top;
55  __POP3_USER _pop3_user;
56 
57  };
58 
59 }
60 
61 #endif
Definition: __POP3_LIST.h:9
Definition: __POP3_QUIT.h:9
POP3Service(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
Definition: POP3Service.h:24
Definition: MailFileSystem.h:10
Definition: __POP3_TOP.h:9
Definition: __POP3_DELE.h:9
Definition: __POP3_NOOP.h:9
Definition: __IMAP_APPEND.h:7
Definition: __POP3_STAT.h:9
MailFileSystem mailFileSystem
Definition: POP3Service.h:40
Definition: __POP3_USER.h:9
Definition: __POP3_PASS.h:9
Definition: __POP3_LAST.h:9
std::string hostName
Definition: POP3Service.h:41
Definition: __POP3_RSET.h:9
Definition: __POP3_RPOP.h:9
Definition: __POP3_RETR.h:9
Definition: POP3Service.h:21