diff options
author | Pixel <pixel@nobis-crew.org> | 2008-10-08 13:56:21 -0700 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2008-10-08 13:56:21 -0700 |
commit | 72716e2c2fd4025b09bda22cfcb7dcb9d12792aa (patch) | |
tree | 25b513568a0bd381dff2ff86327e16bad3db671e /include | |
parent | df83f96624550a23ed049ef4fe42bb2d97824db5 (diff) |
Adding the MailHandler system for SMTP server.
Diffstat (limited to 'include')
-rw-r--r-- | include/MailServer.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/MailServer.h b/include/MailServer.h index df1f83a..e39ad93 100644 --- a/include/MailServer.h +++ b/include/MailServer.h @@ -28,9 +28,16 @@ #include <Exceptions.h> #include <Variables.h> +class MailHandler : public Base { + public: + MailHandler() {} + virtual ~MailHandler() {} + virtual void ProcessMail(Handle * in, const String & from, std::vector<String> tos) = 0; +}; + class MailServer : public Task { public: - MailServer(int = 2500, const String & = String("GruiK Server v0.2")) throw (GeneralException); + MailServer(MailHandler *, int = 2500, const String & = String("GruiK Server v0.2")) throw (GeneralException); virtual ~MailServer(); virtual String GetName(); @@ -41,6 +48,7 @@ class MailServer : public Task { Socket Listener; String name; int localport; + MailHandler * handler; }; #endif |