Continued development...
This commit is contained in:
1 parent
db3e82a18e
commit
967a03563a
15 files changed
+102
-71
No files matched your search
+5
-8
@@ -2,21 +2,18 @@
|
||||
# define __IMAPCommand_h__
|
||||
|
||||
# include "Command.h"
|
||||
# include "TCPSession.h"
|
||||
# include "IMAPSession.h"
|
||||
|
||||
namespace mail {
|
||||
|
||||
class IMAPServer;
|
||||
|
||||
class IMAPCommand : public core::Command {
|
||||
|
||||
public:
|
||||
virtual int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override {
|
||||
coreutils::PString parser(request);
|
||||
return processCommand(parser, (IMAPSession &)*session, data);
|
||||
}
|
||||
|
||||
virtual int processCommand(coreutils::PString request, IMAPSession &session, std::stringstream &data) {}
|
||||
|
||||
virtual int processCommand(std::string request, core::TCPSession *session, std::stringstream &data) override;
|
||||
virtual int processCommand(coreutils::PString request, IMAPSession &session, IMAPServer &server, std::stringstream &data) {}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user