52 lines
1.2 KiB
C++
52 lines
1.2 KiB
C++
#ifndef __POP3Service_h__
|
|
#define __POP3Service_h__
|
|
|
|
#include "Service.h"
|
|
#include "Exception.h"
|
|
#include "__SMTP_AUTH.h"
|
|
#include "__SMTP_DATA.h"
|
|
#include "__SMTP_EHLO.h"
|
|
#include "__SMTP_HELO.h"
|
|
#include "__SMTP_MAIL.h"
|
|
#include "__SMTP_NOOP.h"
|
|
#include "__SMTP_QUIT.h"
|
|
#include "__SMTP_RCPT.h"
|
|
#include "__SMTP_RSET.h"
|
|
#include "__SMTP_VRFY.h"
|
|
|
|
namespace mail {
|
|
|
|
class POP3Service : public core::Service {
|
|
|
|
public:
|
|
POP3Service() {
|
|
commands.add(_smtp_auth, "AUTH");
|
|
commands.add(_smtp_data, "DATA");
|
|
commands.add(_smtp_ehlo, "EHLO");
|
|
commands.add(_smtp_helo, "HELO");
|
|
commands.add(_smtp_mail, "MAIL");
|
|
commands.add(_smtp_noop, "NOOP");
|
|
commands.add(_smtp_quit, "QUIT");
|
|
commands.add(_smtp_rcpt, "RCPT");
|
|
commands.add(_smtp_rset, "RSET");
|
|
commands.add(_smtp_vrfy, "VRFY");
|
|
}
|
|
|
|
private:
|
|
__SMTP_AUTH _smtp_auth;
|
|
__SMTP_DATA _smtp_data;
|
|
__SMTP_EHLO _smtp_ehlo;
|
|
__SMTP_HELO _smtp_helo;
|
|
__SMTP_MAIL _smtp_mail;
|
|
__SMTP_NOOP _smtp_noop;
|
|
__SMTP_QUIT _smtp_quit;
|
|
__SMTP_RCPT _smtp_rcpt;
|
|
__SMTP_RSET _smtp_rset;
|
|
__SMTP_VRFY _smtp_vrfy;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|