/home/bradarant/barant/BMAMail/POP3Service.h
Go to the documentation of this file.
#ifndef __POP3Service_h__
#define __POP3Service_h__
#include "TCPServer.h"
#include "Exception.h"
#include "__POP3_DELE.h"
#include "__POP3_LAST.h"
#include "__POP3_LIST.h"
#include "__POP3_NOOP.h"
#include "__POP3_PASS.h"
#include "__POP3_QUIT.h"
#include "__POP3_RETR.h"
#include "__POP3_RPOP.h"
#include "__POP3_RSET.h"
#include "__POP3_STAT.h"
#include "__POP3_TOP.h"
#include "__POP3_USER.h"
namespace mail {
class POP3Service : public core::TCPServer {
public:
POP3Service(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
: TCPServer(epoll, ipAddress), mailFileSystem(mailPath), hostName(hostName) {
commands.add(_pop3_dele, "DELE");
commands.add(_pop3_last, "LAST");
commands.add(_pop3_list, "LIST");
commands.add(_pop3_noop, "NOOP");
commands.add(_pop3_pass, "PASS");
commands.add(_pop3_quit, "QUIT");
commands.add(_pop3_retr, "RETR");
commands.add(_pop3_rpop, "RPOP");
commands.add(_pop3_rset, "RSET");
commands.add(_pop3_stat, "STAT");
commands.add(_pop3_top, "TOP");
commands.add(_pop3_user, "USER");
}
MailFileSystem mailFileSystem;
std::string hostName;
private:
__POP3_DELE _pop3_dele;
__POP3_LAST _pop3_last;
__POP3_LIST _pop3_list;
__POP3_NOOP _pop3_noop;
__POP3_PASS _pop3_pass;
__POP3_QUIT _pop3_quit;
__POP3_RETR _pop3_retr;
__POP3_RPOP _pop3_rpop;
__POP3_RSET _pop3_rset;
__POP3_STAT _pop3_stat;
__POP3_TOP _pop3_top;
__POP3_USER _pop3_user;
};
}
#endif
__POP3_QUIT.h
__POP3_RSET.h
mail::__POP3_LIST
Definition: __POP3_LIST.h:9
mail::__POP3_QUIT
Definition: __POP3_QUIT.h:9
mail::POP3Service::POP3Service
POP3Service(core::EPoll &epoll, std::string hostName, std::string mailPath, core::IPAddress ipAddress)
Definition: POP3Service.h:24
mail::MailFileSystem
Definition: MailFileSystem.h:10
__POP3_DELE.h
mail::__POP3_TOP
Definition: __POP3_TOP.h:9
__POP3_LIST.h
mail::__POP3_DELE
Definition: __POP3_DELE.h:9
__POP3_TOP.h
mail::__POP3_NOOP
Definition: __POP3_NOOP.h:9
__POP3_NOOP.h
mail
Definition: __IMAP_APPEND.h:7
__POP3_RETR.h
__POP3_PASS.h
mail::__POP3_STAT
Definition: __POP3_STAT.h:9
mail::POP3Service::mailFileSystem
MailFileSystem mailFileSystem
Definition: POP3Service.h:40
__POP3_STAT.h
mail::__POP3_USER
Definition: __POP3_USER.h:9
mail::__POP3_PASS
Definition: __POP3_PASS.h:9
__POP3_RPOP.h
__POP3_LAST.h
mail::__POP3_LAST
Definition: __POP3_LAST.h:9
mail::POP3Service::hostName
std::string hostName
Definition: POP3Service.h:41
mail::__POP3_RSET
Definition: __POP3_RSET.h:9
mail::__POP3_RPOP
Definition: __POP3_RPOP.h:9
__POP3_USER.h
mail::__POP3_RETR
Definition: __POP3_RETR.h:9
mail::POP3Service
Definition: POP3Service.h:21